[03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]ConnectInit Can't connect to host [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]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:41]accept exits with 7 [03:41:41]New connection [03:41:41]New thread 3066522980 created [03:41:41]Thread 3066666340 joined [03:41:41]Waiting for new connection... [03:41:41] Sock 7.Parse request [03:41:41]Sock 7.Check first char [03:41:41]Sock 7.First char is OK [03:41:41]request: POST /json_proto HTTP/1.0 [03:41:41]Method: POST [03:41:41]URL: /json_proto [03:41:41]Method is POST - this is cgi request [03:41:41]url: /json_proto [03:41:41]query_string will be loaded in cgi processing [03:41:41]execute_cgi json_proto POST (null) [03:41:41]execute_cgi path=json_proto method=POST [03:41:41]POST find Content-Length [03:41:41]Host: 172.17.62.196:8080 [03:41:41]Content-Length: 623 [03:41:41]Content-Type: application/json [03:41:41] [03:41:41]POST finish read [03:41:41]Found Content-Length = 623 [03:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16538", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.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" ] } } [03:41:41]execute_script... [03:41: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)16538", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.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" ] } } [03:41:41]POST & json_proto [03:41:41]process_json_proto [03:41:41]json parsed OK: [03:41:41]protocol is kg_v1.0 [03:41:41]action value=close_receipt [03:41:41]process_action close_receipt [03:41:41]cmd_close_receipt [03:41:41]MH_GetDate [03:41:41]Write to MH i2c: F0 00 00 62 22 73 [03:41:41]Write i2c OK [03:41:41]MH_I2C_Read... [03:41:41]Read from MH i2c: F0 [03:41:41]MH_I2C_Read... [03:41:41]Read from MH i2c: F0 09 00 [03:41:41]MH_I2C_Read... [03:41:41]Read from MH i2c: F0 09 00 62 22 00 FA 91 EF 66 CE CC 0E 66 6A [03:41:41]GetLastDocTimeStamp 1726969203 [03:41:41]current date 1726976506 [03:41:41]FM_GetShiftState [03:41:41]SAM_PROTO_GetShiftState [03:41:41]wFMCommunicate request_size=4 [03:41:41]MH_SAM_APDU [03:41:41]CAPDU: 80 13 01 00 [03:41:41]Write to MH i2c: E2 08 00 63 22 80 13 01 00 00 00 00 00 02 [03:41:41]Write i2c OK [03:41:41]MH_I2C_Read... [03:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:41]Read from MH i2c: E2 [03:41:41]MH_I2C_Read... [03:41:41]Read from MH i2c: E2 0E 00 [03:41:41]MH_I2C_Read... [03:41:41]Read from MH i2c: E2 0E 00 63 22 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C2 [03:41:41]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [03:41:41]wFMCommunicate OK [03:41:41]SAM_PROTO_GetShiftState done [03:41:41]FM_GetShiftState done [03:41:41]opened in 1726963967 [03:41:41]opened+sec_in_day 1727050367 [03:41:41]quantity*price = 14700 [03:41:41]sum+1 = 14701 [03:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 10 22.09.2024 03:41 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18614 ФПД: 75872404808180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034146&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18614&fm=75872404808180&tin=02508201610067®Number=0000000000152968&sum=14700 0 [03:41:42]StoreToDocumentArchive [03:41:42]shift 180 fd 18614 [03:41:42]save to /storage/0180/doc_00018614 [03:41:42]save last doc name /storage/0180/doc_00018614 to /storage/kkm_last_doc_name [03:41:42]save OK [03:41:42]Clear old archive folders... [03:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [03:41:42]tlvbuf is 019DED20 [03:41:42]SAM_PROTO_ClearQueue [03:41:42]wFMCommunicate request_size=4 [03:41:42]MH_SAM_APDU [03:41:42]CAPDU: 80 09 00 00 [03:41:42]Write to MH i2c: E2 08 00 70 22 80 09 00 00 00 00 00 00 04 [03:41:42]Write i2c OK [03:41:42]MH_I2C_Read... [03:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:42]Read from MH i2c: E2 [03:41:42]MH_I2C_Read... [03:41:42]Read from MH i2c: E2 03 00 [03:41:42]MH_I2C_Read... [03:41:42]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [03:41:42]RAPDU: 90 00 [03:41:42]wFMCommunicate OK [03:41:42]SAM_PROTO_ClearQueue done [03:41:42]KKMCreateOFDPacket [03:41:42]OFDProtocolAddRootSTLVToBuf [03:41:42]FM_MakeSignedData [03:41:42]FM_MakeSignedData [03:41:42]SAM_PROTO_SignData [03:41:42]wFMCommunicate request_size=4 [03:41:42]MH_SAM_APDU [03:41:42]CAPDU: 80 0D 01 02 [03:41:42]Write to MH i2c: E2 08 00 71 22 80 0D 01 02 00 00 00 00 0C [03:41:42]Write i2c OK [03:41:42]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [03:41:43]RAPDU: 90 00 [03:41:43]wFMCommunicate OK [03:41:43]wFMCommunicate request_size=255 [03:41:43]MH_SAM_APDU [03:41:43]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 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 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 0A 00 00 00 F4 03 04 00 FA 91 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [03:41:43]Write to MH i2c: E2 02 01 72 22 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 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 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 0A 00 00 00 F4 03 04 00 FA 91 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 76 [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 72 22 00 90 00 08 [03:41:43]RAPDU: 90 00 [03:41:43]wFMCommunicate OK [03:41:43]wFMCommunicate request_size=35 [03:41:43]MH_SAM_APDU [03:41:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B6 48 00 00 35 04 06 00 45 01 6B BC A1 F4 [03:41:43]Write to MH i2c: E2 26 00 73 22 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B6 48 00 00 35 04 06 00 45 01 6B BC A1 F4 00 00 08 [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 03 00 73 22 00 90 00 09 [03:41:43]RAPDU: 90 00 [03:41:43]wFMCommunicate OK [03:41:43]wFMCommunicate request_size=4 [03:41:43]MH_SAM_APDU [03:41:43]CAPDU: 80 0D 03 02 [03:41:43]Write to MH i2c: E2 08 00 74 22 80 0D 03 02 00 00 00 00 11 [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 0B 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 0B 00 74 22 00 7B 4B 99 7F 84 13 ED 08 90 00 7C [03:41:43]RAPDU: 7B 4B 99 7F 84 13 ED 08 90 00 [03:41:43]wFMCommunicate OK [03:41:43]SAM_PROTO_SignData done [03:41:43]FM_MakeSignedData done [03:41:43]CreateOFDProtocolMessage [03:41:43]wFMCommunicate request_size=4 [03:41:43]MH_SAM_APDU [03:41:43]CAPDU: 80 11 00 00 [03:41:43]Write to MH i2c: E2 08 00 75 22 80 11 00 00 00 00 00 00 11 [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:43]Read from MH i2c: E2 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 17 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: E2 17 00 75 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6A [03:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [03:41:43]wFMCommunicate OK [03:41:43]CreateOFDProtocolMessage done [03:41:43]OFDSenderStorePacket 18614 [03:41:43]StoreOFDPacket docnum=18614 [03:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 80 96 20 01 E0 A0 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 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 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 0A 00 00 00 F4 03 04 00 FA 91 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B6 48 00 00 35 04 06 00 45 01 6B BC A1 F4 7B 4B 99 7F 84 13 ED 08 [03:41:43]CheckFolder [03:41:43]dirname=/storage/ofd_packets [03:41:43]CheckFolder done [03:41:43]ProducePacketName [03:41:43]name=ofd_packets/00018614 [03:41:43]NVStorageSaveData ofd_packets/00018614 [03:41:43]File name is /storage/ofd_packets/00018614 [03:41:43]Write 326 bytes [03:41:43]NVStorageSaveData done [03:41:43]OFDSenderStorePacket done [03:41:43]KKMCreateOFDPacket done [03:41:43]NVStorageSaveData kkm_last_timestamp [03:41:43]File name is /storage/kkm_last_timestamp [03:41:43]Write 4 bytes [03:41:43]NVStorageSaveData done [03:41:43]ExternCall_PrintAddStr [03:41:43]wPrintStart [03:41:43]Write to MH i2c: 01 00 00 76 22 98 [03:41:43]Write i2c OK [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: 01 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: 01 07 00 [03:41:43]MH_I2C_Read... [03:41:43]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 FF 0F AD [03:41:43]RasterBufferAndPrint [03:41:43]line Счет N : (3)16538 [03:41:43]line ИНН: 02508201610067 [03:41:43]line Контрольно-Кассовый Чек [03:41:43]line ПРОДАЖА [03:41:43]line Товар: 48744683 [03:41:43]line Сигареты Winston XStyle Caster+ [03:41:43]line 1.000 * 147.00 [03:41:43]line = 147.00 [03:41:43]line НДС 12% НСП 1% [03:41:43]line > о реализуемом товаре [03:41:43]line ИТОГО: 147.00 [03:41:43]line НСП 1% : 1.30 [03:41:43]line НДС 12% : 15.61 [03:41:43]line Наличными: 147.00 [03:41:43]line Безнал.: 0.00 [03:41:43]line Место: АЗС № 176 "Партнер Нефть" [03:41:43]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [03:41:43]line СНО: Общий режим [03:41:43]line Чек 10 22.09.2024 03:41 [03:41:43]line Смена: 180 ФФД: 1.0 [03:41:43]line ЗНМ: 0300000010 [03:41:43]line РНМ: 0000000000152968 [03:41:43]line Версия ККМ: v1.0 [03:41:43]line ФМ: 0000000000959456 [03:41:43]line ФД: 18614 [03:41:43]line ФПД: 75872404808180 [03:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T034146&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18614&fm=75872404808180&tin=02508201610067®Number=0000000000152968&sum=14700 [03:41:43]line 0 [03:41:43]OFD Sender: Processing packet 18614 [packets to send 7, broken 6] [03:41:43]ProducePacketName [03:41:43]name=ofd_packets/00018614 [03:41:43]OFD Sender: To server: pG, [03:41:43]CommunicateWithHost lk.salyk.kg:30040 [03:41:43]ConnectInit lk.salyk.kg [03:41:43]written 0, free lines is 4095 [03:41:44]Connected sock=11 [03:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 80 96 20 01 E0 A0 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 34 36 38 33 06 04 27 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 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 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 0A 00 00 00 F4 03 04 00 FA 91 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B6 48 00 00 35 04 06 00 45 01 6B BC A1 F4 7B 4B 99 7F 84 13 ED 08 [03:41:44]Write to MH i2c: 01 00 00 9F 22 C1 [03:41:44]Write i2c OK [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: 01 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: 01 07 00 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: 01 07 00 9F 22 00 00 00 00 00 02 0D D7 [03:41:44]RasterBufferAndPrint [03:41:44]line [03:41:44]line [03:41:44]line [03:41:44]line [03:41:44]line [03:41:44]written 0, free lines is 3336 [03:41:44]MH_Cut [03:41:44]Write to MH i2c: D1 01 00 A6 22 01 9A [03:41:44]Write i2c OK [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: D1 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: D1 01 00 [03:41:44]MH_I2C_Read... [03:41:44]Read from MH i2c: D1 01 00 A6 22 00 99 [03:41:44]Write to MH i2c: 01 00 00 A7 22 C9 [03:41:44]Write i2c OK [03:41:44]MH_I2C_Read... [03:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8B 20 47 00 C8 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 39 35 39 34 35 36 10 04 04 00 B6 48 00 00 F4 03 04 00 63 3B EF 66 B6 04 01 00 00 56 66 0F C9 EE 99 BE 6D [03:41:44]CommunicateWithHost err = 0 [03:41:44]CheckOFDResponse [03:41:44]1017 (14) - 77093643461234 [03:41:44]1041 (16) - 0000000000959456 [03:41:44]1040 (4) - 18614 [03:41:44]1012 (4) - 21.09.2024 21:32 [03:41:44]1206 (1) - 0 [03:41:44]OFD Sender: Remove packet 18614 [03:41:44]ProducePacketName [03:41:44]name=ofd_packets/00018614 [03:41:44]NVStorageDeleteData [03:41:44]OFD Sender: No OFD packet to send [03:41:44]*** Cut start [03:41:44]*** Partial cut [03:41:44]*** CUTSNS_PIN = 1 [03:41:44]*** CUTSNS_PIN = 0 [03:41:45]*** Brake cut motor [03:41:45]Read from MH i2c: 01 [03:41:45]MH_I2C_Read... [03:41:45]*** Stop cut motor [03:41:45]*** Cut end [03:41:45]Read from MH i2c: 01 07 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: 01 07 00 A7 22 00 00 00 00 00 FF 0F DE [03:41:45]process_action close_receipt done [03:41:45]requested_data is exist [03:41:45]produce_requested_data [03:41:45]requested_item fm.sn is exist - process it [03:41:45]wFMCommunicate request_size=4 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 11 00 00 [03:41:45]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 17 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9D [03:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [03:41:45]wFMCommunicate OK [03:41:45]requested_item fd.num is exist - process it [03:41:45]SAM_PROTO_GetFieldsCounters [03:41:45]wFMCommunicate request_size=4 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 13 00 00 [03:41:45]Write to MH i2c: E2 08 00 A9 22 80 13 00 00 00 00 00 00 47 [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 62 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 62 00 A9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B6 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [03:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B6 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:41:45]wFMCommunicate OK [03:41:45]SAM_PROTO_GetFieldsCounters done [03:41:45]requested_item shift.num is exist - process it [03:41:45]requested_item shift.opened is exist - process it [03:41:45]req_shift_opened [03:41:45]FM_GetShiftState [03:41:45]SAM_PROTO_GetShiftState [03:41:45]wFMCommunicate request_size=4 [03:41:45]MH_SAM_APDU [03:41:45]CAPDU: 80 13 01 00 [03:41:45]Write to MH i2c: E2 08 00 AA 22 80 13 01 00 00 00 00 00 49 [03:41:45]Write i2c OK [03:41:45]MH_I2C_Read... [03:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:45]Read from MH i2c: E2 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 0E 00 [03:41:45]MH_I2C_Read... [03:41:45]Read from MH i2c: E2 0E 00 AA 22 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 09 [03:41:45]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [03:41:45]wFMCommunicate OK [03:41:45]SAM_PROTO_GetShiftState done [03:41:45]FM_GetShiftState done [03:41:45]req_shift_opened done [03:41:45]requested_item shift.open_date is exist - process it [03:41:45]req_shift_open_date [03:41:45]req_shift_open_date done [03:41:45]produce_requested_data done [03:41:45]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18614,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [03:41:45]process_action_free close_receipt [03:41:45]json_value_free [03:41:45]json_value_free done [03:41:45]process_json_proto returns [03:41:45]Send response to host [03:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18614,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [03:41:45]free response buf [03:41:45]execute_script done [03:41:45]execute_script returns [03:41:45]free content buf [03:41:45]Sock 7.Close socket [03:41:45]Sock 7.Thread stoped [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22: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:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]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:10]accept exits with 9 [06:39:10]New connection [06:39:10]New thread 3066666340 created [06:39:10]Thread 3066522980 joined [06:39:10]Waiting for new connection... [06:39:10] Sock 9.Parse request [06:39:10]Sock 9.Check first char [06:39:10]Sock 9.First char is OK [06:39:10]request: POST /json_proto HTTP/1.0 [06:39:10]Method: POST [06:39:10]URL: /json_proto [06:39:10]Method is POST - this is cgi request [06:39:10]url: /json_proto [06:39:10]query_string will be loaded in cgi processing [06:39:10]execute_cgi json_proto POST (null) [06:39:10]execute_cgi path=json_proto method=POST [06:39:10]POST find Content-Length [06:39:10]Host: 172.17.62.196:8080 [06:39:10]Content-Length: 620 [06:39:10]Content-Type: application/json [06:39:10] [06:39:10]POST finish read [06:39:10]Found Content-Length = 620 [06:39:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16539", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:10]execute_script... [06:39: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)16539", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:10]POST & json_proto [06:39:10]process_json_proto [06:39:10]json parsed OK: [06:39:10]protocol is kg_v1.0 [06:39:10]action value=close_receipt [06:39:10]process_action close_receipt [06:39:10]cmd_close_receipt [06:39:10]MH_GetDate [06:39:10]Write to MH i2c: F0 00 00 AB 22 BC [06:39:10]Write i2c OK [06:39:10]MH_I2C_Read... [06:39:10]Read from MH i2c: F0 [06:39:10]MH_I2C_Read... [06:39:10]Read from MH i2c: F0 09 00 [06:39:10]MH_I2C_Read... [06:39:10]Read from MH i2c: F0 09 00 AB 22 00 94 BB EF 66 CE CC 0E 66 77 [06:39:10]GetLastDocTimeStamp 1726976506 [06:39:10]current date 1726987156 [06:39:10]FM_GetShiftState [06:39:10]SAM_PROTO_GetShiftState [06:39:10]wFMCommunicate request_size=4 [06:39:10]MH_SAM_APDU [06:39:10]CAPDU: 80 13 01 00 [06:39:10]Write to MH i2c: E2 08 00 AC 22 80 13 01 00 00 00 00 00 4B [06:39:10]Write i2c OK [06:39:10]MH_I2C_Read... [06:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:10]Read from MH i2c: E2 [06:39:10]MH_I2C_Read... [06:39:10]Read from MH i2c: E2 0E 00 [06:39:10]MH_I2C_Read... [06:39:10]Read from MH i2c: E2 0E 00 AC 22 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0B [06:39:10]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [06:39:10]wFMCommunicate OK [06:39:10]SAM_PROTO_GetShiftState done [06:39:10]FM_GetShiftState done [06:39:10]opened in 1726963967 [06:39:10]opened+sec_in_day 1727050367 [06:39:10]quantity*price = 14400 [06:39:10]sum+1 = 14401 [06:39:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 11 22.09.2024 06:39 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18615 ФПД: 276888458799723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063916&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18615&fm=276888458799723&tin=02508201610067®Number=0000000000152968&sum=14400 0 [06:39:11]StoreToDocumentArchive [06:39:11]shift 180 fd 18615 [06:39:11]save to /storage/0180/doc_00018615 [06:39:11]save last doc name /storage/0180/doc_00018615 to /storage/kkm_last_doc_name [06:39:11]save OK [06:39:11]Clear old archive folders... [06:39:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [06:39:11]tlvbuf is B6F12230 [06:39:11]SAM_PROTO_ClearQueue [06:39:11]wFMCommunicate request_size=4 [06:39:11]MH_SAM_APDU [06:39:11]CAPDU: 80 09 00 00 [06:39:11]Write to MH i2c: E2 08 00 B9 22 80 09 00 00 00 00 00 00 4D [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 B9 22 00 90 00 4F [06:39:12]RAPDU: 90 00 [06:39:12]wFMCommunicate OK [06:39:12]SAM_PROTO_ClearQueue done [06:39:12]KKMCreateOFDPacket [06:39:12]OFDProtocolAddRootSTLVToBuf [06:39:12]FM_MakeSignedData [06:39:12]FM_MakeSignedData [06:39:12]SAM_PROTO_SignData [06:39:12]wFMCommunicate request_size=4 [06:39:12]MH_SAM_APDU [06:39:12]CAPDU: 80 0D 01 02 [06:39:12]Write to MH i2c: E2 08 00 BA 22 80 0D 01 02 00 00 00 00 55 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:12]Read from MH i2c: E2 03 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 BA 22 00 90 00 50 [06:39:12]RAPDU: 90 00 [06:39:12]wFMCommunicate OK [06:39:12]wFMCommunicate request_size=255 [06:39:12]MH_SAM_APDU [06:39: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 37 30 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 94 BB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [06:39:12]Write to MH i2c: E2 02 01 BB 22 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 94 BB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 50 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 BB 22 00 90 00 51 [06:39:12]RAPDU: 90 00 [06:39:12]wFMCommunicate OK [06:39:12]wFMCommunicate request_size=32 [06:39:12]MH_SAM_APDU [06:39:12]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 B7 48 00 00 35 04 06 00 FB D4 1E 3A AA 6B [06:39:12]Write to MH i2c: E2 23 00 BC 22 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 B7 48 00 00 35 04 06 00 FB D4 1E 3A AA 6B 00 00 F6 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 03 00 BC 22 00 90 00 52 [06:39:12]RAPDU: 90 00 [06:39:12]wFMCommunicate OK [06:39:12]wFMCommunicate request_size=4 [06:39:12]MH_SAM_APDU [06:39:12]CAPDU: 80 0D 03 02 [06:39:12]Write to MH i2c: E2 08 00 BD 22 80 0D 03 02 00 00 00 00 5A [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 0B 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 0B 00 BD 22 00 F4 3C 1C CF EC C5 66 BF 90 00 4C [06:39:12]RAPDU: F4 3C 1C CF EC C5 66 BF 90 00 [06:39:12]wFMCommunicate OK [06:39:12]SAM_PROTO_SignData done [06:39:12]FM_MakeSignedData done [06:39:12]CreateOFDProtocolMessage [06:39:12]wFMCommunicate request_size=4 [06:39:12]MH_SAM_APDU [06:39:12]CAPDU: 80 11 00 00 [06:39:12]Write to MH i2c: E2 08 00 BE 22 80 11 00 00 00 00 00 00 5A [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:12]Read from MH i2c: E2 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 17 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: E2 17 00 BE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B3 [06:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:39:12]wFMCommunicate OK [06:39:12]CreateOFDProtocolMessage done [06:39:12]OFDSenderStorePacket 18615 [06:39:12]StoreOFDPacket docnum=18615 [06:39:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 C8 A1 1D 01 04 23 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 94 BB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B7 48 00 00 35 04 06 00 FB D4 1E 3A AA 6B F4 3C 1C CF EC C5 66 BF [06:39:12]CheckFolder [06:39:12]dirname=/storage/ofd_packets [06:39:12]CheckFolder done [06:39:12]ProducePacketName [06:39:12]name=ofd_packets/00018615 [06:39:12]NVStorageSaveData ofd_packets/00018615 [06:39:12]File name is /storage/ofd_packets/00018615 [06:39:12]Write 323 bytes [06:39:12]NVStorageSaveData done [06:39:12]OFDSenderStorePacket done [06:39:12]KKMCreateOFDPacket done [06:39:12]NVStorageSaveData kkm_last_timestamp [06:39:12]File name is /storage/kkm_last_timestamp [06:39:12]Write 4 bytes [06:39:12]NVStorageSaveData done [06:39:12]ExternCall_PrintAddStr [06:39:12]wPrintStart [06:39:12]Write to MH i2c: 01 00 00 BF 22 E1 [06:39:12]Write i2c OK [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: 01 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: 01 07 00 [06:39:12]MH_I2C_Read... [06:39:12]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 FF 0F F6 [06:39:12]RasterBufferAndPrint [06:39:12]line Счет N : (3)16539 [06:39:12]line ИНН: 02508201610067 [06:39:12]line Контрольно-Кассовый Чек [06:39:12]line ПРОДАЖА [06:39:12]line Товар: 48747066 [06:39:12]line Сигареты Winston True Silver [06:39:12]line 1.000 * 144.00 [06:39:12]line = 144.00 [06:39:12]line НДС 12% НСП 1% [06:39:12]line > о реализуемом товаре [06:39:12]line ИТОГО: 144.00 [06:39:12]line НСП 1% : 1.27 [06:39:12]line НДС 12% : 15.29 [06:39:12]line Наличными: 144.00 [06:39:12]line Безнал.: 0.00 [06:39:12]line Место: АЗС № 176 "Партнер Нефть" [06:39:12]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [06:39:12]line СНО: Общий режим [06:39:12]line Чек 11 22.09.2024 06:39 [06:39:12]line Смена: 180 ФФД: 1.0 [06:39:12]line ЗНМ: 0300000010 [06:39:12]line РНМ: 0000000000152968 [06:39:12]line Версия ККМ: v1.0 [06:39:12]line ФМ: 0000000000959456 [06:39:12]line ФД: 18615 [06:39:12]line ФПД: 276888458799723 [06:39:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T063916&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18615&fm=276888458799723&tin=02508201610067®Number=0000000000152968&sum=14400 [06:39:12]line 0 [06:39:12]OFD Sender: Processing packet 18615 [packets to send 7, broken 6] [06:39:12]ProducePacketName [06:39:12]name=ofd_packets/00018615 [06:39:12]OFD Sender: To server: pG, [06:39:12]CommunicateWithHost lk.salyk.kg:30040 [06:39:12]ConnectInit lk.salyk.kg [06:39:12]written 0, free lines is 4095 [06:39:13]Connected sock=10 [06:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 C8 A1 1D 01 04 23 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 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 94 BB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B7 48 00 00 35 04 06 00 FB D4 1E 3A AA 6B F4 3C 1C CF EC C5 66 BF [06:39:13]Write to MH i2c: 01 00 00 E7 22 09 [06:39:13]Write i2c OK [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: 01 [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: 01 07 00 [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: 01 07 00 E7 22 00 00 00 00 00 22 0D 3F [06:39:13]RasterBufferAndPrint [06:39:13]line [06:39:13]line [06:39:13]line [06:39:13]line [06:39:13]line [06:39:13]written 0, free lines is 3368 [06:39:13]MH_Cut [06:39:13]Write to MH i2c: D1 01 00 EE 22 01 E2 [06:39:13]Write i2c OK [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: D1 [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: D1 01 00 [06:39:13]MH_I2C_Read... [06:39:13]Read from MH i2c: D1 01 00 EE 22 00 E1 [06:39:13]Write to MH i2c: 01 00 00 EF 22 11 [06:39:13]Write i2c OK [06:39:13]MH_I2C_Read... [06:39:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 2A 48 47 00 E1 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B7 48 00 00 F4 03 04 00 FD 64 EF 66 B6 04 01 00 00 AA B5 18 5D 8E 96 0C E6 [06:39:13]CommunicateWithHost err = 0 [06:39:13]CheckOFDResponse [06:39:13]1017 (14) - 77093643461234 [06:39:13]1041 (16) - 0000000000959456 [06:39:13]1040 (4) - 18615 [06:39:13]1012 (4) - 22.09.2024 00:29 [06:39:13]1206 (1) - 0 [06:39:13]OFD Sender: Remove packet 18615 [06:39:13]ProducePacketName [06:39:13]name=ofd_packets/00018615 [06:39:13]NVStorageDeleteData [06:39:13]OFD Sender: No OFD packet to send [06:39:13]*** Cut start [06:39:13]*** Partial cut [06:39:13]*** CUTSNS_PIN = 1 [06:39:13]*** CUTSNS_PIN = 0 [06:39:14]*** Brake cut motor [06:39:14]Read from MH i2c: 01 [06:39:14]MH_I2C_Read... [06:39:14]*** Stop cut motor [06:39:14]*** Cut end [06:39:14]Read from MH i2c: 01 07 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: 01 07 00 EF 22 00 00 00 00 00 FF 0F 26 [06:39:14]process_action close_receipt done [06:39:14]requested_data is exist [06:39:14]produce_requested_data [06:39:14]requested_item fm.sn is exist - process it [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 11 00 00 [06:39:14]Write to MH i2c: E2 08 00 F0 22 80 11 00 00 00 00 00 00 8C [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 17 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 17 00 F0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E5 [06:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:39:14]wFMCommunicate OK [06:39:14]requested_item fd.num is exist - process it [06:39:14]SAM_PROTO_GetFieldsCounters [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 13 00 00 [06:39:14]Write to MH i2c: E2 08 00 F1 22 80 13 00 00 00 00 00 00 8F [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 62 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 62 00 F1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B7 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [06:39:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B7 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:39:14]wFMCommunicate OK [06:39:14]SAM_PROTO_GetFieldsCounters done [06:39:14]requested_item shift.num is exist - process it [06:39:14]requested_item shift.opened is exist - process it [06:39:14]req_shift_opened [06:39:14]FM_GetShiftState [06:39:14]SAM_PROTO_GetShiftState [06:39:14]wFMCommunicate request_size=4 [06:39:14]MH_SAM_APDU [06:39:14]CAPDU: 80 13 01 00 [06:39:14]Write to MH i2c: E2 08 00 F2 22 80 13 01 00 00 00 00 00 91 [06:39:14]Write i2c OK [06:39:14]MH_I2C_Read... [06:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:14]Read from MH i2c: E2 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 0E 00 [06:39:14]MH_I2C_Read... [06:39:14]Read from MH i2c: E2 0E 00 F2 22 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 51 [06:39:14]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [06:39:14]wFMCommunicate OK [06:39:14]SAM_PROTO_GetShiftState done [06:39:14]FM_GetShiftState done [06:39:14]req_shift_opened done [06:39:14]requested_item shift.open_date is exist - process it [06:39:14]req_shift_open_date [06:39:14]req_shift_open_date done [06:39:14]produce_requested_data done [06:39:14]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18615,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [06:39:14]process_action_free close_receipt [06:39:14]json_value_free [06:39:14]json_value_free done [06:39:14]process_json_proto returns [06:39:14]Send response to host [06:39:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18615,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [06:39:14]free response buf [06:39:14]execute_script done [06:39:14]execute_script returns [06:39:14]free content buf [06:39:14]Sock 9.Close socket [06:39:14]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:45:59]accept exits with 7 [06:45:59]New connection [06:45:59]New thread 3066522980 created [06:45:59]Thread 3066666340 joined [06:45:59]Waiting for new connection... [06:45:59] Sock 7.Parse request [06:45:59]Sock 7.Check first char [06:45:59]Sock 7.First char is OK [06:45:59]request: POST /json_proto HTTP/1.0 [06:45:59]Method: POST [06:45:59]URL: /json_proto [06:45:59]Method is POST - this is cgi request [06:45:59]url: /json_proto [06:45:59]query_string will be loaded in cgi processing [06:45:59]execute_cgi json_proto POST (null) [06:45:59]execute_cgi path=json_proto method=POST [06:45:59]POST find Content-Length [06:45:59]Host: 172.17.62.196:8080 [06:45:59]Content-Length: 621 [06:45:59]Content-Type: application/json [06:45:59] [06:45:59]POST finish read [06:45:59]Found Content-Length = 621 [06:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16540", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 2.000, "sum" : 312.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 312.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:59]execute_script... [06:45: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)16540", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 2.000, "sum" : 312.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 312.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:59]POST & json_proto [06:45:59]process_json_proto [06:45:59]json parsed OK: [06:45:59]protocol is kg_v1.0 [06:45:59]action value=close_receipt [06:45:59]process_action close_receipt [06:45:59]cmd_close_receipt [06:45:59]MH_GetDate [06:45:59]Write to MH i2c: F0 00 00 F3 22 04 [06:45:59]Write i2c OK [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: F0 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: F0 09 00 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: F0 09 00 F3 22 00 2D BD EF 66 CE CC 0E 66 5A [06:45:59]GetLastDocTimeStamp 1726987156 [06:45:59]current date 1726987565 [06:45:59]FM_GetShiftState [06:45:59]SAM_PROTO_GetShiftState [06:45:59]wFMCommunicate request_size=4 [06:45:59]MH_SAM_APDU [06:45:59]CAPDU: 80 13 01 00 [06:45:59]Write to MH i2c: E2 08 00 F4 22 80 13 01 00 00 00 00 00 93 [06:45:59]Write i2c OK [06:45:59]MH_I2C_Read... [06:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:59]Read from MH i2c: E2 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: E2 0E 00 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: E2 0E 00 F4 22 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 53 [06:45:59]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [06:45:59]wFMCommunicate OK [06:45:59]SAM_PROTO_GetShiftState done [06:45:59]FM_GetShiftState done [06:45:59]opened in 1726963967 [06:45:59]opened+sec_in_day 1727050367 [06:45:59]quantity*price = 31200 [06:45:59]sum+1 = 31201 [06:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 312.00 НСП 1% : 2.76 НДС 12% : 33.13 Наличными: 312.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 12 22.09.2024 06:46 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18616 ФПД: 35718681831550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T064605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18616&fm=35718681831550&tin=02508201610067®Number=0000000000152968&sum=31200 0 [06:46:00]StoreToDocumentArchive [06:46:00]shift 180 fd 18616 [06:46:00]save to /storage/0180/doc_00018616 [06:46:00]save last doc name /storage/0180/doc_00018616 to /storage/kkm_last_doc_name [06:46:01]save OK [06:46:01]Clear old archive folders... [06:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:46:01]tlvbuf is 019D3860 [06:46:01]SAM_PROTO_ClearQueue [06:46:01]wFMCommunicate request_size=4 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 09 00 00 [06:46:01]Write to MH i2c: E2 08 00 01 23 80 09 00 00 00 00 00 00 96 [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 01 23 00 90 00 98 [06:46:01]RAPDU: 90 00 [06:46:01]wFMCommunicate OK [06:46:01]SAM_PROTO_ClearQueue done [06:46:01]KKMCreateOFDPacket [06:46:01]OFDProtocolAddRootSTLVToBuf [06:46:01]FM_MakeSignedData [06:46:01]FM_MakeSignedData [06:46:01]SAM_PROTO_SignData [06:46:01]wFMCommunicate request_size=4 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 0D 01 02 [06:46:01]Write to MH i2c: E2 08 00 02 23 80 0D 01 02 00 00 00 00 9E [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 02 23 00 90 00 99 [06:46:01]RAPDU: 90 00 [06:46:01]wFMCommunicate OK [06:46:01]wFMCommunicate request_size=255 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 E0 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0C 00 00 00 00 07 04 06 00 E0 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 0C 00 00 00 F4 03 04 00 2D BD EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [06:46:01]Write to MH i2c: E2 02 01 03 23 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 E0 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0C 00 00 00 00 07 04 06 00 E0 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 0C 00 00 00 F4 03 04 00 2D BD EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 FA [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 03 23 00 90 00 9A [06:46:01]RAPDU: 90 00 [06:46:01]wFMCommunicate OK [06:46:01]wFMCommunicate request_size=33 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B8 48 00 00 35 04 06 00 20 7C 67 57 A8 7E [06:46:01]Write to MH i2c: E2 24 00 04 23 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B8 48 00 00 35 04 06 00 20 7C 67 57 A8 7E 00 00 B6 [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 03 00 04 23 00 90 00 9B [06:46:01]RAPDU: 90 00 [06:46:01]wFMCommunicate OK [06:46:01]wFMCommunicate request_size=4 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 0D 03 02 [06:46:01]Write to MH i2c: E2 08 00 05 23 80 0D 03 02 00 00 00 00 A3 [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 0B 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 0B 00 05 23 00 5C C4 FD 62 C1 27 BC 6C 90 00 33 [06:46:01]RAPDU: 5C C4 FD 62 C1 27 BC 6C 90 00 [06:46:01]wFMCommunicate OK [06:46:01]SAM_PROTO_SignData done [06:46:01]FM_MakeSignedData done [06:46:01]CreateOFDProtocolMessage [06:46:01]wFMCommunicate request_size=4 [06:46:01]MH_SAM_APDU [06:46:01]CAPDU: 80 11 00 00 [06:46:01]Write to MH i2c: E2 08 00 06 23 80 11 00 00 00 00 00 00 A3 [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:01]Read from MH i2c: E2 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 17 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: E2 17 00 06 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FC [06:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:46:01]wFMCommunicate OK [06:46:01]CreateOFDProtocolMessage done [06:46:01]OFDSenderStorePacket 18616 [06:46:01]StoreOFDPacket docnum=18616 [06:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 B8 33 1E 01 FB 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 E0 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0C 00 00 00 00 07 04 06 00 E0 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 0C 00 00 00 F4 03 04 00 2D BD EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B8 48 00 00 35 04 06 00 20 7C 67 57 A8 7E 5C C4 FD 62 C1 27 BC 6C [06:46:01]CheckFolder [06:46:01]dirname=/storage/ofd_packets [06:46:01]CheckFolder done [06:46:01]ProducePacketName [06:46:01]name=ofd_packets/00018616 [06:46:01]NVStorageSaveData ofd_packets/00018616 [06:46:01]File name is /storage/ofd_packets/00018616 [06:46:01]Write 324 bytes [06:46:01]NVStorageSaveData done [06:46:01]OFDSenderStorePacket done [06:46:01]KKMCreateOFDPacket done [06:46:01]NVStorageSaveData kkm_last_timestamp [06:46:01]File name is /storage/kkm_last_timestamp [06:46:01]Write 4 bytes [06:46:01]NVStorageSaveData done [06:46:01]ExternCall_PrintAddStr [06:46:01]wPrintStart [06:46:01]Write to MH i2c: 01 00 00 07 23 2A [06:46:01]Write i2c OK [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: 01 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: 01 07 00 [06:46:01]MH_I2C_Read... [06:46:01]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 FF 0F 3F [06:46:01]RasterBufferAndPrint [06:46:01]line Счет N : (3)16540 [06:46:01]line ИНН: 02508201610067 [06:46:01]line Контрольно-Кассовый Чек [06:46:01]line ПРОДАЖА [06:46:01]line Товар: 48741958 [06:46:01]line Сигареты Parliament Aqua Blue [06:46:01]line 2.000 * 156.00 [06:46:01]line = 312.00 [06:46:01]line НДС 12% НСП 1% [06:46:01]line > о реализуемом товаре [06:46:01]line ИТОГО: 312.00 [06:46:01]line НСП 1% : 2.76 [06:46:01]line НДС 12% : 33.13 [06:46:01]line Наличными: 312.00 [06:46:01]line Безнал.: 0.00 [06:46:01]line Место: АЗС № 176 "Партнер Нефть" [06:46:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [06:46:01]line СНО: Общий режим [06:46:01]line Чек 12 22.09.2024 06:46 [06:46:01]line Смена: 180 ФФД: 1.0 [06:46:01]line ЗНМ: 0300000010 [06:46:01]line РНМ: 0000000000152968 [06:46:01]line Версия ККМ: v1.0 [06:46:01]line ФМ: 0000000000959456 [06:46:01]line ФД: 18616 [06:46:01]line ФПД: 35718681831550 [06:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T064605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18616&fm=35718681831550&tin=02508201610067®Number=0000000000152968&sum=31200 [06:46:01]line 0 [06:46:01]OFD Sender: Processing packet 18616 [packets to send 7, broken 6] [06:46:01]ProducePacketName [06:46:01]name=ofd_packets/00018616 [06:46:01]OFD Sender: To server: pG, [06:46:01]CommunicateWithHost lk.salyk.kg:30040 [06:46:01]ConnectInit lk.salyk.kg [06:46:01]written 0, free lines is 4095 [06:46:02]Connected sock=10 [06:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 B8 33 1E 01 FB 9D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 E0 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 0C 00 00 00 00 07 04 06 00 E0 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 0C 00 00 00 F4 03 04 00 2D BD EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B8 48 00 00 35 04 06 00 20 7C 67 57 A8 7E 5C C4 FD 62 C1 27 BC 6C [06:46:02]Write to MH i2c: 01 00 00 30 23 53 [06:46:02]Write i2c OK [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: 01 [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: 01 07 00 [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: 01 07 00 30 23 00 00 00 00 00 FA 0C 60 [06:46:02]RasterBufferAndPrint [06:46:02]line [06:46:02]line [06:46:02]line [06:46:02]line [06:46:02]line [06:46:02]written 0, free lines is 3329 [06:46:02]MH_Cut [06:46:02]Write to MH i2c: D1 01 00 37 23 01 2C [06:46:02]Write i2c OK [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: D1 [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: D1 01 00 [06:46:02]MH_I2C_Read... [06:46:02]Read from MH i2c: D1 01 00 37 23 00 2B [06:46:02]Write to MH i2c: 01 00 00 38 23 5B [06:46:02]Write i2c OK [06:46:02]MH_I2C_Read... [06:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 08 B7 47 00 D9 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B8 48 00 00 F4 03 04 00 96 66 EF 66 B6 04 01 00 00 1F 76 8F AA 90 2C 15 D0 [06:46:02]CommunicateWithHost err = 0 [06:46:02]CheckOFDResponse [06:46:02]1017 (14) - 77093643461234 [06:46:02]1041 (16) - 0000000000959456 [06:46:02]1040 (4) - 18616 [06:46:02]1012 (4) - 22.09.2024 00:36 [06:46:02]1206 (1) - 0 [06:46:02]OFD Sender: Remove packet 18616 [06:46:02]ProducePacketName [06:46:02]name=ofd_packets/00018616 [06:46:02]NVStorageDeleteData [06:46:02]OFD Sender: No OFD packet to send [06:46:02]*** Cut start [06:46:02]*** Partial cut [06:46:02]*** CUTSNS_PIN = 1 [06:46:03]*** CUTSNS_PIN = 0 [06:46:03]*** Brake cut motor [06:46:03]Read from MH i2c: 01 [06:46:03]MH_I2C_Read... [06:46:03]*** Stop cut motor [06:46:03]*** Cut end [06:46:03]Read from MH i2c: 01 07 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: 01 07 00 38 23 00 00 00 00 00 FF 0F 70 [06:46:03]process_action close_receipt done [06:46:03]requested_data is exist [06:46:03]produce_requested_data [06:46:03]requested_item fm.sn is exist - process it [06:46:03]wFMCommunicate request_size=4 [06:46:03]MH_SAM_APDU [06:46:03]CAPDU: 80 11 00 00 [06:46:03]Write to MH i2c: E2 08 00 39 23 80 11 00 00 00 00 00 00 D6 [06:46:03]Write i2c OK [06:46:03]MH_I2C_Read... [06:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:03]Read from MH i2c: E2 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 17 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 17 00 39 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2F [06:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:46:03]wFMCommunicate OK [06:46:03]requested_item fd.num is exist - process it [06:46:03]SAM_PROTO_GetFieldsCounters [06:46:03]wFMCommunicate request_size=4 [06:46:03]MH_SAM_APDU [06:46:03]CAPDU: 80 13 00 00 [06:46:03]Write to MH i2c: E2 08 00 3A 23 80 13 00 00 00 00 00 00 D9 [06:46:03]Write i2c OK [06:46:03]MH_I2C_Read... [06:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:03]Read from MH i2c: E2 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 62 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 62 00 3A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B8 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [06:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B8 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:03]wFMCommunicate OK [06:46:03]SAM_PROTO_GetFieldsCounters done [06:46:03]requested_item shift.num is exist - process it [06:46:03]requested_item shift.opened is exist - process it [06:46:03]req_shift_opened [06:46:03]FM_GetShiftState [06:46:03]SAM_PROTO_GetShiftState [06:46:03]wFMCommunicate request_size=4 [06:46:03]MH_SAM_APDU [06:46:03]CAPDU: 80 13 01 00 [06:46:03]Write to MH i2c: E2 08 00 3B 23 80 13 01 00 00 00 00 00 DB [06:46:03]Write i2c OK [06:46:03]MH_I2C_Read... [06:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:03]Read from MH i2c: E2 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 0E 00 [06:46:03]MH_I2C_Read... [06:46:03]Read from MH i2c: E2 0E 00 3B 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9B [06:46:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [06:46:03]wFMCommunicate OK [06:46:03]SAM_PROTO_GetShiftState done [06:46:03]FM_GetShiftState done [06:46:03]req_shift_opened done [06:46:03]requested_item shift.open_date is exist - process it [06:46:03]req_shift_open_date [06:46:03]req_shift_open_date done [06:46:03]produce_requested_data done [06:46:03]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18616,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [06:46:03]process_action_free close_receipt [06:46:03]json_value_free [06:46:03]json_value_free done [06:46:03]process_json_proto returns [06:46:03]Send response to host [06:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18616,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [06:46:03]free response buf [06:46:03]execute_script done [06:46:03]execute_script returns [06:46:03]free content buf [06:46:03]Sock 7.Close socket [06:46:03]Sock 7.Thread stoped [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]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:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09: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:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16: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: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:08]ConnectInit Can't connect to host [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:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32: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:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:35:59]accept exits with 9 [07:35:59]New connection [07:35:59]New thread 3066666340 created [07:35:59]Thread 3066522980 joined [07:35:59]Waiting for new connection... [07:35:59] Sock 9.Parse request [07:35:59]Sock 9.Check first char [07:35:59]Sock 9.First char is OK [07:35:59]request: POST /json_proto HTTP/1.0 [07:35:59]Method: POST [07:35:59]URL: /json_proto [07:35:59]Method is POST - this is cgi request [07:35:59]url: /json_proto [07:35:59]query_string will be loaded in cgi processing [07:35:59]execute_cgi json_proto POST (null) [07:35:59]execute_cgi path=json_proto method=POST [07:35:59]POST find Content-Length [07:35:59]Host: 172.17.62.196:8080 [07:35:59]Content-Length: 783 [07:35:59]Content-Type: application/json [07:35:59] [07:35:59]POST finish read [07:35:59]Found Content-Length = 783 [07:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16541", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:59]execute_script... [07:35: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)16541", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:59]POST & json_proto [07:35:59]process_json_proto [07:35:59]json parsed OK: [07:35:59]protocol is kg_v1.0 [07:35:59]action value=close_receipt [07:35:59]process_action close_receipt [07:35:59]cmd_close_receipt [07:35:59]MH_GetDate [07:35:59]Write to MH i2c: F0 00 00 3C 23 4E [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 09 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 09 00 3C 23 00 E5 C8 EF 66 CE CC 0E 66 67 [07:35:59]GetLastDocTimeStamp 1726987565 [07:35:59]current date 1726990565 [07:35:59]FM_GetShiftState [07:35:59]SAM_PROTO_GetShiftState [07:35:59]wFMCommunicate request_size=4 [07:35:59]MH_SAM_APDU [07:35:59]CAPDU: 80 13 01 00 [07:35:59]Write to MH i2c: E2 08 00 3D 23 80 13 01 00 00 00 00 00 DD [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0E 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0E 00 3D 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9D [07:35:59]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [07:35:59]wFMCommunicate OK [07:35:59]SAM_PROTO_GetShiftState done [07:35:59]FM_GetShiftState done [07:35:59]opened in 1726963967 [07:35:59]opened+sec_in_day 1727050367 [07:35:59]quantity*price = 14400 [07:35:59]sum+1 = 14401 [07:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 13 22.09.2024 07:36 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18617 ФПД: 94853307128363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T073605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18617&fm=94853307128363&tin=02508201610067®Number=0000000000152968&sum=14400 0 [07:36:01]StoreToDocumentArchive [07:36:01]shift 180 fd 18617 [07:36:01]save to /storage/0180/doc_00018617 [07:36:01]save last doc name /storage/0180/doc_00018617 to /storage/kkm_last_doc_name [07:36:01]save OK [07:36:01]Clear old archive folders... [07:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:36:01]tlvbuf is B6D62790 [07:36:01]SAM_PROTO_ClearQueue [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 09 00 00 [07:36:01]Write to MH i2c: E2 08 00 4A 23 80 09 00 00 00 00 00 00 DF [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 4A 23 00 90 00 E1 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_ClearQueue done [07:36:01]KKMCreateOFDPacket [07:36:01]OFDProtocolAddRootSTLVToBuf [07:36:01]FM_MakeSignedData [07:36:01]FM_MakeSignedData [07:36:01]SAM_PROTO_SignData [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 01 02 [07:36:01]Write to MH i2c: E2 08 00 4B 23 80 0D 01 02 00 00 00 00 E7 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 4B 23 00 90 00 E2 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=255 [07:36:01]MH_SAM_APDU [07:36:01]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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 C8 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 [07:36:01]Write to MH i2c: E2 02 01 4C 23 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 C8 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 00 00 B5 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 4C 23 00 90 00 E3 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=34 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B9 48 00 00 35 04 06 00 56 44 C1 AD 5A 2B [07:36:01]Write to MH i2c: E2 25 00 4D 23 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B9 48 00 00 35 04 06 00 56 44 C1 AD 5A 2B 00 00 3F [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 4D 23 00 90 00 E4 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 03 02 [07:36:01]Write to MH i2c: E2 08 00 4E 23 80 0D 03 02 00 00 00 00 EC [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 0B 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 0B 00 4E 23 00 F2 39 99 5C 23 BD 22 10 90 00 1F [07:36:01]RAPDU: F2 39 99 5C 23 BD 22 10 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_SignData done [07:36:01]FM_MakeSignedData done [07:36:01]CreateOFDProtocolMessage [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 11 00 00 [07:36:01]Write to MH i2c: E2 08 00 4F 23 80 11 00 00 00 00 00 00 EC [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 4F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 45 [07:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:36:01]wFMCommunicate OK [07:36:01]CreateOFDProtocolMessage done [07:36:01]OFDSenderStorePacket 18617 [07:36:01]StoreOFDPacket docnum=18617 [07:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 27 01 00 00 F9 B5 1F 01 67 65 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 C8 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B9 48 00 00 35 04 06 00 56 44 C1 AD 5A 2B F2 39 99 5C 23 BD 22 10 [07:36:01]CheckFolder [07:36:01]dirname=/storage/ofd_packets [07:36:01]CheckFolder done [07:36:01]ProducePacketName [07:36:01]name=ofd_packets/00018617 [07:36:01]NVStorageSaveData ofd_packets/00018617 [07:36:01]File name is /storage/ofd_packets/00018617 [07:36:01]Write 325 bytes [07:36:01]NVStorageSaveData done [07:36:01]OFDSenderStorePacket done [07:36:01]KKMCreateOFDPacket done [07:36:01]NVStorageSaveData kkm_last_timestamp [07:36:01]File name is /storage/kkm_last_timestamp [07:36:01]Write 4 bytes [07:36:01]NVStorageSaveData done [07:36:01]ExternCall_PrintAddStr [07:36:01]wPrintStart [07:36:01]Write to MH i2c: 01 00 00 50 23 73 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 07 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 FF 0F 88 [07:36:01]RasterBufferAndPrint [07:36:01]line Счет N : (3)16541 [07:36:01]line ИНН: 02508201610067 [07:36:01]line Контрольно-Кассовый Чек [07:36:01]line ПРОДАЖА [07:36:01]line Товар: 48743587 [07:36:01]line Сигареты Winston XStyle Silver [07:36:01]line 1.000 * 144.00 [07:36:01]line = 144.00 [07:36:01]line НДС 12% НСП 1% [07:36:01]line > о реализуемом товаре [07:36:01]line ИТОГО: 144.00 [07:36:01]line НСП 1% : 1.27 [07:36:01]line НДС 12% : 15.29 [07:36:01]line Наличными: 0.00 [07:36:01]line Безнал.: 144.00 [07:36:01]line Место: АЗС № 176 "Партнер Нефть" [07:36:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:36:01]line СНО: Общий режим [07:36:01]line Чек 13 22.09.2024 07:36 [07:36:01]line Смена: 180 ФФД: 1.0 [07:36:01]line ЗНМ: 0300000010 [07:36:01]line РНМ: 0000000000152968 [07:36:01]line Версия ККМ: v1.0 [07:36:01]line Платежная система: O! деньги [07:36:01]line ФМ: 0000000000959456 [07:36:01]line ФД: 18617 [07:36:01]line ФПД: 94853307128363 [07:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T073605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18617&fm=94853307128363&tin=02508201610067®Number=0000000000152968&sum=14400 [07:36:01]line 0 [07:36:01]OFD Sender: Processing packet 18617 [packets to send 7, broken 6] [07:36:01]ProducePacketName [07:36:01]name=ofd_packets/00018617 [07:36:01]OFD Sender: To server: pG, [07:36:01]CommunicateWithHost lk.salyk.kg:30040 [07:36:01]ConnectInit lk.salyk.kg [07:36:01]written 0, free lines is 4095 [07:36:02]Connected sock=10 [07:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 27 01 00 00 F9 B5 1F 01 67 65 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 C8 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B9 48 00 00 35 04 06 00 56 44 C1 AD 5A 2B F2 39 99 5C 23 BD 22 10 [07:36:02]Write to MH i2c: 01 00 00 7B 23 9E [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 07 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 07 00 7B 23 00 00 00 00 00 EE 0C 9F [07:36:02]RasterBufferAndPrint [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]written 0, free lines is 3317 [07:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F4 41 47 00 59 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 B9 48 00 00 F4 03 04 00 4E 72 EF 66 B6 04 01 00 00 B6 B3 9D 39 58 3D 81 7E [07:36:02]CommunicateWithHost err = 0 [07:36:02]CheckOFDResponse [07:36:02]1017 (14) - 77093643461234 [07:36:02]1041 (16) - 0000000000959456 [07:36:02]1040 (4) - 18617 [07:36:02]1012 (4) - 22.09.2024 01:26 [07:36:02]1206 (1) - 0 [07:36:02]OFD Sender: Remove packet 18617 [07:36:02]ProducePacketName [07:36:02]name=ofd_packets/00018617 [07:36:02]NVStorageDeleteData [07:36:02]MH_Cut [07:36:02]Write to MH i2c: D1 01 00 82 23 01 77 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 01 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 01 00 82 23 00 76 [07:36:02]Write to MH i2c: 01 00 00 83 23 A6 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]OFD Sender: No OFD packet to send [07:36:03]*** Cut start [07:36:03]*** Partial cut [07:36:03]*** CUTSNS_PIN = 1 [07:36:03]*** CUTSNS_PIN = 0 [07:36:03]*** Brake cut motor [07:36:03]Read from MH i2c: 01 [07:36:03]MH_I2C_Read... [07:36:03]*** Stop cut motor [07:36:03]*** Cut end [07:36:03]Read from MH i2c: 01 07 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: 01 07 00 83 23 00 00 00 00 00 FF 0F BB [07:36:03]process_action close_receipt done [07:36:03]requested_data is exist [07:36:03]produce_requested_data [07:36:03]requested_item fm.sn is exist - process it [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 11 00 00 [07:36:03]Write to MH i2c: E2 08 00 84 23 80 11 00 00 00 00 00 00 21 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 17 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 17 00 84 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7A [07:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:36:03]wFMCommunicate OK [07:36:03]requested_item fd.num is exist - process it [07:36:03]SAM_PROTO_GetFieldsCounters [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 13 00 00 [07:36:03]Write to MH i2c: E2 08 00 85 23 80 13 00 00 00 00 00 00 24 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 62 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 62 00 85 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B9 48 00 00 0E 04 04 00 B4 00 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 2D [07:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 B9 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:03]wFMCommunicate OK [07:36:03]SAM_PROTO_GetFieldsCounters done [07:36:03]requested_item shift.num is exist - process it [07:36:03]requested_item shift.opened is exist - process it [07:36:03]req_shift_opened [07:36:03]FM_GetShiftState [07:36:03]SAM_PROTO_GetShiftState [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 13 01 00 [07:36:03]Write to MH i2c: E2 08 00 86 23 80 13 01 00 00 00 00 00 26 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 0E 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 0E 00 86 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E6 [07:36:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [07:36:03]wFMCommunicate OK [07:36:03]SAM_PROTO_GetShiftState done [07:36:03]FM_GetShiftState done [07:36:03]req_shift_opened done [07:36:03]requested_item shift.open_date is exist - process it [07:36:03]req_shift_open_date [07:36:03]req_shift_open_date done [07:36:03]produce_requested_data done [07:36:03]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18617,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [07:36:03]process_action_free close_receipt [07:36:03]json_value_free [07:36:03]json_value_free done [07:36:03]process_json_proto returns [07:36:03]Send response to host [07:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18617,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [07:36:03]free response buf [07:36:03]execute_script done [07:36:03]execute_script returns [07:36:03]free content buf [07:36:03]Sock 9.Close socket [07:36:03]Sock 9.Thread stoped [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:44]accept exits with 7 [07:42:44]New connection [07:42:44]New thread 3066522980 created [07:42:44]Thread 3066666340 joined [07:42:44]Waiting for new connection... [07:42:44] Sock 7.Parse request [07:42:44]Sock 7.Check first char [07:42:44]Sock 7.First char is OK [07:42:44]request: POST /json_proto HTTP/1.0 [07:42:44]Method: POST [07:42:44]URL: /json_proto [07:42:44]Method is POST - this is cgi request [07:42:44]url: /json_proto [07:42:44]query_string will be loaded in cgi processing [07:42:44]execute_cgi json_proto POST (null) [07:42:44]execute_cgi path=json_proto method=POST [07:42:44]POST find Content-Length [07:42:44]Host: 172.17.62.196:8080 [07:42:44]Content-Length: 891 [07:42:44]Content-Type: application/json [07:42:44] [07:42:44]POST finish read [07:42:44]Found Content-Length = 891 [07:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16542", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:44]execute_script... [07:42: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)16542", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:44]POST & json_proto [07:42:44]process_json_proto [07:42:44]json parsed OK: [07:42:44]protocol is kg_v1.0 [07:42:44]action value=close_receipt [07:42:44]process_action close_receipt [07:42:44]cmd_close_receipt [07:42:44]MH_GetDate [07:42:44]Write to MH i2c: F0 00 00 87 23 99 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: F0 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: F0 09 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: F0 09 00 87 23 00 7A CA EF 66 CE CC 0E 66 49 [07:42:44]GetLastDocTimeStamp 1726990565 [07:42:44]current date 1726990970 [07:42:44]FM_GetShiftState [07:42:44]SAM_PROTO_GetShiftState [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 13 01 00 [07:42:44]Write to MH i2c: E2 08 00 88 23 80 13 01 00 00 00 00 00 28 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0E 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0E 00 88 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E8 [07:42:44]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [07:42:44]wFMCommunicate OK [07:42:44]SAM_PROTO_GetShiftState done [07:42:44]FM_GetShiftState done [07:42:44]opened in 1726963967 [07:42:44]opened+sec_in_day 1727050367 [07:42:44]quantity*price = 15900 [07:42:44]sum+1 = 15901 [07:42:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.34 НДС 12% : 28.03 Наличными: 264.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 14 22.09.2024 07:42 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18618 ФПД: 89326829824542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074250&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18618&fm=89326829824542&tin=02508201610067®Number=0000000000152968&sum=26400 0 [07:42:45]StoreToDocumentArchive [07:42:45]shift 180 fd 18618 [07:42:45]save to /storage/0180/doc_00018618 [07:42:45]save last doc name /storage/0180/doc_00018618 to /storage/kkm_last_doc_name [07:42:45]save OK [07:42:45]Clear old archive folders... [07:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=390 [07:42:45]tlvbuf is 019A5A80 [07:42:45]SAM_PROTO_ClearQueue [07:42:45]wFMCommunicate request_size=4 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 09 00 00 [07:42:45]Write to MH i2c: E2 08 00 95 23 80 09 00 00 00 00 00 00 2A [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 95 23 00 90 00 2C [07:42:45]RAPDU: 90 00 [07:42:45]wFMCommunicate OK [07:42:45]SAM_PROTO_ClearQueue done [07:42:45]KKMCreateOFDPacket [07:42:45]OFDProtocolAddRootSTLVToBuf [07:42:45]FM_MakeSignedData [07:42:45]FM_MakeSignedData [07:42:45]SAM_PROTO_SignData [07:42:45]wFMCommunicate request_size=4 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 0D 01 02 [07:42:45]Write to MH i2c: E2 08 00 96 23 80 0D 01 02 00 00 00 00 32 [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [07:42:45]RAPDU: 90 00 [07:42:45]wFMCommunicate OK [07:42:45]wFMCommunicate request_size=255 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 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 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [07:42:45]Write to MH i2c: E2 02 01 97 23 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 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 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 1D [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 97 23 00 90 00 2E [07:42:45]RAPDU: 90 00 [07:42:45]wFMCommunicate OK [07:42:45]wFMCommunicate request_size=149 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A CA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BA 48 00 00 35 04 06 00 51 3E 05 F5 EA 1E [07:42:45]Write to MH i2c: E2 98 00 98 23 80 0D 02 02 90 00 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A CA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BA 48 00 00 35 04 06 00 51 3E 05 F5 EA 1E 00 00 EB [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [07:42:45]RAPDU: 90 00 [07:42:45]wFMCommunicate OK [07:42:45]wFMCommunicate request_size=4 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 0D 03 02 [07:42:45]Write to MH i2c: E2 08 00 99 23 80 0D 03 02 00 00 00 00 37 [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 0B 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 0B 00 99 23 00 88 76 BD CE 58 9A AF 40 90 00 A2 [07:42:45]RAPDU: 88 76 BD CE 58 9A AF 40 90 00 [07:42:45]wFMCommunicate OK [07:42:45]SAM_PROTO_SignData done [07:42:45]FM_MakeSignedData done [07:42:45]CreateOFDProtocolMessage [07:42:45]wFMCommunicate request_size=4 [07:42:45]MH_SAM_APDU [07:42:45]CAPDU: 80 11 00 00 [07:42:45]Write to MH i2c: E2 08 00 9A 23 80 11 00 00 00 00 00 00 37 [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:45]Read from MH i2c: E2 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 17 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: E2 17 00 9A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 90 [07:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:45]wFMCommunicate OK [07:42:45]CreateOFDProtocolMessage done [07:42:45]OFDSenderStorePacket 18618 [07:42:45]StoreOFDPacket docnum=18618 [07:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9A 01 00 00 AB 41 92 01 20 3E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 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 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A CA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BA 48 00 00 35 04 06 00 51 3E 05 F5 EA 1E 88 76 BD CE 58 9A AF 40 [07:42:45]CheckFolder [07:42:45]dirname=/storage/ofd_packets [07:42:45]CheckFolder done [07:42:45]ProducePacketName [07:42:45]name=ofd_packets/00018618 [07:42:45]NVStorageSaveData ofd_packets/00018618 [07:42:45]File name is /storage/ofd_packets/00018618 [07:42:45]Write 440 bytes [07:42:45]NVStorageSaveData done [07:42:45]OFDSenderStorePacket done [07:42:45]KKMCreateOFDPacket done [07:42:45]NVStorageSaveData kkm_last_timestamp [07:42:45]File name is /storage/kkm_last_timestamp [07:42:45]Write 4 bytes [07:42:45]NVStorageSaveData done [07:42:45]ExternCall_PrintAddStr [07:42:45]wPrintStart [07:42:45]Write to MH i2c: 01 00 00 9B 23 BE [07:42:45]Write i2c OK [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: 01 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: 01 07 00 [07:42:45]MH_I2C_Read... [07:42:45]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 FF 0F D3 [07:42:45]RasterBufferAndPrint [07:42:45]line Счет N : (3)16542 [07:42:45]line ИНН: 02508201610067 [07:42:45]line Контрольно-Кассовый Чек [07:42:45]line ПРОДАЖА [07:42:45]line Товар: 48745895 [07:42:45]line Сигареты RICHMOND KS GOLD EDITION [07:42:45]line 1.000 * 159.00 [07:42:45]line = 159.00 [07:42:45]line НДС 12% НСП 1% [07:42:45]line > о реализуемом товаре [07:42:45]line Товар: 2000034730018 [07:42:46]line Кофе Американо (GABB TRADE) [07:42:46]line 1.000 * 105.00 [07:42:46]line = 105.00 [07:42:46]line НДС 12% НСП 1% [07:42:46]line > о реализуемом товаре [07:42:46]line ИТОГО: 264.00 [07:42:46]line НСП 1% : 2.34 [07:42:46]line НДС 12% : 28.03 [07:42:46]line Наличными: 264.00 [07:42:46]line Безнал.: 0.00 [07:42:46]line Место: АЗС № 176 "Партнер Нефть" [07:42:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:42:46]line СНО: Общий режим [07:42:46]line Чек 14 22.09.2024 07:42 [07:42:46]line Смена: 180 ФФД: 1.0 [07:42:46]line ЗНМ: 0300000010 [07:42:46]line РНМ: 0000000000152968 [07:42:46]line Версия ККМ: v1.0 [07:42:46]line ФМ: 0000000000959456 [07:42:46]line ФД: 18618 [07:42:46]line ФПД: 89326829824542 [07:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T074250&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18618&fm=89326829824542&tin=02508201610067®Number=0000000000152968&sum=26400 [07:42:46]line 0 [07:42:46]OFD Sender: Processing packet 18618 [packets to send 7, broken 6] [07:42:46]ProducePacketName [07:42:46]name=ofd_packets/00018618 [07:42:46]OFD Sender: To server: pG, [07:42:46]CommunicateWithHost lk.salyk.kg:30040 [07:42:46]ConnectInit lk.salyk.kg [07:42:46]written 0, free lines is 4095 [07:42:46]Connected sock=10 [07:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9A 01 00 00 AB 41 92 01 20 3E 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 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 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 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7A CA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BA 48 00 00 35 04 06 00 51 3E 05 F5 EA 1E 88 76 BD CE 58 9A AF 40 [07:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 30 6E 47 00 29 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 39 35 39 34 35 36 10 04 04 00 BA 48 00 00 F4 03 04 00 E2 73 EF 66 B6 04 01 00 00 4B 37 98 58 F3 A8 0C D0 [07:42:46]CommunicateWithHost err = 0 [07:42:46]CheckOFDResponse [07:42:46]1017 (14) - 77093643461234 [07:42:46]1041 (16) - 0000000000959456 [07:42:46]1040 (4) - 18618 [07:42:46]1012 (4) - 22.09.2024 01:33 [07:42:46]1206 (1) - 0 [07:42:46]OFD Sender: Remove packet 18618 [07:42:46]ProducePacketName [07:42:46]name=ofd_packets/00018618 [07:42:46]NVStorageDeleteData [07:42:46]Write to MH i2c: 01 00 00 CB 23 EE [07:42:46]Write i2c OK [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 07 00 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 BB 0C BC [07:42:46]RasterBufferAndPrint [07:42:46]line [07:42:46]line [07:42:46]line [07:42:46]line [07:42:46]line [07:42:46]written 0, free lines is 3270 [07:42:46]MH_Cut [07:42:46]Write to MH i2c: D1 01 00 D2 23 01 C7 [07:42:46]Write i2c OK [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: D1 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: D1 01 00 [07:42:46]MH_I2C_Read... [07:42:46]Read from MH i2c: D1 01 00 D2 23 00 C6 [07:42:46]Write to MH i2c: 01 00 00 D3 23 F6 [07:42:46]Write i2c OK [07:42:46]MH_I2C_Read... [07:42:47]OFD Sender: No OFD packet to send [07:42:47]*** Cut start [07:42:47]*** Partial cut [07:42:47]*** CUTSNS_PIN = 1 [07:42:47]*** CUTSNS_PIN = 0 [07:42:47]*** Brake cut motor [07:42:48]Read from MH i2c: 01 [07:42:48]MH_I2C_Read... [07:42:48]*** Stop cut motor [07:42:48]*** Cut end [07:42:48]Read from MH i2c: 01 07 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: 01 07 00 D3 23 00 00 00 00 00 FF 0F 0B [07:42:48]process_action close_receipt done [07:42:48]requested_data is exist [07:42:48]produce_requested_data [07:42:48]requested_item fm.sn is exist - process it [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 11 00 00 [07:42:48]Write to MH i2c: E2 08 00 D4 23 80 11 00 00 00 00 00 00 71 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:48]Read from MH i2c: E2 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 17 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 17 00 D4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CA [07:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:48]wFMCommunicate OK [07:42:48]requested_item fd.num is exist - process it [07:42:48]SAM_PROTO_GetFieldsCounters [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 13 00 00 [07:42:48]Write to MH i2c: E2 08 00 D5 23 80 13 00 00 00 00 00 00 74 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:48]Read from MH i2c: E2 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 62 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 62 00 D5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BA 48 00 00 0E 04 04 00 B4 00 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 81 [07:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BA 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:48]wFMCommunicate OK [07:42:48]SAM_PROTO_GetFieldsCounters done [07:42:48]requested_item shift.num is exist - process it [07:42:48]requested_item shift.opened is exist - process it [07:42:48]req_shift_opened [07:42:48]FM_GetShiftState [07:42:48]SAM_PROTO_GetShiftState [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 13 01 00 [07:42:48]Write to MH i2c: E2 08 00 D6 23 80 13 01 00 00 00 00 00 76 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:48]Read from MH i2c: E2 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 D6 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 36 [07:42:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [07:42:48]wFMCommunicate OK [07:42:48]SAM_PROTO_GetShiftState done [07:42:48]FM_GetShiftState done [07:42:48]req_shift_opened done [07:42:48]requested_item shift.open_date is exist - process it [07:42:48]req_shift_open_date [07:42:48]req_shift_open_date done [07:42:48]produce_requested_data done [07:42:48]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18618,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [07:42:48]process_action_free close_receipt [07:42:48]json_value_free [07:42:48]json_value_free done [07:42:48]process_json_proto returns [07:42:48]Send response to host [07:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18618,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [07:42:48]free response buf [07:42:48]execute_script done [07:42:48]execute_script returns [07:42:48]free content buf [07:42:48]Sock 7.Close socket [07:42:48]Sock 7.Thread stoped [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:09]accept exits with 9 [08:15:09]New connection [08:15:09]New thread 3066666340 created [08:15:09]Thread 3066522980 joined [08:15:09]Waiting for new connection... [08:15:09] Sock 9.Parse request [08:15:09]Sock 9.Check first char [08:15:09]Sock 9.First char is OK [08:15:09]request: POST /json_proto HTTP/1.0 [08:15:09]Method: POST [08:15:09]URL: /json_proto [08:15:09]Method is POST - this is cgi request [08:15:09]url: /json_proto [08:15:09]query_string will be loaded in cgi processing [08:15:09]execute_cgi json_proto POST (null) [08:15:09]execute_cgi path=json_proto method=POST [08:15:09]POST find Content-Length [08:15:09]Host: 172.17.62.196:8080 [08:15:09]Content-Length: 788 [08:15:09]Content-Type: application/json [08:15:09] [08:15:09]POST finish read [08:15:09]Found Content-Length = 788 [08:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16543", "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: 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" ] } } [08:15:09]execute_script... [08:15: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)16543", "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: 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" ] } } [08:15:09]POST & json_proto [08:15:09]process_json_proto [08:15:09]json parsed OK: [08:15:09]protocol is kg_v1.0 [08:15:09]action value=close_receipt [08:15:09]process_action close_receipt [08:15:09]cmd_close_receipt [08:15:09]MH_GetDate [08:15:09]Write to MH i2c: F0 00 00 D7 23 E9 [08:15:09]Write i2c OK [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 09 00 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 09 00 D7 23 00 14 D2 EF 66 CE CC 0E 66 3B [08:15:09]GetLastDocTimeStamp 1726990970 [08:15:09]current date 1726992916 [08:15:09]FM_GetShiftState [08:15:09]SAM_PROTO_GetShiftState [08:15:09]wFMCommunicate request_size=4 [08:15:09]MH_SAM_APDU [08:15:09]CAPDU: 80 13 01 00 [08:15:09]Write to MH i2c: E2 08 00 D8 23 80 13 01 00 00 00 00 00 78 [08:15:09]Write i2c OK [08:15:09]MH_I2C_Read... [08:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:09]Read from MH i2c: E2 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: E2 0E 00 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: E2 0E 00 D8 23 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 38 [08:15:09]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:15:09]wFMCommunicate OK [08:15:09]SAM_PROTO_GetShiftState done [08:15:09]FM_GetShiftState done [08:15:09]opened in 1726963967 [08:15:09]opened+sec_in_day 1727050367 [08:15:09]quantity*price = 13000 [08:15:09]sum+1 = 13001 [08:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 15 22.09.2024 08:15 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18619 ФПД: 166507420218556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T081516&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18619&fm=166507420218556&tin=02508201610067®Number=0000000000152968&sum=13000 0 [08:15:11]StoreToDocumentArchive [08:15:11]shift 180 fd 18619 [08:15:11]save to /storage/0180/doc_00018619 [08:15:11]save last doc name /storage/0180/doc_00018619 to /storage/kkm_last_doc_name [08:15:11]save OK [08:15:11]Clear old archive folders... [08:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:15:11]tlvbuf is 019B9880 [08:15:11]SAM_PROTO_ClearQueue [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 09 00 00 [08:15:11]Write to MH i2c: E2 08 00 E5 23 80 09 00 00 00 00 00 00 7A [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 E5 23 00 90 00 7C [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_ClearQueue done [08:15:11]KKMCreateOFDPacket [08:15:11]OFDProtocolAddRootSTLVToBuf [08:15:11]FM_MakeSignedData [08:15:11]FM_MakeSignedData [08:15:11]SAM_PROTO_SignData [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 01 02 [08:15:11]Write to MH i2c: E2 08 00 E6 23 80 0D 01 02 00 00 00 00 82 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 E6 23 00 90 00 7D [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=255 [08:15:11]MH_SAM_APDU [08:15:11]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 0F 00 00 00 F4 03 04 00 14 D2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [08:15:11]Write to MH i2c: E2 02 01 E7 23 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 0F 00 00 00 F4 03 04 00 14 D2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 A1 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 E7 23 00 90 00 7E [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=35 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BB 48 00 00 35 04 06 00 97 70 07 A2 74 BC [08:15:11]Write to MH i2c: E2 26 00 E8 23 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BB 48 00 00 35 04 06 00 97 70 07 A2 74 BC 00 00 61 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 E8 23 00 90 00 7F [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 03 02 [08:15:11]Write to MH i2c: E2 08 00 E9 23 80 0D 03 02 00 00 00 00 87 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0B 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0B 00 E9 23 00 E1 6D 31 83 97 D3 6C 0E 90 00 6E [08:15:11]RAPDU: E1 6D 31 83 97 D3 6C 0E 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_SignData done [08:15:11]FM_MakeSignedData done [08:15:11]CreateOFDProtocolMessage [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 11 00 00 [08:15:11]Write to MH i2c: E2 08 00 EA 23 80 11 00 00 00 00 00 00 87 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 17 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 17 00 EA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E0 [08:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:15:11]wFMCommunicate OK [08:15:11]CreateOFDProtocolMessage done [08:15:11]OFDSenderStorePacket 18619 [08:15:11]StoreOFDPacket docnum=18619 [08:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 E9 0C 20 01 2D AD 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 0F 00 00 00 F4 03 04 00 14 D2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BB 48 00 00 35 04 06 00 97 70 07 A2 74 BC E1 6D 31 83 97 D3 6C 0E [08:15:11]CheckFolder [08:15:11]dirname=/storage/ofd_packets [08:15:11]CheckFolder done [08:15:11]ProducePacketName [08:15:11]name=ofd_packets/00018619 [08:15:11]NVStorageSaveData ofd_packets/00018619 [08:15:11]File name is /storage/ofd_packets/00018619 [08:15:11]Write 326 bytes [08:15:11]NVStorageSaveData done [08:15:11]OFDSenderStorePacket done [08:15:11]KKMCreateOFDPacket done [08:15:11]NVStorageSaveData kkm_last_timestamp [08:15:11]File name is /storage/kkm_last_timestamp [08:15:11]Write 4 bytes [08:15:11]NVStorageSaveData done [08:15:11]ExternCall_PrintAddStr [08:15:11]wPrintStart [08:15:11]Write to MH i2c: 01 00 00 EB 23 0E [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 07 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 FF 0F 23 [08:15:11]RasterBufferAndPrint [08:15:11]line Счет N : (3)16543 [08:15:11]line ИНН: 02508201610067 [08:15:11]line Контрольно-Кассовый Чек [08:15:11]line ПРОДАЖА [08:15:11]line Товар: 2000036230011 [08:15:11]line Кофе Латте XL(GABB TRADE) [08:15:11]line 1.000 * 130.00 [08:15:11]line = 130.00 [08:15:11]line НДС 12% НСП 1% [08:15:11]line > о реализуемом товаре [08:15:11]line ИТОГО: 130.00 [08:15:11]line НСП 1% : 1.15 [08:15:11]line НДС 12% : 13.80 [08:15:11]line Наличными: 0.00 [08:15:11]line Безнал.: 130.00 [08:15:11]line Место: АЗС № 176 "Партнер Нефть" [08:15:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:15:11]line СНО: Общий режим [08:15:11]line Чек 15 22.09.2024 08:15 [08:15:11]line Смена: 180 ФФД: 1.0 [08:15:11]line ЗНМ: 0300000010 [08:15:11]line РНМ: 0000000000152968 [08:15:11]line Версия ККМ: v1.0 [08:15:11]line Платежная система: O! деньги [08:15:11]line ФМ: 0000000000959456 [08:15:11]line ФД: 18619 [08:15:11]line ФПД: 166507420218556 [08:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T081516&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18619&fm=166507420218556&tin=02508201610067®Number=0000000000152968&sum=13000 [08:15:11]line 0 [08:15:11]OFD Sender: Processing packet 18619 [packets to send 7, broken 6] [08:15:11]ProducePacketName [08:15:11]name=ofd_packets/00018619 [08:15:11]OFD Sender: To server: pG, [08:15:11]CommunicateWithHost lk.salyk.kg:30040 [08:15:11]ConnectInit lk.salyk.kg [08:15:11]written 0, free lines is 4095 [08:15:12]Connected sock=10 [08:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 E9 0C 20 01 2D AD 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 0F 00 00 00 F4 03 04 00 14 D2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BB 48 00 00 35 04 06 00 97 70 07 A2 74 BC E1 6D 31 83 97 D3 6C 0E [08:15:12]Write to MH i2c: 01 00 00 15 24 39 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 15 24 00 00 00 00 00 FC 0C 48 [08:15:12]RasterBufferAndPrint [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]written 0, free lines is 3333 [08:15:12]MH_Cut [08:15:12]Write to MH i2c: D1 01 00 1C 24 01 12 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 01 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 01 00 1C 24 00 11 [08:15:12]Write to MH i2c: 01 00 00 1D 24 41 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 16 1B 47 00 28 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BB 48 00 00 F4 03 04 00 7C 7B EF 66 B6 04 01 00 00 13 93 FC 6B 12 52 E0 F7 [08:15:12]CommunicateWithHost err = 0 [08:15:12]CheckOFDResponse [08:15:12]1017 (14) - 77093643461234 [08:15:12]1041 (16) - 0000000000959456 [08:15:12]1040 (4) - 18619 [08:15:12]1012 (4) - 22.09.2024 02:05 [08:15:12]1206 (1) - 0 [08:15:12]OFD Sender: Remove packet 18619 [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00018619 [08:15:12]NVStorageDeleteData [08:15:12]OFD Sender: No OFD packet to send [08:15:13]*** Cut start [08:15:13]*** Partial cut [08:15:13]*** CUTSNS_PIN = 1 [08:15:13]*** CUTSNS_PIN = 0 [08:15:13]*** Brake cut motor [08:15:13]Read from MH i2c: 01 [08:15:13]MH_I2C_Read... [08:15:13]*** Stop cut motor [08:15:13]*** Cut end [08:15:13]Read from MH i2c: 01 07 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 1D 24 00 00 00 00 00 FF 0F 56 [08:15:13]process_action close_receipt done [08:15:13]requested_data is exist [08:15:13]produce_requested_data [08:15:13]requested_item fm.sn is exist - process it [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 11 00 00 [08:15:13]Write to MH i2c: E2 08 00 1E 24 80 11 00 00 00 00 00 00 BC [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 1E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 15 [08:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:15:13]wFMCommunicate OK [08:15:13]requested_item fd.num is exist - process it [08:15:13]SAM_PROTO_GetFieldsCounters [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 13 00 00 [08:15:13]Write to MH i2c: E2 08 00 1F 24 80 13 00 00 00 00 00 00 BF [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 62 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 62 00 1F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BB 48 00 00 0E 04 04 00 B4 00 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 D0 [08:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BB 48 00 00 0E 04 04 00 B4 00 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 [08:15:13]wFMCommunicate OK [08:15:13]SAM_PROTO_GetFieldsCounters done [08:15:13]requested_item shift.num is exist - process it [08:15:13]requested_item shift.opened is exist - process it [08:15:13]req_shift_opened [08:15:13]FM_GetShiftState [08:15:13]SAM_PROTO_GetShiftState [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 13 01 00 [08:15:13]Write to MH i2c: E2 08 00 20 24 80 13 01 00 00 00 00 00 C1 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 0E 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 0E 00 20 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 81 [08:15:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:15:13]wFMCommunicate OK [08:15:13]SAM_PROTO_GetShiftState done [08:15:13]FM_GetShiftState done [08:15:13]req_shift_opened done [08:15:13]requested_item shift.open_date is exist - process it [08:15:13]req_shift_open_date [08:15:13]req_shift_open_date done [08:15:13]produce_requested_data done [08:15:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18619,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [08:15:13]process_action_free close_receipt [08:15:13]json_value_free [08:15:13]json_value_free done [08:15:13]process_json_proto returns [08:15:13]Send response to host [08:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18619,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [08:15:13]free response buf [08:15:13]execute_script done [08:15:13]execute_script returns [08:15:13]free content buf [08:15:13]Sock 9.Close socket [08:15:13]Sock 9.Thread stoped [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [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:39]accept exits with 7 [08:31:39]New connection [08:31:39]New thread 3066522980 created [08:31:39]Thread 3066666340 joined [08:31:39]Waiting for new connection... [08:31:39] Sock 7.Parse request [08:31:39]Sock 7.Check first char [08:31:39]Sock 7.First char is OK [08:31:39]request: POST /json_proto HTTP/1.0 [08:31:39]Method: POST [08:31:39]URL: /json_proto [08:31:39]Method is POST - this is cgi request [08:31:39]url: /json_proto [08:31:39]query_string will be loaded in cgi processing [08:31:39]execute_cgi json_proto POST (null) [08:31:39]execute_cgi path=json_proto method=POST [08:31:39]POST find Content-Length [08:31:39]Host: 172.17.62.196:8080 [08:31:39]Content-Length: 1060 [08:31:39]Content-Type: application/json [08:31:39] [08:31:39]POST finish read [08:31:39]Found Content-Length = 1060 [08:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16544", "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": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:39]execute_script... [08:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16544", "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": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:39]POST & json_proto [08:31:39]process_json_proto [08:31:39]json parsed OK: [08:31:39]protocol is kg_v1.0 [08:31:39]action value=close_receipt [08:31:39]process_action close_receipt [08:31:39]cmd_close_receipt [08:31:39]MH_GetDate [08:31:39]Write to MH i2c: F0 00 00 21 24 34 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: F0 09 00 21 24 00 F1 D5 EF 66 CE CC 0E 66 66 [08:31:39]GetLastDocTimeStamp 1726992916 [08:31:39]current date 1726993905 [08:31:39]FM_GetShiftState [08:31:39]SAM_PROTO_GetShiftState [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 01 00 [08:31:39]Write to MH i2c: E2 08 00 22 24 80 13 01 00 00 00 00 00 C3 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 22 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 83 [08:31:39]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetShiftState done [08:31:39]FM_GetShiftState done [08:31:39]opened in 1726963967 [08:31:39]opened+sec_in_day 1727050367 [08:31:39]quantity*price = 13000 [08:31:39]sum+1 = 13001 [08:31:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 0.00 Безнал.: 250.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 16 22.09.2024 08:31 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18620 ФПД: 170879546404269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T083145&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18620&fm=170879546404269&tin=02508201610067®Number=0000000000152968&sum=25000 0 [08:31:40]StoreToDocumentArchive [08:31:40]shift 180 fd 18620 [08:31:40]save to /storage/0180/doc_00018620 [08:31:40]save last doc name /storage/0180/doc_00018620 to /storage/kkm_last_doc_name [08:31:40]save OK [08:31:40]Clear old archive folders... [08:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=390 [08:31:40]tlvbuf is 01983DC0 [08:31:40]SAM_PROTO_ClearQueue [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 09 00 00 [08:31:40]Write to MH i2c: E2 08 00 2F 24 80 09 00 00 00 00 00 00 C5 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_ClearQueue done [08:31:40]KKMCreateOFDPacket [08:31:40]OFDProtocolAddRootSTLVToBuf [08:31:40]FM_MakeSignedData [08:31:40]FM_MakeSignedData [08:31:40]SAM_PROTO_SignData [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 01 02 [08:31:40]Write to MH i2c: E2 08 00 30 24 80 0D 01 02 00 00 00 00 CD [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=255 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 02 02 FA 03 00 86 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [08:31:40]Write to MH i2c: E2 02 01 31 24 80 0D 02 02 FA 00 03 00 86 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 8E [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=149 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F1 D5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BC 48 00 00 35 04 06 00 9B 69 FE A9 AD AD [08:31:40]Write to MH i2c: E2 98 00 32 24 80 0D 02 02 90 00 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F1 D5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BC 48 00 00 35 04 06 00 9B 69 FE A9 AD AD 00 00 60 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 03 00 32 24 00 90 00 CA [08:31:40]RAPDU: 90 00 [08:31:40]wFMCommunicate OK [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 0D 03 02 [08:31:40]Write to MH i2c: E2 08 00 33 24 80 0D 03 02 00 00 00 00 D2 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0B 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0B 00 33 24 00 FC 64 A5 52 45 86 E7 88 90 00 64 [08:31:40]RAPDU: FC 64 A5 52 45 86 E7 88 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_SignData done [08:31:40]FM_MakeSignedData done [08:31:40]CreateOFDProtocolMessage [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 11 00 00 [08:31:40]Write to MH i2c: E2 08 00 34 24 80 11 00 00 00 00 00 00 D2 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 34 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2B [08:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:31:40]wFMCommunicate OK [08:31:40]CreateOFDProtocolMessage done [08:31:40]OFDSenderStorePacket 18620 [08:31:40]StoreOFDPacket docnum=18620 [08:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9A 01 00 00 77 49 92 01 9E 19 5A 03 01 00 03 00 86 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F1 D5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BC 48 00 00 35 04 06 00 9B 69 FE A9 AD AD FC 64 A5 52 45 86 E7 88 [08:31:40]CheckFolder [08:31:40]dirname=/storage/ofd_packets [08:31:40]CheckFolder done [08:31:40]ProducePacketName [08:31:41]name=ofd_packets/00018620 [08:31:41]NVStorageSaveData ofd_packets/00018620 [08:31:41]File name is /storage/ofd_packets/00018620 [08:31:41]Write 440 bytes [08:31:41]NVStorageSaveData done [08:31:41]OFDSenderStorePacket done [08:31:41]KKMCreateOFDPacket done [08:31:41]NVStorageSaveData kkm_last_timestamp [08:31:41]File name is /storage/kkm_last_timestamp [08:31:41]Write 4 bytes [08:31:41]NVStorageSaveData done [08:31:41]ExternCall_PrintAddStr [08:31:41]wPrintStart [08:31:41]Write to MH i2c: 01 00 00 35 24 59 [08:31:41]OFD Sender: Processing packet 18620 [packets to send 7, broken 6] [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00018620 [08:31:41]OFD Sender: To server: pG, [08:31:41]CommunicateWithHost lk.salyk.kg:30040 [08:31:41]ConnectInit lk.salyk.kg [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 FF 0F 6E [08:31:41]RasterBufferAndPrint [08:31:41]line Счет N : (3)16544 [08:31:41]line ИНН: 02508201610067 [08:31:41]line Контрольно-Кассовый Чек [08:31:41]line ПРОДАЖА [08:31:41]line Товар: 2000036230011 [08:31:41]line Кофе Латте XL(GABB TRADE) [08:31:41]line 1.000 * 130.00 [08:31:41]line = 130.00 [08:31:41]line НДС 12% НСП 1% [08:31:41]line > о реализуемом товаре [08:31:41]line Товар: 2000034250011 [08:31:41]line Горячий шоколад (GABB trade) [08:31:41]line 1.000 * 120.00 [08:31:41]line = 120.00 [08:31:41]line НДС 12% НСП 1% [08:31:41]line > о реализуемом товаре [08:31:41]line ИТОГО: 250.00 [08:31:41]line НСП 1% : 2.21 [08:31:41]line НДС 12% : 26.54 [08:31:41]line Наличными: 0.00 [08:31:41]line Безнал.: 250.00 [08:31:41]line Место: АЗС № 176 "Партнер Нефть" [08:31:41]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:31:41]line СНО: Общий режим [08:31:41]line Чек 16 22.09.2024 08:31 [08:31:41]line Смена: 180 ФФД: 1.0 [08:31:41]line ЗНМ: 0300000010 [08:31:41]line РНМ: 0000000000152968 [08:31:41]line Версия ККМ: v1.0 [08:31:41]line Платежная система: O! деньги [08:31:41]line ФМ: 0000000000959456 [08:31:41]line ФД: 18620 [08:31:41]line ФПД: 170879546404269 [08:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T083145&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18620&fm=170879546404269&tin=02508201610067®Number=0000000000152968&sum=25000 [08:31:41]line 0 [08:31:41]written 0, free lines is 4095 [08:31:41]Connected sock=10 [08:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9A 01 00 00 77 49 92 01 9E 19 5A 03 01 00 03 00 86 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F1 D5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BC 48 00 00 35 04 06 00 9B 69 FE A9 AD AD FC 64 A5 52 45 86 E7 88 [08:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 03 4F 47 00 EB 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 39 35 39 34 35 36 10 04 04 00 BC 48 00 00 F4 03 04 00 59 7F EF 66 B6 04 01 00 00 97 FB A4 70 A9 B7 C6 A1 [08:31:41]CommunicateWithHost err = 0 [08:31:41]CheckOFDResponse [08:31:41]1017 (14) - 77093643461234 [08:31:41]1041 (16) - 0000000000959456 [08:31:41]1040 (4) - 18620 [08:31:41]1012 (4) - 22.09.2024 02:22 [08:31:41]1206 (1) - 0 [08:31:41]OFD Sender: Remove packet 18620 [08:31:41]ProducePacketName [08:31:41]name=ofd_packets/00018620 [08:31:41]NVStorageDeleteData [08:31:41]Write to MH i2c: 01 00 00 66 24 8A [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 A9 0C 46 [08:31:41]RasterBufferAndPrint [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]line [08:31:41]written 0, free lines is 3247 [08:31:41]MH_Cut [08:31:41]Write to MH i2c: D1 01 00 6D 24 01 63 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: D1 01 00 6D 24 00 62 [08:31:41]Write to MH i2c: 01 00 00 6E 24 92 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:42]OFD Sender: No OFD packet to send [08:31:42]*** Cut start [08:31:42]*** Partial cut [08:31:42]*** CUTSNS_PIN = 1 [08:31:42]*** CUTSNS_PIN = 0 [08:31:42]*** Brake cut motor [08:31:43]Read from MH i2c: 01 [08:31:43]MH_I2C_Read... [08:31:43]*** Stop cut motor [08:31:43]*** Cut end [08:31:43]Read from MH i2c: 01 07 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 FF 0F A7 [08:31:43]process_action close_receipt done [08:31:43]requested_data is exist [08:31:43]produce_requested_data [08:31:43]requested_item fm.sn is exist - process it [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 11 00 00 [08:31:43]Write to MH i2c: E2 08 00 6F 24 80 11 00 00 00 00 00 00 0D [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 17 00 6F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 66 [08:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:31:43]wFMCommunicate OK [08:31:43]requested_item fd.num is exist - process it [08:31:43]SAM_PROTO_GetFieldsCounters [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 00 00 [08:31:43]Write to MH i2c: E2 08 00 70 24 80 13 00 00 00 00 00 00 10 [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 62 00 70 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BC 48 00 00 0E 04 04 00 B4 00 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 25 [08:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BC 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetFieldsCounters done [08:31:43]requested_item shift.num is exist - process it [08:31:43]requested_item shift.opened is exist - process it [08:31:43]req_shift_opened [08:31:43]FM_GetShiftState [08:31:43]SAM_PROTO_GetShiftState [08:31:43]wFMCommunicate request_size=4 [08:31:43]MH_SAM_APDU [08:31:43]CAPDU: 80 13 01 00 [08:31:43]Write to MH i2c: E2 08 00 71 24 80 13 01 00 00 00 00 00 12 [08:31:43]Write i2c OK [08:31:43]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 0E 00 71 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D2 [08:31:43]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetShiftState done [08:31:43]FM_GetShiftState done [08:31:43]req_shift_opened done [08:31:43]requested_item shift.open_date is exist - process it [08:31:43]req_shift_open_date [08:31:43]req_shift_open_date done [08:31:43]produce_requested_data done [08:31:43]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18620,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [08:31:43]process_action_free close_receipt [08:31:43]json_value_free [08:31:43]json_value_free done [08:31:43]process_json_proto returns [08:31:43]Send response to host [08:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18620,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [08:31:43]free response buf [08:31:43]execute_script done [08:31:43]execute_script returns [08:31:43]free content buf [08:31:43]Sock 7.Close socket [08:31:43]Sock 7.Thread stoped [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:41]accept exits with 9 [08:45:41]New connection [08:45:41]New thread 3066666340 created [08:45:41]Thread 3066522980 joined [08:45:41]Waiting for new connection... [08:45:41] Sock 9.Parse request [08:45:41]Sock 9.Check first char [08:45:41]Sock 9.First char is OK [08:45:41]request: POST /json_proto HTTP/1.0 [08:45:41]Method: POST [08:45:41]URL: /json_proto [08:45:41]Method is POST - this is cgi request [08:45:41]url: /json_proto [08:45:41]query_string will be loaded in cgi processing [08:45:41]execute_cgi json_proto POST (null) [08:45:41]execute_cgi path=json_proto method=POST [08:45:41]POST find Content-Length [08:45:41]Host: 172.17.62.196:8080 [08:45:41]Content-Length: 828 [08:45:41]Content-Type: application/json [08:45:41] [08:45:41]POST finish read [08:45:41]Found Content-Length = 828 [08:45:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16545", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:41]execute_script... [08:45: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)16545", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:41]POST & json_proto [08:45:41]process_json_proto [08:45:41]json parsed OK: [08:45:41]protocol is kg_v1.0 [08:45:41]action value=close_receipt [08:45:41]process_action close_receipt [08:45:41]cmd_close_receipt [08:45:41]MH_GetDate [08:45:41]Write to MH i2c: F0 00 00 72 24 85 [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: F0 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: F0 09 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: F0 09 00 72 24 00 3C D9 EF 66 CE CC 0E 66 06 [08:45:41]GetLastDocTimeStamp 1726993905 [08:45:41]current date 1726994748 [08:45:41]FM_GetShiftState [08:45:41]SAM_PROTO_GetShiftState [08:45:41]wFMCommunicate request_size=4 [08:45:41]MH_SAM_APDU [08:45:41]CAPDU: 80 13 01 00 [08:45:41]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [08:45:41]Write i2c OK [08:45:41]MH_I2C_Read... [08:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:41]Read from MH i2c: E2 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 0E 00 [08:45:41]MH_I2C_Read... [08:45:41]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D4 [08:45:41]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:45:41]wFMCommunicate OK [08:45:41]SAM_PROTO_GetShiftState done [08:45:41]FM_GetShiftState done [08:45:41]opened in 1726963967 [08:45:41]opened+sec_in_day 1727050367 [08:45:41]quantity*price = 12500 [08:45:41]sum+1 = 12501 [08:45:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 17 22.09.2024 08:45 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18621 ФПД: 78496140236255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084548&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18621&fm=78496140236255&tin=02508201610067®Number=0000000000152968&sum=12500 0 [08:45:43]StoreToDocumentArchive [08:45:43]shift 180 fd 18621 [08:45:43]save to /storage/0180/doc_00018621 [08:45:43]save last doc name /storage/0180/doc_00018621 to /storage/kkm_last_doc_name [08:45:43]save OK [08:45:43]Clear old archive folders... [08:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:45:43]tlvbuf is 01983C80 [08:45:43]SAM_PROTO_ClearQueue [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 09 00 00 [08:45:43]Write to MH i2c: E2 08 00 80 24 80 09 00 00 00 00 00 00 16 [08:45:43]OFD Sender: No OFD packet to send [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]SAM_PROTO_ClearQueue done [08:45:43]KKMCreateOFDPacket [08:45:43]OFDProtocolAddRootSTLVToBuf [08:45:43]FM_MakeSignedData [08:45:43]FM_MakeSignedData [08:45:43]SAM_PROTO_SignData [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 01 02 [08:45:43]Write to MH i2c: E2 08 00 81 24 80 0D 01 02 00 00 00 00 1E [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 81 24 00 90 00 19 [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=255 [08:45:43]MH_SAM_APDU [08:45:43]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 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 11 00 00 00 F4 03 04 00 3C D9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [08:45:43]Write to MH i2c: E2 02 01 82 24 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 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 11 00 00 00 F4 03 04 00 3C D9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 F5 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=43 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BD 48 00 00 35 04 06 00 47 64 4E 8E 15 DF [08:45:43]Write to MH i2c: E2 2E 00 83 24 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BD 48 00 00 35 04 06 00 47 64 4E 8E 15 DF 00 00 8F [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [08:45:43]RAPDU: 90 00 [08:45:43]wFMCommunicate OK [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 0D 03 02 [08:45:43]Write to MH i2c: E2 08 00 84 24 80 0D 03 02 00 00 00 00 23 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 0B 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 0B 00 84 24 00 82 2A 90 65 44 D8 E1 C7 90 00 89 [08:45:43]RAPDU: 82 2A 90 65 44 D8 E1 C7 90 00 [08:45:43]wFMCommunicate OK [08:45:43]SAM_PROTO_SignData done [08:45:43]FM_MakeSignedData done [08:45:43]CreateOFDProtocolMessage [08:45:43]wFMCommunicate request_size=4 [08:45:43]MH_SAM_APDU [08:45:43]CAPDU: 80 11 00 00 [08:45:43]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:43]Read from MH i2c: E2 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 17 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7C [08:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:45:43]wFMCommunicate OK [08:45:43]CreateOFDProtocolMessage done [08:45:43]OFDSenderStorePacket 18621 [08:45:43]StoreOFDPacket docnum=18621 [08:45:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 DC 1B 28 01 7A 4A 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 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 11 00 00 00 F4 03 04 00 3C D9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BD 48 00 00 35 04 06 00 47 64 4E 8E 15 DF 82 2A 90 65 44 D8 E1 C7 [08:45:43]CheckFolder [08:45:43]dirname=/storage/ofd_packets [08:45:43]CheckFolder done [08:45:43]ProducePacketName [08:45:43]name=ofd_packets/00018621 [08:45:43]NVStorageSaveData ofd_packets/00018621 [08:45:43]File name is /storage/ofd_packets/00018621 [08:45:43]Write 334 bytes [08:45:43]NVStorageSaveData done [08:45:43]OFDSenderStorePacket done [08:45:43]KKMCreateOFDPacket done [08:45:43]NVStorageSaveData kkm_last_timestamp [08:45:43]File name is /storage/kkm_last_timestamp [08:45:43]Write 4 bytes [08:45:43]NVStorageSaveData done [08:45:43]ExternCall_PrintAddStr [08:45:43]wPrintStart [08:45:43]Write to MH i2c: 01 00 00 86 24 AA [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 FF 0F BF [08:45:43]RasterBufferAndPrint [08:45:43]line Счет N : (3)16545 [08:45:43]line ИНН: 02508201610067 [08:45:43]line Контрольно-Кассовый Чек [08:45:43]line ПРОДАЖА [08:45:43]line Товар: 2000036190018 [08:45:43]line Кофе Американо XL(GABB TRADE) [08:45:43]line 1.000 * 125.00 [08:45:43]line = 125.00 [08:45:43]line НДС 12% НСП 1% [08:45:43]line > о реализуемом товаре [08:45:43]line ИТОГО: 125.00 [08:45:43]line НСП 1% : 1.11 [08:45:43]line НДС 12% : 13.27 [08:45:43]line Наличными: 0.00 [08:45:43]line Безнал.: 125.00 [08:45:43]line Место: АЗС № 176 "Партнер Нефть" [08:45:43]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:45:43]line СНО: Общий режим [08:45:43]line Чек 17 22.09.2024 08:45 [08:45:43]line Смена: 180 ФФД: 1.0 [08:45:43]line ЗНМ: 0300000010 [08:45:43]line РНМ: 0000000000152968 [08:45:43]line Версия ККМ: v1.0 [08:45:43]line Платежная система: Бакай Банк [08:45:43]line ФМ: 0000000000959456 [08:45:43]line ФД: 18621 [08:45:43]line ФПД: 78496140236255 [08:45:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T084548&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18621&fm=78496140236255&tin=02508201610067®Number=0000000000152968&sum=12500 [08:45:43]line 0 [08:45:43]OFD Sender: Processing packet 18621 [packets to send 7, broken 6] [08:45:43]ProducePacketName [08:45:43]name=ofd_packets/00018621 [08:45:43]OFD Sender: To server: pG, [08:45:43]CommunicateWithHost lk.salyk.kg:30040 [08:45:43]ConnectInit lk.salyk.kg [08:45:43]written 0, free lines is 4095 [08:45:44]Connected sock=10 [08:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 DC 1B 28 01 7A 4A 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 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 11 00 00 00 F4 03 04 00 3C D9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BD 48 00 00 35 04 06 00 47 64 4E 8E 15 DF 82 2A 90 65 44 D8 E1 C7 [08:45:44]Write to MH i2c: 01 00 00 B1 24 D5 [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: 01 07 00 B1 24 00 00 00 00 00 E8 0C D0 [08:45:44]RasterBufferAndPrint [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]line [08:45:44]written 0, free lines is 3310 [08:45:44]MH_Cut [08:45:44]Write to MH i2c: D1 01 00 B8 24 01 AE [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 01 00 [08:45:44]MH_I2C_Read... [08:45:44]Read from MH i2c: D1 01 00 B8 24 00 AD [08:45:44]Write to MH i2c: 01 00 00 B9 24 DD [08:45:44]Write i2c OK [08:45:44]MH_I2C_Read... [08:45:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 57 96 47 00 14 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BD 48 00 00 F4 03 04 00 A4 82 EF 66 B6 04 01 00 00 37 5D 91 14 B0 AB 51 92 [08:45:44]CommunicateWithHost err = 0 [08:45:44]CheckOFDResponse [08:45:44]1017 (14) - 77093643461234 [08:45:44]1041 (16) - 0000000000959456 [08:45:44]1040 (4) - 18621 [08:45:44]1012 (4) - 22.09.2024 02:36 [08:45:44]1206 (1) - 0 [08:45:44]OFD Sender: Remove packet 18621 [08:45:44]ProducePacketName [08:45:44]name=ofd_packets/00018621 [08:45:44]NVStorageDeleteData [08:45:44]OFD Sender: No OFD packet to send [08:45:45]*** Cut start [08:45:45]*** Partial cut [08:45:45]*** CUTSNS_PIN = 1 [08:45:45]*** CUTSNS_PIN = 0 [08:45:45]*** Brake cut motor [08:45:45]Read from MH i2c: 01 [08:45:45]MH_I2C_Read... [08:45:45]*** Stop cut motor [08:45:45]*** Cut end [08:45:45]Read from MH i2c: 01 07 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: 01 07 00 B9 24 00 00 00 00 00 FF 0F F2 [08:45:45]process_action close_receipt done [08:45:45]requested_data is exist [08:45:45]produce_requested_data [08:45:45]requested_item fm.sn is exist - process it [08:45:45]wFMCommunicate request_size=4 [08:45:45]MH_SAM_APDU [08:45:45]CAPDU: 80 11 00 00 [08:45:45]Write to MH i2c: E2 08 00 BA 24 80 11 00 00 00 00 00 00 58 [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:45]Read from MH i2c: E2 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 17 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 17 00 BA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B1 [08:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:45:45]wFMCommunicate OK [08:45:45]requested_item fd.num is exist - process it [08:45:45]SAM_PROTO_GetFieldsCounters [08:45:45]wFMCommunicate request_size=4 [08:45:45]MH_SAM_APDU [08:45:45]CAPDU: 80 13 00 00 [08:45:45]Write to MH i2c: E2 08 00 BB 24 80 13 00 00 00 00 00 00 5B [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:45]Read from MH i2c: E2 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 62 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 62 00 BB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BD 48 00 00 0E 04 04 00 B4 00 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 74 [08:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BD 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:45]wFMCommunicate OK [08:45:45]SAM_PROTO_GetFieldsCounters done [08:45:45]requested_item shift.num is exist - process it [08:45:45]requested_item shift.opened is exist - process it [08:45:45]req_shift_opened [08:45:45]FM_GetShiftState [08:45:45]SAM_PROTO_GetShiftState [08:45:45]wFMCommunicate request_size=4 [08:45:45]MH_SAM_APDU [08:45:45]CAPDU: 80 13 01 00 [08:45:45]Write to MH i2c: E2 08 00 BC 24 80 13 01 00 00 00 00 00 5D [08:45:45]Write i2c OK [08:45:45]MH_I2C_Read... [08:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:45]Read from MH i2c: E2 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 0E 00 [08:45:45]MH_I2C_Read... [08:45:45]Read from MH i2c: E2 0E 00 BC 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 1D [08:45:45]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:45:45]wFMCommunicate OK [08:45:45]SAM_PROTO_GetShiftState done [08:45:45]FM_GetShiftState done [08:45:45]req_shift_opened done [08:45:45]requested_item shift.open_date is exist - process it [08:45:45]req_shift_open_date [08:45:45]req_shift_open_date done [08:45:45]produce_requested_data done [08:45:45]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18621,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [08:45:45]process_action_free close_receipt [08:45:45]json_value_free [08:45:45]json_value_free done [08:45:45]process_json_proto returns [08:45:45]Send response to host [08:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18621,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [08:45:45]free response buf [08:45:45]execute_script done [08:45:45]execute_script returns [08:45:45]free content buf [08:45:45]Sock 9.Close socket [08:45:45]Sock 9.Thread stoped [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47: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:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:23]int [08:52:23]Write to MH i2c: 01 00 00 BD 24 E1 [08:52:23]*** FLAG_PRN_KEY set [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 BD 24 00 08 00 00 00 FF 0F FE [08:52:23]state=0 [08:52:23]Key pressed [08:52:23]Feed [08:52:23]Write to MH i2c: D8 00 00 BE 24 B9 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D8 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D8 01 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D8 01 00 BE 24 00 BA [08:52:23]int [08:52:23]Write to MH i2c: 01 00 00 BF 24 E3 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 BF 24 00 48 00 00 00 3C 00 6E [08:52:23]state=2 [08:52:23]Key pressed [08:52:24]int [08:52:24]Write to MH i2c: 01 00 00 C0 24 E4 [08:52:24]*** FLAG_PRN_KEY reset [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 C0 24 00 00 00 00 00 F6 0F F0 [08:52:24]state=2 [08:52:24]Stop feed [08:52:24]int [08:52:24]Write to MH i2c: 01 00 00 C1 24 E5 [08:52:24]*** FLAG_PRN_KEY set [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 C1 24 00 08 00 00 00 FF 0F 02 [08:52:24]state=0 [08:52:24]Key pressed [08:52:24]Feed [08:52:24]Write to MH i2c: D8 00 00 C2 24 BD [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: D8 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: D8 01 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: D8 01 00 C2 24 00 BE [08:52:24]int [08:52:24]Write to MH i2c: 01 00 00 C3 24 E7 [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 C3 24 00 48 00 00 00 3C 00 72 [08:52:24]state=2 [08:52:24]Key pressed [08:52:24]int [08:52:24]Write to MH i2c: 01 00 00 C4 24 E8 [08:52:24]*** FLAG_PRN_KEY reset [08:52:24]Write i2c OK [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 [08:52:24]MH_I2C_Read... [08:52:24]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 F6 0F F4 [08:52:24]state=2 [08:52:24]Stop feed [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54: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:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:09]accept exits with 7 [08:55:09]New connection [08:55:09]New thread 3066522980 created [08:55:09]Thread 3066666340 joined [08:55:09]Waiting for new connection... [08:55:09] Sock 7.Parse request [08:55:09]Sock 7.Check first char [08:55:09]Sock 7.First char is OK [08:55:09]request: POST /json_proto HTTP/1.0 [08:55:09]Method: POST [08:55:09]URL: /json_proto [08:55:09]Method is POST - this is cgi request [08:55:09]url: /json_proto [08:55:09]query_string will be loaded in cgi processing [08:55:09]execute_cgi json_proto POST (null) [08:55:09]execute_cgi path=json_proto method=POST [08:55:09]POST find Content-Length [08:55:09]Host: 172.17.62.196:8080 [08:55:09]Content-Length: 645 [08:55:09]Content-Type: application/json [08:55:09] [08:55:09]POST finish read [08:55:09]Found Content-Length = 645 [08:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16546", "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" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:09]execute_script... [08: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)16546", "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" : 185.00, "quantity" : 2.000, "sum" : 370.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 370.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:09]POST & json_proto [08:55:09]process_json_proto [08:55:09]json parsed OK: [08:55:09]protocol is kg_v1.0 [08:55:09]action value=close_receipt [08:55:09]process_action close_receipt [08:55:09]cmd_close_receipt [08:55:09]MH_GetDate [08:55:09]Write to MH i2c: F0 00 00 C5 24 D8 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 09 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 09 00 C5 24 00 74 DB EF 66 CE CC 0E 66 93 [08:55:09]GetLastDocTimeStamp 1726994748 [08:55:09]current date 1726995316 [08:55:09]FM_GetShiftState [08:55:09]SAM_PROTO_GetShiftState [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 01 00 [08:55:09]Write to MH i2c: E2 08 00 C6 24 80 13 01 00 00 00 00 00 67 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 C6 24 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 27 [08:55:09]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetShiftState done [08:55:09]FM_GetShiftState done [08:55:09]opened in 1726963967 [08:55:09]opened+sec_in_day 1727050367 [08:55:09]quantity*price = 37000 [08:55:09]sum+1 = 37001 [08:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 370.00 НСП 1% : 3.27 НДС 12% : 39.29 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 18 22.09.2024 08:55 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18622 ФПД: 42635536460039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T085516&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18622&fm=42635536460039&tin=02508201610067®Number=0000000000152968&sum=37000 0 [08:55:11]StoreToDocumentArchive [08:55:11]shift 180 fd 18622 [08:55:11]save to /storage/0180/doc_00018622 [08:55:11]save last doc name /storage/0180/doc_00018622 to /storage/kkm_last_doc_name [08:55:11]save OK [08:55:11]Clear old archive folders... [08:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:55:11]tlvbuf is 01983510 [08:55:11]SAM_PROTO_ClearQueue [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 09 00 00 [08:55:11]Write to MH i2c: E2 08 00 D3 24 80 09 00 00 00 00 00 00 69 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_ClearQueue done [08:55:11]KKMCreateOFDPacket [08:55:11]OFDProtocolAddRootSTLVToBuf [08:55:11]FM_MakeSignedData [08:55:11]FM_MakeSignedData [08:55:11]SAM_PROTO_SignData [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 01 02 [08:55:11]Write to MH i2c: E2 08 00 D4 24 80 0D 01 02 00 00 00 00 71 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]wFMCommunicate request_size=255 [08:55:11]MH_SAM_APDU [08:55:11]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 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 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 74 DB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [08:55:11]Write to MH i2c: E2 02 01 D5 24 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 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 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 74 DB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 37 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]wFMCommunicate request_size=37 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BE 48 00 00 35 04 06 00 26 C6 DC 01 69 07 [08:55:11]Write to MH i2c: E2 28 00 D6 24 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BE 48 00 00 35 04 06 00 26 C6 DC 01 69 07 00 00 10 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 03 02 [08:55:11]Write to MH i2c: E2 08 00 D7 24 80 0D 03 02 00 00 00 00 76 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0B 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0B 00 D7 24 00 15 91 70 0F 56 E0 AE FD 90 00 7D [08:55:11]RAPDU: 15 91 70 0F 56 E0 AE FD 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_SignData done [08:55:11]FM_MakeSignedData done [08:55:11]CreateOFDProtocolMessage [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 11 00 00 [08:55:11]Write to MH i2c: E2 08 00 D8 24 80 11 00 00 00 00 00 00 76 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 17 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 17 00 D8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CF [08:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:55:11]wFMCommunicate OK [08:55:11]CreateOFDProtocolMessage done [08:55:11]OFDSenderStorePacket 18622 [08:55:11]StoreOFDPacket docnum=18622 [08:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 F0 30 22 01 54 12 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 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 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 74 DB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BE 48 00 00 35 04 06 00 26 C6 DC 01 69 07 15 91 70 0F 56 E0 AE FD [08:55:11]CheckFolder [08:55:11]dirname=/storage/ofd_packets [08:55:11]CheckFolder done [08:55:11]ProducePacketName [08:55:11]name=ofd_packets/00018622 [08:55:11]NVStorageSaveData ofd_packets/00018622 [08:55:11]File name is /storage/ofd_packets/00018622 [08:55:11]Write 328 bytes [08:55:11]NVStorageSaveData done [08:55:11]OFDSenderStorePacket done [08:55:11]KKMCreateOFDPacket done [08:55:11]NVStorageSaveData kkm_last_timestamp [08:55:11]File name is /storage/kkm_last_timestamp [08:55:11]Write 4 bytes [08:55:11]NVStorageSaveData done [08:55:11]ExternCall_PrintAddStr [08:55:11]wPrintStart [08:55:11]Write to MH i2c: 01 00 00 D9 24 FD [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 D9 24 00 00 00 00 00 FF 0F 12 [08:55:11]RasterBufferAndPrint [08:55:11]line Счет N : (3)16546 [08:55:11]line ИНН: 02508201610067 [08:55:11]line Контрольно-Кассовый Чек [08:55:11]line ПРОДАЖА [08:55:11]line Товар: 90162602 [08:55:11]line Энерг напиток Red bull 0,25л [08:55:11]line 2.000 * 185.00 [08:55:11]line = 370.00 [08:55:11]line НДС 12% НСП 1% [08:55:11]line > о реализуемом товаре [08:55:11]line ИТОГО: 370.00 [08:55:11]line НСП 1% : 3.27 [08:55:11]line НДС 12% : 39.29 [08:55:11]line Наличными: 370.00 [08:55:11]line Безнал.: 0.00 [08:55:11]line Место: АЗС № 176 "Партнер Нефть" [08:55:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:55:11]line СНО: Общий режим [08:55:11]line Чек 18 22.09.2024 08:55 [08:55:11]line Смена: 180 ФФД: 1.0 [08:55:11]line ЗНМ: 0300000010 [08:55:11]line РНМ: 0000000000152968 [08:55:11]line Версия ККМ: v1.0 [08:55:11]line ФМ: 0000000000959456 [08:55:11]line ФД: 18622 [08:55:11]line ФПД: 42635536460039 [08:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T085516&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18622&fm=42635536460039&tin=02508201610067®Number=0000000000152968&sum=37000 [08:55:11]line 0 [08:55:11]OFD Sender: Processing packet 18622 [packets to send 7, broken 6] [08:55:11]ProducePacketName [08:55:11]name=ofd_packets/00018622 [08:55:11]OFD Sender: To server: pG, [08:55:11]CommunicateWithHost lk.salyk.kg:30040 [08:55:11]ConnectInit lk.salyk.kg [08:55:11]written 0, free lines is 4095 [08:55:12]Connected sock=10 [08:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 F0 30 22 01 54 12 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 D0 07 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 88 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 0F 00 00 00 00 07 04 06 00 88 90 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 74 DB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BE 48 00 00 35 04 06 00 26 C6 DC 01 69 07 15 91 70 0F 56 E0 AE FD [08:55:12]Write to MH i2c: 01 00 00 01 25 26 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 01 25 00 00 00 00 00 1E 0D 58 [08:55:12]RasterBufferAndPrint [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]written 0, free lines is 3364 [08:55:12]MH_Cut [08:55:12]Write to MH i2c: D1 01 00 08 25 01 FF [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 01 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 01 00 08 25 00 FE [08:55:12]Write to MH i2c: 01 00 00 09 25 2E [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C9 1C 47 00 6C 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BE 48 00 00 F4 03 04 00 DC 84 EF 66 B6 04 01 00 00 61 07 5E 4B 8E D1 36 F5 [08:55:12]CommunicateWithHost err = 0 [08:55:12]CheckOFDResponse [08:55:12]1017 (14) - 77093643461234 [08:55:12]1041 (16) - 0000000000959456 [08:55:12]1040 (4) - 18622 [08:55:12]1012 (4) - 22.09.2024 02:45 [08:55:12]1206 (1) - 0 [08:55:12]OFD Sender: Remove packet 18622 [08:55:12]ProducePacketName [08:55:12]name=ofd_packets/00018622 [08:55:12]NVStorageDeleteData [08:55:12]OFD Sender: No OFD packet to send [08:55:13]*** Cut start [08:55:13]*** Partial cut [08:55:13]*** CUTSNS_PIN = 1 [08:55:13]*** CUTSNS_PIN = 0 [08:55:13]*** Brake cut motor [08:55:13]Read from MH i2c: 01 [08:55:13]MH_I2C_Read... [08:55:13]*** Stop cut motor [08:55:13]*** Cut end [08:55:13]Read from MH i2c: 01 07 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: 01 07 00 09 25 00 00 00 00 00 FF 0F 43 [08:55:13]process_action close_receipt done [08:55:13]requested_data is exist [08:55:13]produce_requested_data [08:55:13]requested_item fm.sn is exist - process it [08:55:13]wFMCommunicate request_size=4 [08:55:13]MH_SAM_APDU [08:55:13]CAPDU: 80 11 00 00 [08:55:13]Write to MH i2c: E2 08 00 0A 25 80 11 00 00 00 00 00 00 A9 [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:13]Read from MH i2c: E2 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 17 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 17 00 0A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 02 [08:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:55:13]wFMCommunicate OK [08:55:13]requested_item fd.num is exist - process it [08:55:13]SAM_PROTO_GetFieldsCounters [08:55:13]wFMCommunicate request_size=4 [08:55:13]MH_SAM_APDU [08:55:13]CAPDU: 80 13 00 00 [08:55:13]Write to MH i2c: E2 08 00 0B 25 80 13 00 00 00 00 00 00 AC [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:13]Read from MH i2c: E2 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 62 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 62 00 0B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BE 48 00 00 0E 04 04 00 B4 00 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 C9 [08:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BE 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:13]wFMCommunicate OK [08:55:13]SAM_PROTO_GetFieldsCounters done [08:55:13]requested_item shift.num is exist - process it [08:55:13]requested_item shift.opened is exist - process it [08:55:13]req_shift_opened [08:55:13]FM_GetShiftState [08:55:13]SAM_PROTO_GetShiftState [08:55:13]wFMCommunicate request_size=4 [08:55:13]MH_SAM_APDU [08:55:13]CAPDU: 80 13 01 00 [08:55:13]Write to MH i2c: E2 08 00 0C 25 80 13 01 00 00 00 00 00 AE [08:55:13]Write i2c OK [08:55:13]MH_I2C_Read... [08:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:13]Read from MH i2c: E2 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 0E 00 [08:55:13]MH_I2C_Read... [08:55:13]Read from MH i2c: E2 0E 00 0C 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 6E [08:55:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:55:13]wFMCommunicate OK [08:55:13]SAM_PROTO_GetShiftState done [08:55:13]FM_GetShiftState done [08:55:13]req_shift_opened done [08:55:13]requested_item shift.open_date is exist - process it [08:55:13]req_shift_open_date [08:55:13]req_shift_open_date done [08:55:13]produce_requested_data done [08:55:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18622,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [08:55:13]process_action_free close_receipt [08:55:13]json_value_free [08:55:13]json_value_free done [08:55:13]process_json_proto returns [08:55:13]Send response to host [08:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18622,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [08:55:13]free response buf [08:55:13]execute_script done [08:55:13]execute_script returns [08:55:13]free content buf [08:55:13]Sock 7.Close socket [08:55:13]Sock 7.Thread stoped [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:07]accept exits with 9 [08:59:07]New connection [08:59:07]New thread 3066666340 created [08:59:07]Thread 3066522980 joined [08:59:07]Waiting for new connection... [08:59:07] Sock 9.Parse request [08:59:07]Sock 9.Check first char [08:59:07]Sock 9.First char is OK [08:59:07]request: POST /json_proto HTTP/1.0 [08:59:07]Method: POST [08:59:07]URL: /json_proto [08:59:07]Method is POST - this is cgi request [08:59:07]url: /json_proto [08:59:07]query_string will be loaded in cgi processing [08:59:07]execute_cgi json_proto POST (null) [08:59:07]execute_cgi path=json_proto method=POST [08:59:07]POST find Content-Length [08:59:07]Host: 172.17.62.196:8080 [08:59:07]Content-Length: 625 [08:59:07]Content-Type: application/json [08:59:07] [08:59:07]POST finish read [08:59:07]Found Content-Length = 625 [08:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16547", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]execute_script... [08:59: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)16547", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:07]POST & json_proto [08:59:07]process_json_proto [08:59:07]json parsed OK: [08:59:07]protocol is kg_v1.0 [08:59:07]action value=close_receipt [08:59:07]process_action close_receipt [08:59:07]cmd_close_receipt [08:59:07]MH_GetDate [08:59:07]Write to MH i2c: F0 00 00 0D 25 21 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: F0 09 00 0D 25 00 62 DC EF 66 CE CC 0E 66 CB [08:59:07]GetLastDocTimeStamp 1726995316 [08:59:07]current date 1726995554 [08:59:07]FM_GetShiftState [08:59:07]SAM_PROTO_GetShiftState [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 01 00 [08:59:07]Write to MH i2c: E2 08 00 0E 25 80 13 01 00 00 00 00 00 B0 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:08]Read from MH i2c: E2 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0E 00 [08:59:08]MH_I2C_Read... [08:59:08]Read from MH i2c: E2 0E 00 0E 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 70 [08:59:08]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:59:08]wFMCommunicate OK [08:59:08]SAM_PROTO_GetShiftState done [08:59:08]FM_GetShiftState done [08:59:08]opened in 1726963967 [08:59:08]opened+sec_in_day 1727050367 [08:59:08]quantity*price = 11500 [08:59:08]sum+1 = 11501 [08:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 19 22.09.2024 08:59 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18623 ФПД: 105775519234059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T085914&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18623&fm=105775519234059&tin=02508201610067®Number=0000000000152968&sum=11500 0 [08:59:09]StoreToDocumentArchive [08:59:09]shift 180 fd 18623 [08:59:09]save to /storage/0180/doc_00018623 [08:59:09]save last doc name /storage/0180/doc_00018623 to /storage/kkm_last_doc_name [08:59:09]save OK [08:59:09]Clear old archive folders... [08:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:59:09]tlvbuf is 019DE3A0 [08:59:09]SAM_PROTO_ClearQueue [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 09 00 00 [08:59:09]Write to MH i2c: E2 08 00 1B 25 80 09 00 00 00 00 00 00 B2 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [08:59:09]RAPDU: 90 00 [08:59:09]wFMCommunicate OK [08:59:09]SAM_PROTO_ClearQueue done [08:59:09]KKMCreateOFDPacket [08:59:09]OFDProtocolAddRootSTLVToBuf [08:59:09]FM_MakeSignedData [08:59:09]FM_MakeSignedData [08:59:09]SAM_PROTO_SignData [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 0D 01 02 [08:59:09]Write to MH i2c: E2 08 00 1C 25 80 0D 01 02 00 00 00 00 BA [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 1C 25 00 90 00 B5 [08:59:09]RAPDU: 90 00 [08:59:09]wFMCommunicate OK [08:59:09]wFMCommunicate request_size=255 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 62 DC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [08:59:09]Write to MH i2c: E2 02 01 1D 25 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 62 DC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 B6 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 1D 25 00 90 00 B6 [08:59:09]RAPDU: 90 00 [08:59:09]wFMCommunicate OK [08:59:09]wFMCommunicate request_size=33 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BF 48 00 00 35 04 06 00 60 33 C8 3F F8 0B [08:59:09]Write to MH i2c: E2 24 00 1E 25 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BF 48 00 00 35 04 06 00 60 33 C8 3F F8 0B 00 00 F6 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 03 00 1E 25 00 90 00 B7 [08:59:09]RAPDU: 90 00 [08:59:09]wFMCommunicate OK [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 0D 03 02 [08:59:09]Write to MH i2c: E2 08 00 1F 25 80 0D 03 02 00 00 00 00 BF [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 0B 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 0B 00 1F 25 00 A0 88 BA 6D 99 A6 40 82 90 00 10 [08:59:09]RAPDU: A0 88 BA 6D 99 A6 40 82 90 00 [08:59:09]wFMCommunicate OK [08:59:09]SAM_PROTO_SignData done [08:59:09]FM_MakeSignedData done [08:59:09]CreateOFDProtocolMessage [08:59:09]wFMCommunicate request_size=4 [08:59:09]MH_SAM_APDU [08:59:09]CAPDU: 80 11 00 00 [08:59:09]Write to MH i2c: E2 08 00 20 25 80 11 00 00 00 00 00 00 BF [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:09]Read from MH i2c: E2 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 17 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: E2 17 00 20 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 18 [08:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:59:09]wFMCommunicate OK [08:59:09]CreateOFDProtocolMessage done [08:59:09]OFDSenderStorePacket 18623 [08:59:09]StoreOFDPacket docnum=18623 [08:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 C8 A2 1E 01 F7 01 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 62 DC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BF 48 00 00 35 04 06 00 60 33 C8 3F F8 0B A0 88 BA 6D 99 A6 40 82 [08:59:09]CheckFolder [08:59:09]dirname=/storage/ofd_packets [08:59:09]CheckFolder done [08:59:09]ProducePacketName [08:59:09]name=ofd_packets/00018623 [08:59:09]NVStorageSaveData ofd_packets/00018623 [08:59:09]File name is /storage/ofd_packets/00018623 [08:59:09]Write 324 bytes [08:59:09]NVStorageSaveData done [08:59:09]OFDSenderStorePacket done [08:59:09]KKMCreateOFDPacket done [08:59:09]NVStorageSaveData kkm_last_timestamp [08:59:09]File name is /storage/kkm_last_timestamp [08:59:09]Write 4 bytes [08:59:09]NVStorageSaveData done [08:59:09]ExternCall_PrintAddStr [08:59:09]wPrintStart [08:59:09]Write to MH i2c: 01 00 00 21 25 46 [08:59:09]Write i2c OK [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 [08:59:09]MH_I2C_Read... [08:59:09]Read from MH i2c: 01 07 00 21 25 00 00 00 00 00 FF 0F 5B [08:59:09]RasterBufferAndPrint [08:59:09]line Счет N : (3)16547 [08:59:09]line ИНН: 02508201610067 [08:59:09]line Контрольно-Кассовый Чек [08:59:09]line ПРОДАЖА [08:59:09]line Товар: 2000036240010 [08:59:09]line Кофе Латте (GABB TRADE) [08:59:09]line 1.000 * 115.00 [08:59:09]line = 115.00 [08:59:09]line НДС 12% НСП 1% [08:59:09]line > о реализуемом товаре [08:59:09]line ИТОГО: 115.00 [08:59:09]line НСП 1% : 1.02 [08:59:09]line НДС 12% : 12.21 [08:59:09]line Наличными: 115.00 [08:59:09]line Безнал.: 0.00 [08:59:09]line Место: АЗС № 176 "Партнер Нефть" [08:59:09]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:59:09]line СНО: Общий режим [08:59:09]line Чек 19 22.09.2024 08:59 [08:59:09]line Смена: 180 ФФД: 1.0 [08:59:09]line ЗНМ: 0300000010 [08:59:09]line РНМ: 0000000000152968 [08:59:09]line Версия ККМ: v1.0 [08:59:09]line ФМ: 0000000000959456 [08:59:09]line ФД: 18623 [08:59:09]line ФПД: 105775519234059 [08:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T085914&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18623&fm=105775519234059&tin=02508201610067®Number=0000000000152968&sum=11500 [08:59:10]line 0 [08:59:10]OFD Sender: Processing packet 18623 [packets to send 7, broken 6] [08:59:10]ProducePacketName [08:59:10]name=ofd_packets/00018623 [08:59:10]OFD Sender: To server: pG, [08:59:10]CommunicateWithHost lk.salyk.kg:30040 [08:59:10]ConnectInit lk.salyk.kg [08:59:10]written 0, free lines is 4095 [08:59:10]Connected sock=10 [08:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 C8 A2 1E 01 F7 01 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 62 DC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 BF 48 00 00 35 04 06 00 60 33 C8 3F F8 0B A0 88 BA 6D 99 A6 40 82 [08:59:10]Write to MH i2c: 01 00 00 49 25 6E [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 1E 0D A0 [08:59:10]RasterBufferAndPrint [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]line [08:59:10]written 0, free lines is 3364 [08:59:10]MH_Cut [08:59:10]Write to MH i2c: D1 01 00 50 25 01 47 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 01 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: D1 01 00 50 25 00 46 [08:59:10]Write to MH i2c: 01 00 00 51 25 76 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 60 1A 47 00 79 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 39 35 39 34 35 36 10 04 04 00 BF 48 00 00 F4 03 04 00 CA 85 EF 66 B6 04 01 00 00 67 5B 27 A4 B2 10 CD C5 [08:59:10]CommunicateWithHost err = 0 [08:59:10]CheckOFDResponse [08:59:10]1017 (14) - 77093643461234 [08:59:10]1041 (16) - 0000000000959456 [08:59:10]1040 (4) - 18623 [08:59:10]1012 (4) - 22.09.2024 02:49 [08:59:10]1206 (1) - 0 [08:59:10]OFD Sender: Remove packet 18623 [08:59:10]ProducePacketName [08:59:10]name=ofd_packets/00018623 [08:59:10]NVStorageDeleteData [08:59:11]*** Cut start [08:59:11]*** Partial cut [08:59:11]*** CUTSNS_PIN = 1 [08:59:11]OFD Sender: No OFD packet to send [08:59:11]*** CUTSNS_PIN = 0 [08:59:11]*** Brake cut motor [08:59:11]Read from MH i2c: 01 [08:59:11]MH_I2C_Read... [08:59:11]*** Stop cut motor [08:59:11]*** Cut end [08:59:11]Read from MH i2c: 01 07 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: 01 07 00 51 25 00 00 00 00 00 FF 0F 8B [08:59:11]process_action close_receipt done [08:59:11]requested_data is exist [08:59:11]produce_requested_data [08:59:11]requested_item fm.sn is exist - process it [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 11 00 00 [08:59:11]Write to MH i2c: E2 08 00 52 25 80 11 00 00 00 00 00 00 F1 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 17 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 17 00 52 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4A [08:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:59:11]wFMCommunicate OK [08:59:11]requested_item fd.num is exist - process it [08:59:11]SAM_PROTO_GetFieldsCounters [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 13 00 00 [08:59:11]Write to MH i2c: E2 08 00 53 25 80 13 00 00 00 00 00 00 F4 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 62 00 53 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BF 48 00 00 0E 04 04 00 B4 00 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 15 [08:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 BF 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetFieldsCounters done [08:59:11]requested_item shift.num is exist - process it [08:59:11]requested_item shift.opened is exist - process it [08:59:11]req_shift_opened [08:59:11]FM_GetShiftState [08:59:11]SAM_PROTO_GetShiftState [08:59:11]wFMCommunicate request_size=4 [08:59:11]MH_SAM_APDU [08:59:11]CAPDU: 80 13 01 00 [08:59:11]Write to MH i2c: E2 08 00 54 25 80 13 01 00 00 00 00 00 F6 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:11]Read from MH i2c: E2 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: E2 0E 00 54 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B6 [08:59:11]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [08:59:11]wFMCommunicate OK [08:59:11]SAM_PROTO_GetShiftState done [08:59:11]FM_GetShiftState done [08:59:11]req_shift_opened done [08:59:11]requested_item shift.open_date is exist - process it [08:59:11]req_shift_open_date [08:59:11]req_shift_open_date done [08:59:11]produce_requested_data done [08:59:11]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18623,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [08:59:11]process_action_free close_receipt [08:59:11]json_value_free [08:59:11]json_value_free done [08:59:11]process_json_proto returns [08:59:11]Send response to host [08:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18623,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [08:59:11]free response buf [08:59:11]execute_script done [08:59:11]execute_script returns [08:59:11]free content buf [08:59:11]Sock 9.Close socket [08:59:11]Sock 9.Thread stoped [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]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]accept exits with 7 [09:06:31]New connection [09:06:31]New thread 3066522980 created [09:06:31]Thread 3066666340 joined [09:06:31]Waiting for new connection... [09:06:31] Sock 7.Parse request [09:06:31]Sock 7.Check first char [09:06:31]Sock 7.First char is OK [09:06:31]request: POST /json_proto HTTP/1.0 [09:06:31]Method: POST [09:06:31]URL: /json_proto [09:06:31]Method is POST - this is cgi request [09:06:31]url: /json_proto [09:06:31]query_string will be loaded in cgi processing [09:06:31]execute_cgi json_proto POST (null) [09:06:31]execute_cgi path=json_proto method=POST [09:06:31]POST find Content-Length [09:06:31]Host: 172.17.62.196:8080 [09:06:31]Content-Length: 979 [09:06:31]Content-Type: application/json [09:06:31] [09:06:31]POST finish read [09:06:31]Found Content-Length = 979 [09:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16548", "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" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 188.00, "quantity" : 1.000, "sum" : 188.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 338.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:31]execute_script... [09:06: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)16548", "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" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 188.00, "quantity" : 1.000, "sum" : 188.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 338.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:31]POST & json_proto [09:06:31]process_json_proto [09:06:31]json parsed OK: [09:06:31]protocol is kg_v1.0 [09:06:31]action value=close_receipt [09:06:31]process_action close_receipt [09:06:31]cmd_close_receipt [09:06:31]MH_GetDate [09:06:31]Write to MH i2c: F0 00 00 55 25 69 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 09 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: F0 09 00 55 25 00 1D DE EF 66 CE CC 0E 66 D0 [09:06:31]GetLastDocTimeStamp 1726995554 [09:06:31]current date 1726995997 [09:06:31]FM_GetShiftState [09:06:31]SAM_PROTO_GetShiftState [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 13 01 00 [09:06:31]Write to MH i2c: E2 08 00 56 25 80 13 01 00 00 00 00 00 F8 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0E 00 56 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B8 [09:06:31]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_GetShiftState done [09:06:31]FM_GetShiftState done [09:06:31]opened in 1726963967 [09:06:31]opened+sec_in_day 1727050367 [09:06:31]quantity*price = 15000 [09:06:31]sum+1 = 15001 [09:06:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4690329004542 Снек Орехи BEERKa Фисташка 80г 1.000 * 188.00 = 188.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 338.00 НСП 1% : 2.99 НДС 12% : 35.89 Наличными: 338.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 20 22.09.2024 09:06 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18624 ФПД: 34193929761069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090637&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18624&fm=34193929761069&tin=02508201610067®Number=0000000000152968&sum=33800 0 [09:06:32]StoreToDocumentArchive [09:06:32]shift 180 fd 18624 [09:06:32]save to /storage/0180/doc_00018624 [09:06:32]save last doc name /storage/0180/doc_00018624 to /storage/kkm_last_doc_name [09:06:32]save OK [09:06:32]Clear old archive folders... [09:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=415 [09:06:32]tlvbuf is B6E629D0 [09:06:32]SAM_PROTO_ClearQueue [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 09 00 00 [09:06:32]Write to MH i2c: E2 08 00 63 25 80 09 00 00 00 00 00 00 FA [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]SAM_PROTO_ClearQueue done [09:06:32]KKMCreateOFDPacket [09:06:32]OFDProtocolAddRootSTLVToBuf [09:06:32]FM_MakeSignedData [09:06:32]FM_MakeSignedData [09:06:32]SAM_PROTO_SignData [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 01 02 [09:06:32]Write to MH i2c: E2 08 00 64 25 80 0D 01 02 00 00 00 00 02 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]wFMCommunicate request_size=255 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 02 02 FA 03 00 9F 01 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 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [09:06:32]Write to MH i2c: E2 02 01 65 25 80 0D 02 02 FA 00 03 00 9F 01 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 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 D2 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]wFMCommunicate request_size=174 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 08 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0E 00 00 00 00 07 04 06 00 08 84 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 1D DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C0 48 00 00 35 04 06 00 1F 19 65 09 71 2D [09:06:32]Write to MH i2c: E2 B1 00 66 25 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 08 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0E 00 00 00 00 07 04 06 00 08 84 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 1D DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C0 48 00 00 35 04 06 00 1F 19 65 09 71 2D 00 00 66 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:32]Read from MH i2c: E2 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 [09:06:32]MH_I2C_Read... [09:06:32]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [09:06:32]RAPDU: 90 00 [09:06:32]wFMCommunicate OK [09:06:32]wFMCommunicate request_size=4 [09:06:32]MH_SAM_APDU [09:06:32]CAPDU: 80 0D 03 02 [09:06:32]Write to MH i2c: E2 08 00 67 25 80 0D 03 02 00 00 00 00 07 [09:06:32]Write i2c OK [09:06:32]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0B 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0B 00 67 25 00 66 C7 9B FF 80 21 CD 5E 90 00 9B [09:06:33]RAPDU: 66 C7 9B FF 80 21 CD 5E 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_SignData done [09:06:33]FM_MakeSignedData done [09:06:33]CreateOFDProtocolMessage [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 11 00 00 [09:06:33]Write to MH i2c: E2 08 00 68 25 80 11 00 00 00 00 00 00 07 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 68 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 60 [09:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:06:33]wFMCommunicate OK [09:06:33]CreateOFDProtocolMessage done [09:06:33]OFDSenderStorePacket 18624 [09:06:33]StoreOFDPacket docnum=18624 [09:06:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B3 01 00 00 C8 F1 AB 01 80 DB 5A 03 01 00 03 00 9F 01 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 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0E 00 00 00 00 07 04 06 00 08 84 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 1D DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C0 48 00 00 35 04 06 00 1F 19 65 09 71 2D 66 C7 9B FF 80 21 CD 5E [09:06:33]CheckFolder [09:06:33]dirname=/storage/ofd_packets [09:06:33]CheckFolder done [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00018624 [09:06:33]NVStorageSaveData ofd_packets/00018624 [09:06:33]File name is /storage/ofd_packets/00018624 [09:06:33]Write 465 bytes [09:06:33]NVStorageSaveData done [09:06:33]OFDSenderStorePacket done [09:06:33]KKMCreateOFDPacket done [09:06:33]NVStorageSaveData kkm_last_timestamp [09:06:33]File name is /storage/kkm_last_timestamp [09:06:33]Write 4 bytes [09:06:33]NVStorageSaveData done [09:06:33]ExternCall_PrintAddStr [09:06:33]wPrintStart [09:06:33]Write to MH i2c: 01 00 00 69 25 8E [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [09:06:33]RasterBufferAndPrint [09:06:33]line Счет N : (3)16548 [09:06:33]line ИНН: 02508201610067 [09:06:33]line Контрольно-Кассовый Чек [09:06:33]line ПРОДАЖА [09:06:33]line Товар: 5449000027450 [09:06:33]line Напиток FuzeTea чай манго,ром 0,5л [09:06:33]line 2.000 * 75.00 [09:06:33]line = 150.00 [09:06:33]line НДС 12% НСП 1% [09:06:33]line > о реализуемом товаре [09:06:33]line Товар: 4690329004542 [09:06:33]line Снек Орехи BEERKa Фисташка 80г [09:06:33]line 1.000 * 188.00 [09:06:33]line = 188.00 [09:06:33]line НДС 12% НСП 1% [09:06:33]line > о реализуемом товаре [09:06:33]line ИТОГО: 338.00 [09:06:33]line НСП 1% : 2.99 [09:06:33]line НДС 12% : 35.89 [09:06:33]line Наличными: 338.00 [09:06:33]line Безнал.: 0.00 [09:06:33]line Место: АЗС № 176 "Партнер Нефть" [09:06:33]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:06:33]line СНО: Общий режим [09:06:33]line Чек 20 22.09.2024 09:06 [09:06:33]line Смена: 180 ФФД: 1.0 [09:06:33]line ЗНМ: 0300000010 [09:06:33]line РНМ: 0000000000152968 [09:06:33]line Версия ККМ: v1.0 [09:06:33]line ФМ: 0000000000959456 [09:06:33]line ФД: 18624 [09:06:33]line ФПД: 34193929761069 [09:06:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090637&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18624&fm=34193929761069&tin=02508201610067®Number=0000000000152968&sum=33800 [09:06:33]OFD Sender: Processing packet 18624 [packets to send 7, broken 6] [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00018624 [09:06:33]OFD Sender: To server: pG, [09:06:33]CommunicateWithHost lk.salyk.kg:30040 [09:06:33]ConnectInit lk.salyk.kg [09:06:33]line 0 [09:06:33]written 0, free lines is 4095 [09:06:33]Connected sock=10 [09:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B3 01 00 00 C8 F1 AB 01 80 DB 5A 03 01 00 03 00 9F 01 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 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0E 00 00 00 00 07 04 06 00 08 84 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 1D DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C0 48 00 00 35 04 06 00 1F 19 65 09 71 2D 66 C7 9B FF 80 21 CD 5E [09:06:33]Write to MH i2c: 01 00 00 99 25 BE [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 99 25 00 00 00 00 00 A7 0C 78 [09:06:33]RasterBufferAndPrint [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 93 85 47 00 76 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C0 48 00 00 F4 03 04 00 85 87 EF 66 B6 04 01 00 00 BE 60 54 5C 7E D4 3E 59 [09:06:33]CommunicateWithHost err = 0 [09:06:33]CheckOFDResponse [09:06:33]1017 (14) - 77093643461234 [09:06:33]1041 (16) - 0000000000959456 [09:06:33]1040 (4) - 18624 [09:06:33]1012 (4) - 22.09.2024 02:57 [09:06:33]1206 (1) - 0 [09:06:33]OFD Sender: Remove packet 18624 [09:06:33]ProducePacketName [09:06:33]name=ofd_packets/00018624 [09:06:33]NVStorageDeleteData [09:06:33]written 0, free lines is 3257 [09:06:33]MH_Cut [09:06:33]Write to MH i2c: D1 01 00 A0 25 01 97 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: D1 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: D1 01 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: D1 01 00 A0 25 00 96 [09:06:33]Write to MH i2c: 01 00 00 A1 25 C6 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:34]OFD Sender: No OFD packet to send [09:06:34]*** Cut start [09:06:34]*** Partial cut [09:06:34]*** CUTSNS_PIN = 1 [09:06:34]*** CUTSNS_PIN = 0 [09:06:34]*** Brake cut motor [09:06:35]Read from MH i2c: 01 [09:06:35]MH_I2C_Read... [09:06:35]*** Stop cut motor [09:06:35]*** Cut end [09:06:35]Read from MH i2c: 01 07 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 A1 25 00 00 00 00 00 FF 0F DB [09:06:35]process_action close_receipt done [09:06:35]requested_data is exist [09:06:35]produce_requested_data [09:06:35]requested_item fm.sn is exist - process it [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 11 00 00 [09:06:35]Write to MH i2c: E2 08 00 A2 25 80 11 00 00 00 00 00 00 41 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 A2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9A [09:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:06:35]wFMCommunicate OK [09:06:35]requested_item fd.num is exist - process it [09:06:35]SAM_PROTO_GetFieldsCounters [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 13 00 00 [09:06:35]Write to MH i2c: E2 08 00 A3 25 80 13 00 00 00 00 00 00 44 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 62 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 62 00 A3 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C0 48 00 00 0E 04 04 00 B4 00 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 69 [09:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C0 48 00 00 0E 04 04 00 B4 00 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 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_GetFieldsCounters done [09:06:35]requested_item shift.num is exist - process it [09:06:35]requested_item shift.opened is exist - process it [09:06:35]req_shift_opened [09:06:35]FM_GetShiftState [09:06:35]SAM_PROTO_GetShiftState [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 13 01 00 [09:06:35]Write to MH i2c: E2 08 00 A4 25 80 13 01 00 00 00 00 00 46 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0E 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0E 00 A4 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 06 [09:06:35]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_GetShiftState done [09:06:35]FM_GetShiftState done [09:06:35]req_shift_opened done [09:06:35]requested_item shift.open_date is exist - process it [09:06:35]req_shift_open_date [09:06:35]req_shift_open_date done [09:06:35]produce_requested_data done [09:06:35]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18624,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [09:06:35]process_action_free close_receipt [09:06:35]json_value_free [09:06:35]json_value_free done [09:06:35]process_json_proto returns [09:06:35]Send response to host [09:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18624,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [09:06:35]free response buf [09:06:35]execute_script done [09:06:35]execute_script returns [09:06:35]free content buf [09:06:35]Sock 7.Close socket [09:06:35]Sock 7.Thread stoped [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:08]accept exits with 9 [09:07:08]New connection [09:07:08]New thread 3066666340 created [09:07:08]Thread 3066522980 joined [09:07:08]Waiting for new connection... [09:07:08] Sock 9.Parse request [09:07:08]Sock 9.Check first char [09:07:08]Sock 9.First char is OK [09:07:08]request: POST /json_proto HTTP/1.0 [09:07:08]Method: POST [09:07:08]URL: /json_proto [09:07:08]Method is POST - this is cgi request [09:07:08]url: /json_proto [09:07:08]query_string will be loaded in cgi processing [09:07:08]execute_cgi json_proto POST (null) [09:07:08]execute_cgi path=json_proto method=POST [09:07:08]POST find Content-Length [09:07:08]Host: 172.17.62.196:8080 [09:07:08]Content-Length: 625 [09:07:08]Content-Type: application/json [09:07:08] [09:07:08]POST finish read [09:07:08]Found Content-Length = 625 [09:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16549", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:08]execute_script... [09:07: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)16549", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:08]POST & json_proto [09:07:08]process_json_proto [09:07:08]json parsed OK: [09:07:08]protocol is kg_v1.0 [09:07:08]action value=close_receipt [09:07:08]process_action close_receipt [09:07:08]cmd_close_receipt [09:07:08]MH_GetDate [09:07:08]Write to MH i2c: F0 00 00 A5 25 B9 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 09 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: F0 09 00 A5 25 00 43 DE EF 66 CE CC 0E 66 46 [09:07:08]GetLastDocTimeStamp 1726995997 [09:07:08]current date 1726996035 [09:07:08]FM_GetShiftState [09:07:08]SAM_PROTO_GetShiftState [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 13 01 00 [09:07:08]Write to MH i2c: E2 08 00 A6 25 80 13 01 00 00 00 00 00 48 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 A6 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 08 [09:07:08]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_GetShiftState done [09:07:08]FM_GetShiftState done [09:07:08]opened in 1726963967 [09:07:08]opened+sec_in_day 1727050367 [09:07:08]quantity*price = 11500 [09:07:08]sum+1 = 11501 [09:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 21 22.09.2024 09:07 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18625 ФПД: 47447896752050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090715&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18625&fm=47447896752050&tin=02508201610067®Number=0000000000152968&sum=11500 0 [09:07:10]StoreToDocumentArchive [09:07:10]shift 180 fd 18625 [09:07:10]save to /storage/0180/doc_00018625 [09:07:10]save last doc name /storage/0180/doc_00018625 to /storage/kkm_last_doc_name [09:07:10]save OK [09:07:10]Clear old archive folders... [09:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:07:10]tlvbuf is 019AA8F0 [09:07:10]SAM_PROTO_ClearQueue [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 09 00 00 [09:07:10]Write to MH i2c: E2 08 00 B3 25 80 09 00 00 00 00 00 00 4A [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 B3 25 00 90 00 4C [09:07:10]RAPDU: 90 00 [09:07:10]wFMCommunicate OK [09:07:10]SAM_PROTO_ClearQueue done [09:07:10]KKMCreateOFDPacket [09:07:10]OFDProtocolAddRootSTLVToBuf [09:07:10]FM_MakeSignedData [09:07:10]FM_MakeSignedData [09:07:10]SAM_PROTO_SignData [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 0D 01 02 [09:07:10]Write to MH i2c: E2 08 00 B4 25 80 0D 01 02 00 00 00 00 52 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 B4 25 00 90 00 4D [09:07:10]RAPDU: 90 00 [09:07:10]wFMCommunicate OK [09:07:10]wFMCommunicate request_size=255 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 43 DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [09:07:10]Write to MH i2c: E2 02 01 B5 25 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 43 DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 33 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [09:07:10]RAPDU: 90 00 [09:07:10]wFMCommunicate OK [09:07:10]wFMCommunicate request_size=33 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C1 48 00 00 35 04 06 00 2B 27 53 07 FF B2 [09:07:10]Write to MH i2c: E2 24 00 B6 25 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C1 48 00 00 35 04 06 00 2B 27 53 07 FF B2 00 00 50 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [09:07:10]RAPDU: 90 00 [09:07:10]wFMCommunicate OK [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 0D 03 02 [09:07:10]Write to MH i2c: E2 08 00 B7 25 80 0D 03 02 00 00 00 00 57 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0B 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0B 00 B7 25 00 95 F2 09 95 C3 F1 FC 55 90 00 82 [09:07:10]RAPDU: 95 F2 09 95 C3 F1 FC 55 90 00 [09:07:10]wFMCommunicate OK [09:07:10]SAM_PROTO_SignData done [09:07:10]FM_MakeSignedData done [09:07:10]CreateOFDProtocolMessage [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 11 00 00 [09:07:10]Write to MH i2c: E2 08 00 B8 25 80 11 00 00 00 00 00 00 57 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 17 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 17 00 B8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B0 [09:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:07:10]wFMCommunicate OK [09:07:10]CreateOFDProtocolMessage done [09:07:10]OFDSenderStorePacket 18625 [09:07:10]StoreOFDPacket docnum=18625 [09:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 73 2A 1E 01 9A D8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 43 DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C1 48 00 00 35 04 06 00 2B 27 53 07 FF B2 95 F2 09 95 C3 F1 FC 55 [09:07:10]CheckFolder [09:07:10]dirname=/storage/ofd_packets [09:07:10]CheckFolder done [09:07:10]ProducePacketName [09:07:10]name=ofd_packets/00018625 [09:07:10]NVStorageSaveData ofd_packets/00018625 [09:07:10]File name is /storage/ofd_packets/00018625 [09:07:10]Write 324 bytes [09:07:10]NVStorageSaveData done [09:07:10]OFDSenderStorePacket done [09:07:10]KKMCreateOFDPacket done [09:07:10]NVStorageSaveData kkm_last_timestamp [09:07:10]File name is /storage/kkm_last_timestamp [09:07:10]Write 4 bytes [09:07:10]NVStorageSaveData done [09:07:10]ExternCall_PrintAddStr [09:07:10]wPrintStart [09:07:10]Write to MH i2c: 01 00 00 B9 25 DE [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 07 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 07 00 B9 25 00 00 00 00 00 FF 0F F3 [09:07:10]RasterBufferAndPrint [09:07:10]line Счет N : (3)16549 [09:07:10]line ИНН: 02508201610067 [09:07:10]line Контрольно-Кассовый Чек [09:07:10]line ПРОДАЖА [09:07:10]line Товар: 2000036240010 [09:07:10]line Кофе Латте (GABB TRADE) [09:07:10]line 1.000 * 115.00 [09:07:10]line = 115.00 [09:07:10]line НДС 12% НСП 1% [09:07:10]line > о реализуемом товаре [09:07:10]line ИТОГО: 115.00 [09:07:10]line НСП 1% : 1.02 [09:07:10]line НДС 12% : 12.21 [09:07:10]line Наличными: 115.00 [09:07:10]line Безнал.: 0.00 [09:07:10]line Место: АЗС № 176 "Партнер Нефть" [09:07:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:07:10]line СНО: Общий режим [09:07:10]line Чек 21 22.09.2024 09:07 [09:07:10]line Смена: 180 ФФД: 1.0 [09:07:10]line ЗНМ: 0300000010 [09:07:10]line РНМ: 0000000000152968 [09:07:10]line Версия ККМ: v1.0 [09:07:10]line ФМ: 0000000000959456 [09:07:10]line ФД: 18625 [09:07:10]line ФПД: 47447896752050 [09:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T090715&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18625&fm=47447896752050&tin=02508201610067®Number=0000000000152968&sum=11500 [09:07:10]line 0 [09:07:10]OFD Sender: Processing packet 18625 [packets to send 7, broken 6] [09:07:10]ProducePacketName [09:07:10]name=ofd_packets/00018625 [09:07:10]OFD Sender: To server: pG, [09:07:10]CommunicateWithHost lk.salyk.kg:30040 [09:07:10]ConnectInit lk.salyk.kg [09:07:10]written 0, free lines is 4095 [09:07:11]Connected sock=10 [09:07:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 73 2A 1E 01 9A D8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 43 DE EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C1 48 00 00 35 04 06 00 2B 27 53 07 FF B2 95 F2 09 95 C3 F1 FC 55 [09:07:11]Write to MH i2c: 01 00 00 E1 25 06 [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 07 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: 01 07 00 E1 25 00 00 00 00 00 21 0D 3B [09:07:11]RasterBufferAndPrint [09:07:11]line [09:07:11]line [09:07:11]line [09:07:11]line [09:07:11]line [09:07:11]written 0, free lines is 3367 [09:07:11]MH_Cut [09:07:11]Write to MH i2c: D1 01 00 E8 25 01 DF [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: D1 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: D1 01 00 [09:07:11]MH_I2C_Read... [09:07:11]Read from MH i2c: D1 01 00 E8 25 00 DE [09:07:11]Write to MH i2c: 01 00 00 E9 25 0E [09:07:11]Write i2c OK [09:07:11]MH_I2C_Read... [09:07:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 64 F0 47 00 BB 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C1 48 00 00 F4 03 04 00 AB 87 EF 66 B6 04 01 00 00 13 55 29 BC 02 EF 9E A8 [09:07:11]CommunicateWithHost err = 0 [09:07:11]CheckOFDResponse [09:07:11]1017 (14) - 77093643461234 [09:07:11]1041 (16) - 0000000000959456 [09:07:11]1040 (4) - 18625 [09:07:11]1012 (4) - 22.09.2024 02:57 [09:07:11]1206 (1) - 0 [09:07:11]OFD Sender: Remove packet 18625 [09:07:11]ProducePacketName [09:07:11]name=ofd_packets/00018625 [09:07:11]NVStorageDeleteData [09:07:11]OFD Sender: No OFD packet to send [09:07:11]*** Cut start [09:07:11]*** Partial cut [09:07:11]*** CUTSNS_PIN = 1 [09:07:12]*** CUTSNS_PIN = 0 [09:07:12]*** Brake cut motor [09:07:12]Read from MH i2c: 01 [09:07:12]MH_I2C_Read... [09:07:12]*** Stop cut motor [09:07:12]*** Cut end [09:07:12]Read from MH i2c: 01 07 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 E9 25 00 00 00 00 00 FF 0F 23 [09:07:12]process_action close_receipt done [09:07:12]requested_data is exist [09:07:12]produce_requested_data [09:07:12]requested_item fm.sn is exist - process it [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 11 00 00 [09:07:12]Write to MH i2c: E2 08 00 EA 25 80 11 00 00 00 00 00 00 89 [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 EA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E2 [09:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:07:12]wFMCommunicate OK [09:07:12]requested_item fd.num is exist - process it [09:07:12]SAM_PROTO_GetFieldsCounters [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 00 00 [09:07:12]Write to MH i2c: E2 08 00 EB 25 80 13 00 00 00 00 00 00 8C [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 EB 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C1 48 00 00 0E 04 04 00 B4 00 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 B5 [09:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C1 48 00 00 0E 04 04 00 B4 00 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 [09:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetFieldsCounters done [09:07:12]requested_item shift.num is exist - process it [09:07:12]requested_item shift.opened is exist - process it [09:07:12]req_shift_opened [09:07:12]FM_GetShiftState [09:07:12]SAM_PROTO_GetShiftState [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 01 00 [09:07:12]Write to MH i2c: E2 08 00 EC 25 80 13 01 00 00 00 00 00 8E [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 EC 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4E [09:07:12]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetShiftState done [09:07:12]FM_GetShiftState done [09:07:12]req_shift_opened done [09:07:12]requested_item shift.open_date is exist - process it [09:07:12]req_shift_open_date [09:07:12]req_shift_open_date done [09:07:12]produce_requested_data done [09:07:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18625,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [09:07:12]process_action_free close_receipt [09:07:12]json_value_free [09:07:12]json_value_free done [09:07:12]process_json_proto returns [09:07:12]Send response to host [09:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18625,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [09:07:12]free response buf [09:07:12]execute_script done [09:07:12]execute_script returns [09:07:12]free content buf [09:07:12]Sock 9.Close socket [09:07:12]Sock 9.Thread stoped [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:08:01]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:46]accept exits with 7 [09:11:46]New connection [09:11:46]New thread 3066522980 created [09:11:46]Thread 3066666340 joined [09:11:46]Waiting for new connection... [09:11:46] Sock 7.Parse request [09:11:46]Sock 7.Check first char [09:11:46]Sock 7.First char is OK [09:11:46]request: POST /json_proto HTTP/1.0 [09:11:46]Method: POST [09:11:46]URL: /json_proto [09:11:46]Method is POST - this is cgi request [09:11:46]url: /json_proto [09:11:46]query_string will be loaded in cgi processing [09:11:46]execute_cgi json_proto POST (null) [09:11:46]execute_cgi path=json_proto method=POST [09:11:46]POST find Content-Length [09:11:46]Host: 172.17.62.196:8080 [09:11:46]Content-Length: 625 [09:11:46]Content-Type: application/json [09:11:46] [09:11:46]POST finish read [09:11:46]Found Content-Length = 625 [09:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16550", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:46]execute_script... [09:11: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)16550", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:46]POST & json_proto [09:11:46]process_json_proto [09:11:46]json parsed OK: [09:11:46]protocol is kg_v1.0 [09:11:46]action value=close_receipt [09:11:46]process_action close_receipt [09:11:46]cmd_close_receipt [09:11:46]MH_GetDate [09:11:46]Write to MH i2c: F0 00 00 ED 25 01 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: F0 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: F0 09 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: F0 09 00 ED 25 00 59 DF EF 66 CE CC 0E 66 A5 [09:11:46]GetLastDocTimeStamp 1726996035 [09:11:46]current date 1726996313 [09:11:46]FM_GetShiftState [09:11:46]SAM_PROTO_GetShiftState [09:11:46]wFMCommunicate request_size=4 [09:11:46]MH_SAM_APDU [09:11:46]CAPDU: 80 13 01 00 [09:11:46]Write to MH i2c: E2 08 00 EE 25 80 13 01 00 00 00 00 00 90 [09:11:46]Write i2c OK [09:11:46]MH_I2C_Read... [09:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:46]Read from MH i2c: E2 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 0E 00 [09:11:46]MH_I2C_Read... [09:11:46]Read from MH i2c: E2 0E 00 EE 25 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 50 [09:11:46]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:11:46]wFMCommunicate OK [09:11:46]SAM_PROTO_GetShiftState done [09:11:46]FM_GetShiftState done [09:11:46]opened in 1726963967 [09:11:46]opened+sec_in_day 1727050367 [09:11:46]quantity*price = 11500 [09:11:46]sum+1 = 11501 [09:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 22 22.09.2024 09:11 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18626 ФПД: 113662656476435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091153&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18626&fm=113662656476435&tin=02508201610067®Number=0000000000152968&sum=11500 0 [09:11:48]StoreToDocumentArchive [09:11:48]shift 180 fd 18626 [09:11:48]save to /storage/0180/doc_00018626 [09:11:48]save last doc name /storage/0180/doc_00018626 to /storage/kkm_last_doc_name [09:11:48]save OK [09:11:48]Clear old archive folders... [09:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:11:48]tlvbuf is 01A3E090 [09:11:48]SAM_PROTO_ClearQueue [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 09 00 00 [09:11:48]Write to MH i2c: E2 08 00 FB 25 80 09 00 00 00 00 00 00 92 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [09:11:48]RAPDU: 90 00 [09:11:48]wFMCommunicate OK [09:11:48]SAM_PROTO_ClearQueue done [09:11:48]KKMCreateOFDPacket [09:11:48]OFDProtocolAddRootSTLVToBuf [09:11:48]FM_MakeSignedData [09:11:48]FM_MakeSignedData [09:11:48]SAM_PROTO_SignData [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 0D 01 02 [09:11:48]Write to MH i2c: E2 08 00 FC 25 80 0D 01 02 00 00 00 00 9A [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [09:11:48]RAPDU: 90 00 [09:11:48]wFMCommunicate OK [09:11:48]wFMCommunicate request_size=255 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 59 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [09:11:48]Write to MH i2c: E2 02 01 FD 25 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 59 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 93 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [09:11:48]RAPDU: 90 00 [09:11:48]wFMCommunicate OK [09:11:48]wFMCommunicate request_size=33 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C2 48 00 00 35 04 06 00 67 60 26 43 75 13 [09:11:48]Write to MH i2c: E2 24 00 FE 25 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C2 48 00 00 35 04 06 00 67 60 26 43 75 13 00 00 F4 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 03 00 FE 25 00 90 00 97 [09:11:48]RAPDU: 90 00 [09:11:48]wFMCommunicate OK [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 0D 03 02 [09:11:48]Write to MH i2c: E2 08 00 FF 25 80 0D 03 02 00 00 00 00 9F [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 0B 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 0B 00 FF 25 00 51 76 5D DA 10 57 4D B6 90 00 08 [09:11:48]RAPDU: 51 76 5D DA 10 57 4D B6 90 00 [09:11:48]wFMCommunicate OK [09:11:48]SAM_PROTO_SignData done [09:11:48]FM_MakeSignedData done [09:11:48]CreateOFDProtocolMessage [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 11 00 00 [09:11:48]Write to MH i2c: E2 08 00 00 26 80 11 00 00 00 00 00 00 A0 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 17 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 17 00 00 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F9 [09:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:11:48]wFMCommunicate OK [09:11:48]CreateOFDProtocolMessage done [09:11:48]OFDSenderStorePacket 18626 [09:11:48]StoreOFDPacket docnum=18626 [09:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 DB F9 1E 01 44 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 59 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C2 48 00 00 35 04 06 00 67 60 26 43 75 13 51 76 5D DA 10 57 4D B6 [09:11:48]CheckFolder [09:11:48]dirname=/storage/ofd_packets [09:11:48]CheckFolder done [09:11:48]ProducePacketName [09:11:48]name=ofd_packets/00018626 [09:11:48]NVStorageSaveData ofd_packets/00018626 [09:11:48]File name is /storage/ofd_packets/00018626 [09:11:48]Write 324 bytes [09:11:48]NVStorageSaveData done [09:11:48]OFDSenderStorePacket done [09:11:48]KKMCreateOFDPacket done [09:11:48]NVStorageSaveData kkm_last_timestamp [09:11:48]File name is /storage/kkm_last_timestamp [09:11:48]Write 4 bytes [09:11:48]NVStorageSaveData done [09:11:48]ExternCall_PrintAddStr [09:11:48]wPrintStart [09:11:48]Write to MH i2c: 01 00 00 01 26 27 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: 01 07 00 01 26 00 00 00 00 00 FF 0F 3C [09:11:48]RasterBufferAndPrint [09:11:48]line Счет N : (3)16550 [09:11:48]line ИНН: 02508201610067 [09:11:48]line Контрольно-Кассовый Чек [09:11:48]line ПРОДАЖА [09:11:48]line Товар: 2000036240010 [09:11:48]line Кофе Латте (GABB TRADE) [09:11:48]line 1.000 * 115.00 [09:11:48]line = 115.00 [09:11:48]line НДС 12% НСП 1% [09:11:48]line > о реализуемом товаре [09:11:48]line ИТОГО: 115.00 [09:11:48]line НСП 1% : 1.02 [09:11:48]line НДС 12% : 12.21 [09:11:48]line Наличными: 115.00 [09:11:48]line Безнал.: 0.00 [09:11:48]line Место: АЗС № 176 "Партнер Нефть" [09:11:48]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:11:48]line СНО: Общий режим [09:11:48]line Чек 22 22.09.2024 09:11 [09:11:48]line Смена: 180 ФФД: 1.0 [09:11:48]line ЗНМ: 0300000010 [09:11:48]line РНМ: 0000000000152968 [09:11:48]line Версия ККМ: v1.0 [09:11:48]line ФМ: 0000000000959456 [09:11:48]line ФД: 18626 [09:11:48]line ФПД: 113662656476435 [09:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091153&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18626&fm=113662656476435&tin=02508201610067®Number=0000000000152968&sum=11500 [09:11:49]line 0 [09:11:49]OFD Sender: Processing packet 18626 [packets to send 7, broken 6] [09:11:49]ProducePacketName [09:11:49]name=ofd_packets/00018626 [09:11:49]OFD Sender: To server: pG, [09:11:49]CommunicateWithHost lk.salyk.kg:30040 [09:11:49]ConnectInit lk.salyk.kg [09:11:49]written 0, free lines is 4095 [09:11:49]Connected sock=10 [09:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 DB F9 1E 01 44 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 59 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C2 48 00 00 35 04 06 00 67 60 26 43 75 13 51 76 5D DA 10 57 4D B6 [09:11:49]Write to MH i2c: 01 00 00 29 26 4F [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 07 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 07 00 29 26 00 00 00 00 00 15 0D 78 [09:11:49]RasterBufferAndPrint [09:11:49]line [09:11:49]line [09:11:49]line [09:11:49]line [09:11:49]line [09:11:49]written 0, free lines is 3356 [09:11:49]MH_Cut [09:11:49]Write to MH i2c: D1 01 00 30 26 01 28 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: D1 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: D1 01 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: D1 01 00 30 26 00 27 [09:11:49]Write to MH i2c: 01 00 00 31 26 57 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 59 D9 47 00 7B BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C2 48 00 00 F4 03 04 00 C1 88 EF 66 B6 04 01 00 00 53 28 0F 3E BC 66 C8 A4 [09:11:49]CommunicateWithHost err = 0 [09:11:49]CheckOFDResponse [09:11:49]1017 (14) - 77093643461234 [09:11:49]1041 (16) - 0000000000959456 [09:11:49]1040 (4) - 18626 [09:11:49]1012 (4) - 22.09.2024 03:02 [09:11:49]1206 (1) - 0 [09:11:49]OFD Sender: Remove packet 18626 [09:11:49]ProducePacketName [09:11:49]name=ofd_packets/00018626 [09:11:49]NVStorageDeleteData [09:11:50]OFD Sender: No OFD packet to send [09:11:50]*** Cut start [09:11:50]*** Partial cut [09:11:50]*** CUTSNS_PIN = 1 [09:11:50]*** CUTSNS_PIN = 0 [09:11:50]*** Brake cut motor [09:11:50]Read from MH i2c: 01 [09:11:50]MH_I2C_Read... [09:11:50]*** Stop cut motor [09:11:50]*** Cut end [09:11:50]Read from MH i2c: 01 07 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 FF 0F 6C [09:11:50]process_action close_receipt done [09:11:50]requested_data is exist [09:11:50]produce_requested_data [09:11:50]requested_item fm.sn is exist - process it [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 11 00 00 [09:11:50]Write to MH i2c: E2 08 00 32 26 80 11 00 00 00 00 00 00 D2 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 17 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 17 00 32 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2B [09:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:11:50]wFMCommunicate OK [09:11:50]requested_item fd.num is exist - process it [09:11:50]SAM_PROTO_GetFieldsCounters [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 13 00 00 [09:11:50]Write to MH i2c: E2 08 00 33 26 80 13 00 00 00 00 00 00 D5 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 62 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 62 00 33 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C2 48 00 00 0E 04 04 00 B4 00 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 02 [09:11:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C2 48 00 00 0E 04 04 00 B4 00 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 [09:11:50]wFMCommunicate OK [09:11:50]SAM_PROTO_GetFieldsCounters done [09:11:50]requested_item shift.num is exist - process it [09:11:50]requested_item shift.opened is exist - process it [09:11:50]req_shift_opened [09:11:50]FM_GetShiftState [09:11:50]SAM_PROTO_GetShiftState [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 13 01 00 [09:11:50]Write to MH i2c: E2 08 00 34 26 80 13 01 00 00 00 00 00 D7 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 0E 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 0E 00 34 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 97 [09:11:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:11:50]wFMCommunicate OK [09:11:50]SAM_PROTO_GetShiftState done [09:11:50]FM_GetShiftState done [09:11:50]req_shift_opened done [09:11:50]requested_item shift.open_date is exist - process it [09:11:50]req_shift_open_date [09:11:50]req_shift_open_date done [09:11:50]produce_requested_data done [09:11:50]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18626,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [09:11:50]process_action_free close_receipt [09:11:50]json_value_free [09:11:50]json_value_free done [09:11:50]process_json_proto returns [09:11:50]Send response to host [09:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18626,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [09:11:50]free response buf [09:11:50]execute_script done [09:11:50]execute_script returns [09:11:50]free content buf [09:11:50]Sock 7.Close socket [09:11:50]Sock 7.Thread stoped [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:49]accept exits with 9 [09:13:49]New connection [09:13:49]New thread 3066666340 created [09:13:49]Thread 3066522980 joined [09:13:49]Waiting for new connection... [09:13:49] Sock 9.Parse request [09:13:49]Sock 9.Check first char [09:13:49]Sock 9.First char is OK [09:13:49]request: POST /json_proto HTTP/1.0 [09:13:49]Method: POST [09:13:49]URL: /json_proto [09:13:49]Method is POST - this is cgi request [09:13:49]url: /json_proto [09:13:49]query_string will be loaded in cgi processing [09:13:49]execute_cgi json_proto POST (null) [09:13:49]execute_cgi path=json_proto method=POST [09:13:49]POST find Content-Length [09:13:49]Host: 172.17.62.196:8080 [09:13:49]Content-Length: 995 [09:13:49]Content-Type: application/json [09:13:49] [09:13:49]POST finish read [09:13:49]Found Content-Length = 995 [09:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16551", "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": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:49]execute_script... [09:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16551", "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": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:49]POST & json_proto [09:13:49]process_json_proto [09:13:49]json parsed OK: [09:13:49]protocol is kg_v1.0 [09:13:49]action value=close_receipt [09:13:49]process_action close_receipt [09:13:49]cmd_close_receipt [09:13:49]MH_GetDate [09:13:49]Write to MH i2c: F0 00 00 35 26 4A [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: F0 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: F0 09 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: F0 09 00 35 26 00 D3 DF EF 66 CE CC 0E 66 68 [09:13:49]GetLastDocTimeStamp 1726996313 [09:13:49]current date 1726996435 [09:13:49]FM_GetShiftState [09:13:49]SAM_PROTO_GetShiftState [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 13 01 00 [09:13:49]Write to MH i2c: E2 08 00 36 26 80 13 01 00 00 00 00 00 D9 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0E 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0E 00 36 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 99 [09:13:49]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_GetShiftState done [09:13:49]FM_GetShiftState done [09:13:49]opened in 1726963967 [09:13:49]opened+sec_in_day 1727050367 [09:13:49]quantity*price = 6500 [09:13:49]sum+1 = 6501 [09:13:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 23 22.09.2024 09:13 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18627 ФПД: 178555864921524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091355&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18627&fm=178555864921524&tin=02508201610067®Number=0000000000152968&sum=14000 0 [09:13:50]StoreToDocumentArchive [09:13:50]shift 180 fd 18627 [09:13:50]save to /storage/0180/doc_00018627 [09:13:50]save last doc name /storage/0180/doc_00018627 to /storage/kkm_last_doc_name [09:13:50]save OK [09:13:50]Clear old archive folders... [09:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=418 [09:13:50]tlvbuf is 01A3D820 [09:13:50]SAM_PROTO_ClearQueue [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 09 00 00 [09:13:50]Write to MH i2c: E2 08 00 43 26 80 09 00 00 00 00 00 00 DB [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 43 26 00 90 00 DD [09:13:50]RAPDU: 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_ClearQueue done [09:13:50]KKMCreateOFDPacket [09:13:50]OFDProtocolAddRootSTLVToBuf [09:13:50]FM_MakeSignedData [09:13:50]FM_MakeSignedData [09:13:50]SAM_PROTO_SignData [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 0D 01 02 [09:13:50]Write to MH i2c: E2 08 00 44 26 80 0D 01 02 00 00 00 00 E3 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [09:13:50]RAPDU: 90 00 [09:13:50]wFMCommunicate OK [09:13:50]wFMCommunicate request_size=255 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 0D 02 02 FA 03 00 A2 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 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 [09:13:50]Write to MH i2c: E2 02 01 45 26 80 0D 02 02 FA 00 03 00 A2 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 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 7B [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [09:13:50]RAPDU: 90 00 [09:13:50]wFMCommunicate OK [09:13:50]wFMCommunicate request_size=177 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 0D 02 02 AC 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 D3 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C3 48 00 00 35 04 06 00 A2 65 46 E6 B5 B4 [09:13:50]Write to MH i2c: E2 B4 00 46 26 80 0D 02 02 AC 00 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 D3 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C3 48 00 00 35 04 06 00 A2 65 46 E6 B5 B4 00 00 E2 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [09:13:50]RAPDU: 90 00 [09:13:50]wFMCommunicate OK [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 0D 03 02 [09:13:50]Write to MH i2c: E2 08 00 47 26 80 0D 03 02 00 00 00 00 E8 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0B 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0B 00 47 26 00 AD 55 93 F3 AB 8F 8A F3 90 00 28 [09:13:50]RAPDU: AD 55 93 F3 AB 8F 8A F3 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_SignData done [09:13:50]FM_MakeSignedData done [09:13:50]CreateOFDProtocolMessage [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 11 00 00 [09:13:50]Write to MH i2c: E2 08 00 48 26 80 11 00 00 00 00 00 00 E8 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 48 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 41 [09:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:13:50]wFMCommunicate OK [09:13:50]CreateOFDProtocolMessage done [09:13:50]OFDSenderStorePacket 18627 [09:13:50]StoreOFDPacket docnum=18627 [09:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B6 01 00 00 B1 1E AE 01 FD 51 5A 03 01 00 03 00 A2 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 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 D3 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C3 48 00 00 35 04 06 00 A2 65 46 E6 B5 B4 AD 55 93 F3 AB 8F 8A F3 [09:13:50]CheckFolder [09:13:50]dirname=/storage/ofd_packets [09:13:50]CheckFolder done [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00018627 [09:13:50]NVStorageSaveData ofd_packets/00018627 [09:13:50]File name is /storage/ofd_packets/00018627 [09:13:50]Write 468 bytes [09:13:50]NVStorageSaveData done [09:13:50]OFDSenderStorePacket done [09:13:50]KKMCreateOFDPacket done [09:13:50]NVStorageSaveData kkm_last_timestamp [09:13:50]File name is /storage/kkm_last_timestamp [09:13:50]Write 4 bytes [09:13:50]NVStorageSaveData done [09:13:50]ExternCall_PrintAddStr [09:13:50]wPrintStart [09:13:50]Write to MH i2c: 01 00 00 49 26 6F [09:13:51]OFD Sender: Processing packet 18627 [packets to send 7, broken 6] [09:13:51]ProducePacketName [09:13:51]name=ofd_packets/00018627 [09:13:51]OFD Sender: To server: pG, [09:13:51]CommunicateWithHost lk.salyk.kg:30040 [09:13:51]ConnectInit lk.salyk.kg [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 07 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 07 00 49 26 00 00 00 00 00 FF 0F 84 [09:13:51]RasterBufferAndPrint [09:13:51]line Счет N : (3)16551 [09:13:51]line ИНН: 02508201610067 [09:13:51]line Контрольно-Кассовый Чек [09:13:51]line ПРОДАЖА [09:13:51]line Товар: 4700040114137 [09:13:51]line Султан чай 1л. зел лимон [09:13:51]line 1.000 * 65.00 [09:13:51]line = 65.00 [09:13:51]line НДС 12% НСП 1% [09:13:51]line > о реализуемом товаре [09:13:51]line Товар: 4870112003956 [09:13:51]line Шок батончик ALBENI SUPER Альбени Супер [09:13:51]line 1.000 * 75.00 [09:13:51]line = 75.00 [09:13:51]line НДС 12% НСП 1% [09:13:51]line > о реализуемом товаре [09:13:51]line ИТОГО: 140.00 [09:13:51]line НСП 1% : 1.23 [09:13:51]line НДС 12% : 14.86 [09:13:51]line Наличными: 140.00 [09:13:51]line Безнал.: 0.00 [09:13:51]line Место: АЗС № 176 "Партнер Нефть" [09:13:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:13:51]line СНО: Общий режим [09:13:51]line Чек 23 22.09.2024 09:13 [09:13:51]line Смена: 180 ФФД: 1.0 [09:13:51]line ЗНМ: 0300000010 [09:13:51]line РНМ: 0000000000152968 [09:13:51]line Версия ККМ: v1.0 [09:13:51]line ФМ: 0000000000959456 [09:13:51]line ФД: 18627 [09:13:51]line ФПД: 178555864921524 [09:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091355&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18627&fm=178555864921524&tin=02508201610067®Number=0000000000152968&sum=14000 [09:13:51]line 0 [09:13:51]written 0, free lines is 4095 [09:13:51]Connected sock=10 [09:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B6 01 00 00 B1 1E AE 01 FD 51 5A 03 01 00 03 00 A2 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 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 D3 DF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C3 48 00 00 35 04 06 00 A2 65 46 E6 B5 B4 AD 55 93 F3 AB 8F 8A F3 [09:13:51]Write to MH i2c: 01 00 00 78 26 9E [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 07 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 C5 0C 76 [09:13:51]RasterBufferAndPrint [09:13:51]line [09:13:51]line [09:13:51]line [09:13:51]line [09:13:51]line [09:13:51]written 0, free lines is 3277 [09:13:51]MH_Cut [09:13:51]Write to MH i2c: D1 01 00 7F 26 01 77 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: D1 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: D1 01 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: D1 01 00 7F 26 00 76 [09:13:51]Write to MH i2c: 01 00 00 80 26 A6 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 03 E6 47 00 C2 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 39 35 39 34 35 36 10 04 04 00 C3 48 00 00 F4 03 04 00 3B 89 EF 66 B6 04 01 00 00 F4 F4 4B CF 60 19 40 07 [09:13:51]CommunicateWithHost err = 0 [09:13:51]CheckOFDResponse [09:13:51]1017 (14) - 77093643461234 [09:13:51]1041 (16) - 0000000000959456 [09:13:51]1040 (4) - 18627 [09:13:51]1012 (4) - 22.09.2024 03:04 [09:13:51]1206 (1) - 0 [09:13:51]OFD Sender: Remove packet 18627 [09:13:51]ProducePacketName [09:13:51]name=ofd_packets/00018627 [09:13:51]NVStorageDeleteData [09:13:52]OFD Sender: No OFD packet to send [09:13:52]*** Cut start [09:13:52]*** Partial cut [09:13:52]*** CUTSNS_PIN = 1 [09:13:52]*** CUTSNS_PIN = 0 [09:13:52]*** Brake cut motor [09:13:53]Read from MH i2c: 01 [09:13:53]MH_I2C_Read... [09:13:53]*** Stop cut motor [09:13:53]*** Cut end [09:13:53]Read from MH i2c: 01 07 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 FF 0F BB [09:13:53]process_action close_receipt done [09:13:53]requested_data is exist [09:13:53]produce_requested_data [09:13:53]requested_item fm.sn is exist - process it [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 11 00 00 [09:13:53]Write to MH i2c: E2 08 00 81 26 80 11 00 00 00 00 00 00 21 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 81 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7A [09:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:13:53]wFMCommunicate OK [09:13:53]requested_item fd.num is exist - process it [09:13:53]SAM_PROTO_GetFieldsCounters [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 13 00 00 [09:13:53]Write to MH i2c: E2 08 00 82 26 80 13 00 00 00 00 00 00 24 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 62 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 62 00 82 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C3 48 00 00 0E 04 04 00 B4 00 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 55 [09:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C3 48 00 00 0E 04 04 00 B4 00 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 [09:13:53]wFMCommunicate OK [09:13:53]SAM_PROTO_GetFieldsCounters done [09:13:53]requested_item shift.num is exist - process it [09:13:53]requested_item shift.opened is exist - process it [09:13:53]req_shift_opened [09:13:53]FM_GetShiftState [09:13:53]SAM_PROTO_GetShiftState [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 13 01 00 [09:13:53]Write to MH i2c: E2 08 00 83 26 80 13 01 00 00 00 00 00 26 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0E 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0E 00 83 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E6 [09:13:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:13:53]wFMCommunicate OK [09:13:53]SAM_PROTO_GetShiftState done [09:13:53]FM_GetShiftState done [09:13:53]req_shift_opened done [09:13:53]requested_item shift.open_date is exist - process it [09:13:53]req_shift_open_date [09:13:53]req_shift_open_date done [09:13:53]produce_requested_data done [09:13:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18627,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [09:13:53]process_action_free close_receipt [09:13:53]json_value_free [09:13:53]json_value_free done [09:13:53]process_json_proto returns [09:13:53]Send response to host [09:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18627,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [09:13:53]free response buf [09:13:53]execute_script done [09:13:53]execute_script returns [09:13:53]free content buf [09:13:53]Sock 9.Close socket [09:13:53]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [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: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]accept exits with 7 [09:34:23]New connection [09:34:23]New thread 3066522980 created [09:34:23]Thread 3066666340 joined [09:34:23]Waiting for new connection... [09:34:23] Sock 7.Parse request [09:34:23]Sock 7.Check first char [09:34:23]Sock 7.First char is OK [09:34:23]request: POST /json_proto HTTP/1.0 [09:34:23]Method: POST [09:34:23]URL: /json_proto [09:34:23]Method is POST - this is cgi request [09:34:23]url: /json_proto [09:34:23]query_string will be loaded in cgi processing [09:34:23]execute_cgi json_proto POST (null) [09:34:23]execute_cgi path=json_proto method=POST [09:34:23]POST find Content-Length [09:34:23]Host: 172.17.62.196:8080 [09:34:23]Content-Length: 1082 [09:34:23]Content-Type: application/json [09:34:23] [09:34:23]POST finish read [09:34:23]Found Content-Length = 1082 [09:34:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16552", "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": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 188.00, "quantity" : 1.000, "sum" : 188.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:23]execute_script... [09:34: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)16552", "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": "4690329004542", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0430 80\u0433", "price" : 188.00, "quantity" : 1.000, "sum" : 188.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:23]POST & json_proto [09:34:23]process_json_proto [09:34:23]json parsed OK: [09:34:23]protocol is kg_v1.0 [09:34:23]action value=close_receipt [09:34:23]process_action close_receipt [09:34:23]cmd_close_receipt [09:34:23]MH_GetDate [09:34:23]Write to MH i2c: F0 00 00 84 26 99 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: F0 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: F0 09 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: F0 09 00 84 26 00 A5 E4 EF 66 CE CC 0E 66 8E [09:34:23]GetLastDocTimeStamp 1726996435 [09:34:23]current date 1726997669 [09:34:23]FM_GetShiftState [09:34:23]SAM_PROTO_GetShiftState [09:34:23]wFMCommunicate request_size=4 [09:34:23]MH_SAM_APDU [09:34:23]CAPDU: 80 13 01 00 [09:34:23]Write to MH i2c: E2 08 00 85 26 80 13 01 00 00 00 00 00 28 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:23]Read from MH i2c: E2 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 0E 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 0E 00 85 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E8 [09:34:23]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:34:23]wFMCommunicate OK [09:34:23]SAM_PROTO_GetShiftState done [09:34:23]FM_GetShiftState done [09:34:23]opened in 1726963967 [09:34:23]opened+sec_in_day 1727050367 [09:34:23]quantity*price = 13000 [09:34:23]sum+1 = 13001 [09:34:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4690329004542 Снек Орехи BEERKa Фисташка 80г 1.000 * 188.00 = 188.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.76 Наличными: 0.00 Безнал.: 318.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 24 22.09.2024 09:34 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18628 ФПД: 261468038603155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093429&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18628&fm=261468038603155&tin=02508201610067®Number=0000000000152968&sum=31800 0 [09:34:24]StoreToDocumentArchive [09:34:24]shift 180 fd 18628 [09:34:24]save to /storage/0180/doc_00018628 [09:34:24]save last doc name /storage/0180/doc_00018628 to /storage/kkm_last_doc_name [09:34:24]save OK [09:34:24]Clear old archive folders... [09:34:24]ProcessDocumentItem done err = 0, tmpTLVsize=396 [09:34:24]tlvbuf is 0198A280 [09:34:24]SAM_PROTO_ClearQueue [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 09 00 00 [09:34:24]Write to MH i2c: E2 08 00 92 26 80 09 00 00 00 00 00 00 2A [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_ClearQueue done [09:34:24]KKMCreateOFDPacket [09:34:24]OFDProtocolAddRootSTLVToBuf [09:34:24]FM_MakeSignedData [09:34:24]FM_MakeSignedData [09:34:24]SAM_PROTO_SignData [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 01 02 [09:34:24]Write to MH i2c: E2 08 00 93 26 80 0D 01 02 00 00 00 00 32 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=255 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 02 02 FA 03 00 8C 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 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF [09:34:24]Write to MH i2c: E2 02 01 94 26 80 0D 02 02 FA 00 03 00 8C 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 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 00 00 9A [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=155 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 E4 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C4 48 00 00 35 04 06 00 ED CD C5 8F A1 93 [09:34:24]Write to MH i2c: E2 9E 00 95 26 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 E4 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C4 48 00 00 35 04 06 00 ED CD C5 8F A1 93 00 00 AA [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 95 26 00 90 00 2F [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 03 02 [09:34:24]Write to MH i2c: E2 08 00 96 26 80 0D 03 02 00 00 00 00 37 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 96 26 00 9B 76 8A 82 56 AB 88 66 90 00 44 [09:34:24]RAPDU: 9B 76 8A 82 56 AB 88 66 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_SignData done [09:34:24]FM_MakeSignedData done [09:34:24]CreateOFDProtocolMessage [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 11 00 00 [09:34:24]Write to MH i2c: E2 08 00 97 26 80 11 00 00 00 00 00 00 37 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 97 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 90 [09:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:34:24]wFMCommunicate OK [09:34:24]CreateOFDProtocolMessage done [09:34:24]OFDSenderStorePacket 18628 [09:34:24]StoreOFDPacket docnum=18628 [09:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 F9 EF 98 01 A5 0B 5A 03 01 00 03 00 8C 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 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 E4 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C4 48 00 00 35 04 06 00 ED CD C5 8F A1 93 9B 76 8A 82 56 AB 88 66 [09:34:24]CheckFolder [09:34:24]dirname=/storage/ofd_packets [09:34:24]CheckFolder done [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00018628 [09:34:24]NVStorageSaveData ofd_packets/00018628 [09:34:25]File name is /storage/ofd_packets/00018628 [09:34:25]Write 446 bytes [09:34:25]NVStorageSaveData done [09:34:25]OFDSenderStorePacket done [09:34:25]KKMCreateOFDPacket done [09:34:25]NVStorageSaveData kkm_last_timestamp [09:34:25]File name is /storage/kkm_last_timestamp [09:34:25]Write 4 bytes [09:34:25]NVStorageSaveData done [09:34:25]ExternCall_PrintAddStr [09:34:25]wPrintStart [09:34:25]Write to MH i2c: 01 00 00 98 26 BE [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 98 26 00 00 00 00 00 FF 0F D3 [09:34:25]RasterBufferAndPrint [09:34:25]line Счет N : (3)16552 [09:34:25]line ИНН: 02508201610067 [09:34:25]line Контрольно-Кассовый Чек [09:34:25]line ПРОДАЖА [09:34:25]line Товар: 2000036230011 [09:34:25]line Кофе Латте XL(GABB TRADE) [09:34:25]line 1.000 * 130.00 [09:34:25]line = 130.00 [09:34:25]line НДС 12% НСП 1% [09:34:25]line > о реализуемом товаре [09:34:25]line Товар: 4690329004542 [09:34:25]line Снек Орехи BEERKa Фисташка 80г [09:34:25]line 1.000 * 188.00 [09:34:25]line = 188.00 [09:34:25]line НДС 12% НСП 1% [09:34:25]line > о реализуемом товаре [09:34:25]line ИТОГО: 318.00 [09:34:25]line НСП 1% : 2.81 [09:34:25]line НДС 12% : 33.76 [09:34:25]line Наличными: 0.00 [09:34:25]line Безнал.: 318.00 [09:34:25]line Место: АЗС № 176 "Партнер Нефть" [09:34:25]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:34:25]line СНО: Общий режим [09:34:25]line Чек 24 22.09.2024 09:34 [09:34:25]line Смена: 180 ФФД: 1.0 [09:34:25]line ЗНМ: 0300000010 [09:34:25]line РНМ: 0000000000152968 [09:34:25]line Версия ККМ: v1.0 [09:34:25]line Платежная система: O! деньги [09:34:25]line ФМ: 0000000000959456 [09:34:25]line ФД: 18628 [09:34:25]line ФПД: 261468038603155 [09:34:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093429&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18628&fm=261468038603155&tin=02508201610067®Number=0000000000152968&sum=31800 [09:34:25]line 0 [09:34:25]written 0, free lines is 4095 [09:34:25]OFD Sender: Processing packet 18628 [packets to send 7, broken 6] [09:34:25]ProducePacketName [09:34:25]name=ofd_packets/00018628 [09:34:25]OFD Sender: To server: pG, [09:34:25]CommunicateWithHost lk.salyk.kg:30040 [09:34:25]ConnectInit lk.salyk.kg [09:34:25]Connected sock=10 [09:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 F9 EF 98 01 A5 0B 5A 03 01 00 03 00 8C 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 74 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 34 35 34 32 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B0 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 49 00 00 00 00 13 04 06 00 70 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 A5 E4 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C4 48 00 00 35 04 06 00 ED CD C5 8F A1 93 9B 76 8A 82 56 AB 88 66 [09:34:25]Write to MH i2c: 01 00 00 C9 26 EF [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 C9 26 00 00 00 00 00 AE 0C B0 [09:34:25]RasterBufferAndPrint [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]written 0, free lines is 3255 [09:34:25]MH_Cut [09:34:25]Write to MH i2c: D1 01 00 D0 26 01 C8 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 D0 26 00 C7 [09:34:25]Write to MH i2c: 01 00 00 D1 26 F7 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 E9 8D 47 00 D4 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C4 48 00 00 F4 03 04 00 0D 8E EF 66 B6 04 01 00 00 CE 29 64 97 24 C5 F3 5F [09:34:25]CommunicateWithHost err = 0 [09:34:25]CheckOFDResponse [09:34:25]1017 (14) - 77093643461234 [09:34:25]1041 (16) - 0000000000959456 [09:34:25]1040 (4) - 18628 [09:34:25]1012 (4) - 22.09.2024 03:25 [09:34:25]1206 (1) - 0 [09:34:25]OFD Sender: Remove packet 18628 [09:34:25]ProducePacketName [09:34:25]name=ofd_packets/00018628 [09:34:25]NVStorageDeleteData [09:34:26]OFD Sender: No OFD packet to send [09:34:26]*** Cut start [09:34:26]*** Partial cut [09:34:26]*** CUTSNS_PIN = 1 [09:34:26]*** CUTSNS_PIN = 0 [09:34:26]*** Brake cut motor [09:34:27]Read from MH i2c: 01 [09:34:27]MH_I2C_Read... [09:34:27]*** Stop cut motor [09:34:27]*** Cut end [09:34:27]Read from MH i2c: 01 07 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: 01 07 00 D1 26 00 00 00 00 00 FF 0F 0C [09:34:27]process_action close_receipt done [09:34:27]requested_data is exist [09:34:27]produce_requested_data [09:34:27]requested_item fm.sn is exist - process it [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 11 00 00 [09:34:27]Write to MH i2c: E2 08 00 D2 26 80 11 00 00 00 00 00 00 72 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 17 00 D2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CB [09:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:34:27]wFMCommunicate OK [09:34:27]requested_item fd.num is exist - process it [09:34:27]SAM_PROTO_GetFieldsCounters [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 13 00 00 [09:34:27]Write to MH i2c: E2 08 00 D3 26 80 13 00 00 00 00 00 00 75 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 62 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 62 00 D3 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C4 48 00 00 0E 04 04 00 B4 00 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 AA [09:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C4 48 00 00 0E 04 04 00 B4 00 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 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_GetFieldsCounters done [09:34:27]requested_item shift.num is exist - process it [09:34:27]requested_item shift.opened is exist - process it [09:34:27]req_shift_opened [09:34:27]FM_GetShiftState [09:34:27]SAM_PROTO_GetShiftState [09:34:27]wFMCommunicate request_size=4 [09:34:27]MH_SAM_APDU [09:34:27]CAPDU: 80 13 01 00 [09:34:27]Write to MH i2c: E2 08 00 D4 26 80 13 01 00 00 00 00 00 77 [09:34:27]Write i2c OK [09:34:27]MH_I2C_Read... [09:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:27]Read from MH i2c: E2 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 [09:34:27]MH_I2C_Read... [09:34:27]Read from MH i2c: E2 0E 00 D4 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 37 [09:34:27]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [09:34:27]wFMCommunicate OK [09:34:27]SAM_PROTO_GetShiftState done [09:34:27]FM_GetShiftState done [09:34:27]req_shift_opened done [09:34:27]requested_item shift.open_date is exist - process it [09:34:27]req_shift_open_date [09:34:27]req_shift_open_date done [09:34:27]produce_requested_data done [09:34:27]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18628,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [09:34:27]process_action_free close_receipt [09:34:27]json_value_free [09:34:27]json_value_free done [09:34:27]process_json_proto returns [09:34:27]Send response to host [09:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18628,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [09:34:27]free response buf [09:34:27]execute_script done [09:34:27]execute_script returns [09:34:27]free content buf [09:34:27]Sock 7.Close socket [09:34:27]Sock 7.Thread stoped [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [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:15]accept exits with 9 [10:14:15]New connection [10:14:15]New thread 3066666340 created [10:14:15]Thread 3066522980 joined [10:14:15]Waiting for new connection... [10:14:15] Sock 9.Parse request [10:14:15]Sock 9.Check first char [10:14:15]Sock 9.First char is OK [10:14:15]request: POST /json_proto HTTP/1.0 [10:14:15]Method: POST [10:14:15]URL: /json_proto [10:14:15]Method is POST - this is cgi request [10:14:15]url: /json_proto [10:14:15]query_string will be loaded in cgi processing [10:14:15]execute_cgi json_proto POST (null) [10:14:15]execute_cgi path=json_proto method=POST [10:14:15]POST find Content-Length [10:14:15]Host: 172.17.62.196:8080 [10:14:15]Content-Length: 1541 [10:14:15]Content-Type: application/json [10:14:15] [10:14:15]POST finish read [10:14:15]Found Content-Length = 1541 [10:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16553", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "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": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:15]execute_script... [10: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)16553", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "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": "4620017453130", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u043A\u043B\u0430\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:15]POST & json_proto [10:14:15]process_json_proto [10:14:15]json parsed OK: [10:14:15]protocol is kg_v1.0 [10:14:15]action value=close_receipt [10:14:15]process_action close_receipt [10:14:15]cmd_close_receipt [10:14:15]MH_GetDate [10:14:15]Write to MH i2c: F0 00 00 D5 26 EA [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: F0 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: F0 09 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: F0 09 00 D5 26 00 FE ED EF 66 CE CC 0E 66 41 [10:14:15]GetLastDocTimeStamp 1726997669 [10:14:15]current date 1727000062 [10:14:15]FM_GetShiftState [10:14:15]SAM_PROTO_GetShiftState [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 13 01 00 [10:14:15]Write to MH i2c: E2 08 00 D6 26 80 13 01 00 00 00 00 00 79 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0E 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0E 00 D6 26 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 39 [10:14:15]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:14:15]wFMCommunicate OK [10:14:15]SAM_PROTO_GetShiftState done [10:14:15]FM_GetShiftState done [10:14:15]opened in 1726963967 [10:14:15]opened+sec_in_day 1727050367 [10:14:15]quantity*price = 11500 [10:14:15]sum+1 = 11501 [10:14:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017453130 Тараллини NF 180г клас 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.41 НДС 12% : 40.88 Наличными: 0.00 Безнал.: 385.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 25 22.09.2024 10:14 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18629 ФПД: 157924335815281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101422&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18629&fm=157924335815281&tin=02508201610067®Number=0000000000152968&sum=38500 0 [10:14:16]StoreToDocumentArchive [10:14:16]shift 180 fd 18629 [10:14:16]save to /storage/0180/doc_00018629 [10:14:16]save last doc name /storage/0180/doc_00018629 to /storage/kkm_last_doc_name [10:14:16]save OK [10:14:16]Clear old archive folders... [10:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=587 [10:14:16]tlvbuf is 019A1C40 [10:14:16]SAM_PROTO_ClearQueue [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 09 00 00 [10:14:16]Write to MH i2c: E2 08 00 E3 26 80 09 00 00 00 00 00 00 7B [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [10:14:17]RAPDU: 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_ClearQueue done [10:14:17]KKMCreateOFDPacket [10:14:17]OFDProtocolAddRootSTLVToBuf [10:14:17]FM_MakeSignedData [10:14:17]FM_MakeSignedData [10:14:17]SAM_PROTO_SignData [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 0D 01 02 [10:14:17]Write to MH i2c: E2 08 00 E4 26 80 0D 01 02 00 00 00 00 83 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [10:14:17]RAPDU: 90 00 [10:14:17]wFMCommunicate OK [10:14:17]wFMCommunicate request_size=255 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 0D 02 02 FA 03 00 4B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 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 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 [10:14:17]Write to MH i2c: E2 02 01 E5 26 80 0D 02 02 FA 00 03 00 4B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 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 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 00 00 E8 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [10:14:17]RAPDU: 90 00 [10:14:17]wFMCommunicate OK [10:14:17]wFMCommunicate request_size=255 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 0D 02 02 FA 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 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 [10:14:17]Write to MH i2c: E2 02 01 E6 26 80 0D 02 02 FA 00 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 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 00 00 89 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [10:14:17]RAPDU: 90 00 [10:14:17]wFMCommunicate OK [10:14:17]wFMCommunicate request_size=96 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 0D 02 02 5B 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FE ED EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C5 48 00 00 35 04 06 00 8F A1 9F F0 0A 71 [10:14:17]Write to MH i2c: E2 63 00 E7 26 80 0D 02 02 5B 00 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FE ED EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C5 48 00 00 35 04 06 00 8F A1 9F F0 0A 71 00 00 60 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 03 00 E7 26 00 90 00 81 [10:14:17]RAPDU: 90 00 [10:14:17]wFMCommunicate OK [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 0D 03 02 [10:14:17]Write to MH i2c: E2 08 00 E8 26 80 0D 03 02 00 00 00 00 89 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0B 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0B 00 E8 26 00 1F 59 47 F7 CC 96 84 93 90 00 B9 [10:14:17]RAPDU: 1F 59 47 F7 CC 96 84 93 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_SignData done [10:14:17]FM_MakeSignedData done [10:14:17]CreateOFDProtocolMessage [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 11 00 00 [10:14:17]Write to MH i2c: E2 08 00 E9 26 80 11 00 00 00 00 00 00 89 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 17 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 17 00 E9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E2 [10:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:14:17]wFMCommunicate OK [10:14:17]CreateOFDProtocolMessage done [10:14:17]OFDSenderStorePacket 18629 [10:14:17]StoreOFDPacket docnum=18629 [10:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5F 02 00 00 6E DE 57 02 F4 3A 5A 03 01 00 03 00 4B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 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 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 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FE ED EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C5 48 00 00 35 04 06 00 8F A1 9F F0 0A 71 1F 59 47 F7 CC 96 84 93 [10:14:17]CheckFolder [10:14:17]dirname=/storage/ofd_packets [10:14:17]CheckFolder done [10:14:17]ProducePacketName [10:14:17]name=ofd_packets/00018629 [10:14:17]NVStorageSaveData ofd_packets/00018629 [10:14:17]File name is /storage/ofd_packets/00018629 [10:14:17]Write 637 bytes [10:14:17]NVStorageSaveData done [10:14:17]OFDSenderStorePacket done [10:14:17]KKMCreateOFDPacket done [10:14:17]NVStorageSaveData kkm_last_timestamp [10:14:17]File name is /storage/kkm_last_timestamp [10:14:17]Write 4 bytes [10:14:17]NVStorageSaveData done [10:14:17]ExternCall_PrintAddStr [10:14:17]wPrintStart [10:14:17]Write to MH i2c: 01 00 00 EA 26 10 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 07 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 07 00 EA 26 00 00 00 00 00 FF 0F 25 [10:14:17]RasterBufferAndPrint [10:14:17]line Счет N : (3)16553 [10:14:17]line ИНН: 02508201610067 [10:14:17]line Контрольно-Кассовый Чек [10:14:17]line ПРОДАЖА [10:14:17]line Товар: 2000036240010 [10:14:17]line Кофе Латте (GABB TRADE) [10:14:17]line 1.000 * 115.00 [10:14:17]line = 115.00 [10:14:17]line НДС 12% НСП 1% [10:14:17]line > о реализуемом товаре [10:14:17]line Товар: 2000036230011 [10:14:17]line Кофе Латте XL(GABB TRADE) [10:14:17]line 1.000 * 130.00 [10:14:17]line = 130.00 [10:14:17]line НДС 12% НСП 1% [10:14:17]line > о реализуемом товаре [10:14:17]line Товар: 4700000160358 [10:14:17]line Вода Легенда 1л [10:14:18]line 1.000 * 50.00 [10:14:18]line = 50.00 [10:14:18]line НДС 12% НСП 1% [10:14:18]line > о реализуемом товаре [10:14:18]line Товар: 4620017453130 [10:14:18]line Тараллини NF 180г клас [10:14:18]line 1.000 * 90.00 [10:14:18]line = 90.00 [10:14:18]line НДС 12% НСП 1% [10:14:18]line > о реализуемом товаре [10:14:18]line ИТОГО: 385.00 [10:14:18]line НСП 1% : 3.41 [10:14:18]line НДС 12% : 40.88 [10:14:18]line Наличными: 0.00 [10:14:18]line Безнал.: 385.00 [10:14:18]line Место: АЗС № 176 "Партнер Нефть" [10:14:18]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:14:18]line СНО: Общий режим [10:14:18]line Чек 25 22.09.2024 10:14 [10:14:18]line Смена: 180 ФФД: 1.0 [10:14:18]line ЗНМ: 0300000010 [10:14:18]line РНМ: 0000000000152968 [10:14:18]line Версия ККМ: v1.0 [10:14:18]line Платежная система: O! деньги [10:14:18]line ФМ: 0000000000959456 [10:14:18]line ФД: 18629 [10:14:18]line ФПД: 157924335815281 [10:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101422&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18629&fm=157924335815281&tin=02508201610067®Number=0000000000152968&sum=38500 [10:14:18]line 0 [10:14:18]OFD Sender: Processing packet 18629 [packets to send 7, broken 6] [10:14:18]ProducePacketName [10:14:18]name=ofd_packets/00018629 [10:14:18]OFD Sender: To server: pG, [10:14:18]CommunicateWithHost lk.salyk.kg:30040 [10:14:18]ConnectInit lk.salyk.kg [10:14:18]written 0, free lines is 4095 [10:14:18]Connected sock=10 [10:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5F 02 00 00 6E DE 57 02 F4 3A 5A 03 01 00 03 00 4B 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 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 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 68 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 31 33 30 06 04 24 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D0 BA D0 BB D0 B0 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FE ED EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C5 48 00 00 35 04 06 00 8F A1 9F F0 0A 71 1F 59 47 F7 CC 96 84 93 [10:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 5F A4 47 00 C1 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 39 35 39 34 35 36 10 04 04 00 C5 48 00 00 F4 03 04 00 66 97 EF 66 B6 04 01 00 00 12 EF 2D 51 F3 16 D9 0A [10:14:18]CommunicateWithHost err = 0 [10:14:18]CheckOFDResponse [10:14:18]1017 (14) - 77093643461234 [10:14:18]1041 (16) - 0000000000959456 [10:14:18]1040 (4) - 18629 [10:14:18]1012 (4) - 22.09.2024 04:04 [10:14:18]1206 (1) - 0 [10:14:18]OFD Sender: Remove packet 18629 [10:14:18]ProducePacketName [10:14:18]name=ofd_packets/00018629 [10:14:18]NVStorageDeleteData [10:14:18]Write to MH i2c: 01 00 00 26 27 4D [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: 01 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: 01 07 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: 01 07 00 26 27 00 00 00 00 00 25 0C 85 [10:14:18]RasterBufferAndPrint [10:14:18]line [10:14:18]line [10:14:18]line [10:14:18]line [10:14:18]line [10:14:18]written 0, free lines is 3119 [10:14:18]MH_Cut [10:14:18]Write to MH i2c: D1 01 00 2D 27 01 26 [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: D1 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: D1 01 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: D1 01 00 2D 27 00 25 [10:14:18]Write to MH i2c: 01 00 00 2E 27 55 [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:19]OFD Sender: No OFD packet to send [10:14:19]*** Cut start [10:14:19]*** Partial cut [10:14:19]*** CUTSNS_PIN = 1 [10:14:19]*** CUTSNS_PIN = 0 [10:14:19]*** Brake cut motor [10:14:20]Read from MH i2c: 01 [10:14:20]MH_I2C_Read... [10:14:20]*** Stop cut motor [10:14:20]*** Cut end [10:14:20]Read from MH i2c: 01 07 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: 01 07 00 2E 27 00 00 00 00 00 FF 0F 6A [10:14:20]process_action close_receipt done [10:14:20]requested_data is exist [10:14:20]produce_requested_data [10:14:20]requested_item fm.sn is exist - process it [10:14:20]wFMCommunicate request_size=4 [10:14:20]MH_SAM_APDU [10:14:20]CAPDU: 80 11 00 00 [10:14:20]Write to MH i2c: E2 08 00 2F 27 80 11 00 00 00 00 00 00 D0 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 [10:14:20]MH_I2C_Read... [10:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:20]Read from MH i2c: E2 17 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 17 00 2F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 29 [10:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:14:20]wFMCommunicate OK [10:14:20]requested_item fd.num is exist - process it [10:14:20]SAM_PROTO_GetFieldsCounters [10:14:20]wFMCommunicate request_size=4 [10:14:20]MH_SAM_APDU [10:14:20]CAPDU: 80 13 00 00 [10:14:20]Write to MH i2c: E2 08 00 30 27 80 13 00 00 00 00 00 00 D3 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:20]Read from MH i2c: E2 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 62 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 62 00 30 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C5 48 00 00 0E 04 04 00 B4 00 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 0C [10:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C5 48 00 00 0E 04 04 00 B4 00 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 [10:14:20]wFMCommunicate OK [10:14:20]SAM_PROTO_GetFieldsCounters done [10:14:20]requested_item shift.num is exist - process it [10:14:20]requested_item shift.opened is exist - process it [10:14:20]req_shift_opened [10:14:20]FM_GetShiftState [10:14:20]SAM_PROTO_GetShiftState [10:14:20]wFMCommunicate request_size=4 [10:14:20]MH_SAM_APDU [10:14:20]CAPDU: 80 13 01 00 [10:14:20]Write to MH i2c: E2 08 00 31 27 80 13 01 00 00 00 00 00 D5 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:20]Read from MH i2c: E2 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 31 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 95 [10:14:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:14:20]wFMCommunicate OK [10:14:20]SAM_PROTO_GetShiftState done [10:14:20]FM_GetShiftState done [10:14:20]req_shift_opened done [10:14:20]requested_item shift.open_date is exist - process it [10:14:20]req_shift_open_date [10:14:20]req_shift_open_date done [10:14:20]produce_requested_data done [10:14:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18629,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [10:14:20]process_action_free close_receipt [10:14:20]json_value_free [10:14:20]json_value_free done [10:14:20]process_json_proto returns [10:14:20]Send response to host [10:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18629,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [10:14:20]free response buf [10:14:20]execute_script done [10:14:20]execute_script returns [10:14:20]free content buf [10:14:20]Sock 9.Close socket [10:14:20]Sock 9.Thread stoped [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18: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:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:54]accept exits with 7 [10:31:54]New connection [10:31:54]New thread 3066522980 created [10:31:54]Thread 3066666340 joined [10:31:54]Waiting for new connection... [10:31:54] Sock 7.Parse request [10:31:54]Sock 7.Check first char [10:31:54]Sock 7.First char is OK [10:31:54]request: POST /json_proto HTTP/1.0 [10:31:54]Method: POST [10:31:54]URL: /json_proto [10:31:54]Method is POST - this is cgi request [10:31:54]url: /json_proto [10:31:54]query_string will be loaded in cgi processing [10:31:54]execute_cgi json_proto POST (null) [10:31:54]execute_cgi path=json_proto method=POST [10:31:54]POST find Content-Length [10:31:54]Host: 172.17.62.196:8080 [10:31:54]Content-Length: 1181 [10:31:54]Content-Type: application/json [10:31:54] [10:31:54]POST finish read [10:31:54]Found Content-Length = 1181 [10:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16554", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:54]execute_script... [10:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16554", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:54]POST & json_proto [10:31:54]process_json_proto [10:31:54]json parsed OK: [10:31:54]protocol is kg_v1.0 [10:31:54]action value=close_receipt [10:31:54]process_action close_receipt [10:31:54]cmd_close_receipt [10:31:54]MH_GetDate [10:31:54]Write to MH i2c: F0 00 00 32 27 48 [10:31:54]Write i2c OK [10:31:54]MH_I2C_Read... [10:31:54]Read from MH i2c: F0 [10:31:54]MH_I2C_Read... [10:31:54]Read from MH i2c: F0 09 00 [10:31:54]MH_I2C_Read... [10:31:54]Read from MH i2c: F0 09 00 32 27 00 20 F2 EF 66 CE CC 0E 66 C6 [10:31:54]GetLastDocTimeStamp 1727000062 [10:31:54]current date 1727001120 [10:31:54]FM_GetShiftState [10:31:54]SAM_PROTO_GetShiftState [10:31:54]wFMCommunicate request_size=4 [10:31:54]MH_SAM_APDU [10:31:54]CAPDU: 80 13 01 00 [10:31:54]Write to MH i2c: E2 08 00 33 27 80 13 01 00 00 00 00 00 D7 [10:31:54]Write i2c OK [10:31:54]MH_I2C_Read... [10:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:54]Read from MH i2c: E2 [10:31:54]MH_I2C_Read... [10:31:54]Read from MH i2c: E2 0E 00 [10:31:54]MH_I2C_Read... [10:31:54]Read from MH i2c: E2 0E 00 33 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 97 [10:31:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:31:54]wFMCommunicate OK [10:31:54]SAM_PROTO_GetShiftState done [10:31:54]FM_GetShiftState done [10:31:54]opened in 1726963967 [10:31:54]opened+sec_in_day 1727050367 [10:31:54]quantity*price = 6500 [10:31:54]sum+1 = 6501 [10:31:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 26 22.09.2024 10:32 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18630 ФПД: 133312985678472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103200&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18630&fm=133312985678472&tin=02508201610067®Number=0000000000152968&sum=11000 0 [10:31:55]StoreToDocumentArchive [10:31:55]shift 180 fd 18630 [10:31:55]save to /storage/0180/doc_00018630 [10:31:55]save last doc name /storage/0180/doc_00018630 to /storage/kkm_last_doc_name [10:31:55]save OK [10:31:55]Clear old archive folders... [10:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=419 [10:31:55]tlvbuf is 019C5540 [10:31:55]SAM_PROTO_ClearQueue [10:31:55]wFMCommunicate request_size=4 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 09 00 00 [10:31:55]Write to MH i2c: E2 08 00 40 27 80 09 00 00 00 00 00 00 D9 [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [10:31:55]RAPDU: 90 00 [10:31:55]wFMCommunicate OK [10:31:55]SAM_PROTO_ClearQueue done [10:31:55]KKMCreateOFDPacket [10:31:55]OFDProtocolAddRootSTLVToBuf [10:31:55]FM_MakeSignedData [10:31:55]FM_MakeSignedData [10:31:55]SAM_PROTO_SignData [10:31:55]wFMCommunicate request_size=4 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 0D 01 02 [10:31:55]Write to MH i2c: E2 08 00 41 27 80 0D 01 02 00 00 00 00 E1 [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 41 27 00 90 00 DC [10:31:55]RAPDU: 90 00 [10:31:55]wFMCommunicate OK [10:31:55]wFMCommunicate request_size=255 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 [10:31:55]Write to MH i2c: E2 02 01 42 27 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 00 00 5B [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 42 27 00 90 00 DD [10:31:55]RAPDU: 90 00 [10:31:55]wFMCommunicate OK [10:31:55]wFMCommunicate request_size=178 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 F2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C6 48 00 00 35 04 06 00 79 3F 59 27 C2 88 [10:31:55]Write to MH i2c: E2 B5 00 43 27 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 F2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C6 48 00 00 35 04 06 00 79 3F 59 27 C2 88 00 00 4E [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 03 00 43 27 00 90 00 DE [10:31:55]RAPDU: 90 00 [10:31:55]wFMCommunicate OK [10:31:55]wFMCommunicate request_size=4 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 0D 03 02 [10:31:55]Write to MH i2c: E2 08 00 44 27 80 0D 03 02 00 00 00 00 E6 [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 0B 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 0B 00 44 27 00 7A 2E C6 64 F8 7F 6F 98 90 00 37 [10:31:55]RAPDU: 7A 2E C6 64 F8 7F 6F 98 90 00 [10:31:55]wFMCommunicate OK [10:31:55]SAM_PROTO_SignData done [10:31:55]FM_MakeSignedData done [10:31:55]CreateOFDProtocolMessage [10:31:55]wFMCommunicate request_size=4 [10:31:55]MH_SAM_APDU [10:31:55]CAPDU: 80 11 00 00 [10:31:55]Write to MH i2c: E2 08 00 45 27 80 11 00 00 00 00 00 00 E6 [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:55]Read from MH i2c: E2 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 17 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: E2 17 00 45 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3F [10:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:31:55]wFMCommunicate OK [10:31:55]CreateOFDProtocolMessage done [10:31:55]OFDSenderStorePacket 18630 [10:31:55]StoreOFDPacket docnum=18630 [10:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B7 01 00 00 40 6F AF 01 F2 A5 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 F2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C6 48 00 00 35 04 06 00 79 3F 59 27 C2 88 7A 2E C6 64 F8 7F 6F 98 [10:31:56]CheckFolder [10:31:56]dirname=/storage/ofd_packets [10:31:56]CheckFolder done [10:31:56]ProducePacketName [10:31:56]name=ofd_packets/00018630 [10:31:56]NVStorageSaveData ofd_packets/00018630 [10:31:56]File name is /storage/ofd_packets/00018630 [10:31:56]Write 469 bytes [10:31:56]NVStorageSaveData done [10:31:56]OFDSenderStorePacket done [10:31:56]KKMCreateOFDPacket done [10:31:56]NVStorageSaveData kkm_last_timestamp [10:31:56]File name is /storage/kkm_last_timestamp [10:31:56]Write 4 bytes [10:31:56]NVStorageSaveData done [10:31:56]ExternCall_PrintAddStr [10:31:56]wPrintStart [10:31:56]Write to MH i2c: 01 00 00 46 27 6D [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 07 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 07 00 46 27 00 00 00 00 00 FF 0F 82 [10:31:56]RasterBufferAndPrint [10:31:56]line Счет N : (3)16554 [10:31:56]line ИНН: 02508201610067 [10:31:56]line Контрольно-Кассовый Чек [10:31:56]line ПРОДАЖА [10:31:56]line Товар: 4870001571023 [10:31:56]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [10:31:56]line 1.000 * 65.00 [10:31:56]line = 65.00 [10:31:56]line НДС 12% НСП 1% [10:31:56]line > о реализуемом товаре [10:31:56]line Товар: 4607010740733 [10:31:56]line Чипсы Чипсоны шашлык 40г [10:31:56]line 1.000 * 45.00 [10:31:56]line = 45.00 [10:31:56]line НДС 12% НСП 1% [10:31:56]line > о реализуемом товаре [10:31:56]line ИТОГО: 110.00 [10:31:56]line НСП 1% : 0.97 [10:31:56]line НДС 12% : 11.68 [10:31:56]line Наличными: 0.00 [10:31:56]line Безнал.: 110.00 [10:31:56]line Место: АЗС № 176 "Партнер Нефть" [10:31:56]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:31:56]line СНО: Общий режим [10:31:56]line Чек 26 22.09.2024 10:32 [10:31:56]line Смена: 180 ФФД: 1.0 [10:31:56]line ЗНМ: 0300000010 [10:31:56]line РНМ: 0000000000152968 [10:31:56]line Версия ККМ: v1.0 [10:31:56]line Платежная система: Бакай Банк [10:31:56]line ФМ: 0000000000959456 [10:31:56]line ФД: 18630 [10:31:56]line ФПД: 133312985678472 [10:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103200&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18630&fm=133312985678472&tin=02508201610067®Number=0000000000152968&sum=11000 [10:31:56]line 0 [10:31:56]written 0, free lines is 4095 [10:31:56]OFD Sender: Processing packet 18630 [packets to send 7, broken 6] [10:31:56]ProducePacketName [10:31:56]name=ofd_packets/00018630 [10:31:56]OFD Sender: To server: pG, [10:31:56]CommunicateWithHost lk.salyk.kg:30040 [10:31:56]ConnectInit lk.salyk.kg [10:31:56]Connected sock=10 [10:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B7 01 00 00 40 6F AF 01 F2 A5 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 20 F2 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C6 48 00 00 35 04 06 00 79 3F 59 27 C2 88 7A 2E C6 64 F8 7F 6F 98 [10:31:56]Write to MH i2c: 01 00 00 77 27 9E [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 07 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: 01 07 00 77 27 00 00 00 00 00 A9 0C 5A [10:31:56]RasterBufferAndPrint [10:31:56]line [10:31:56]line [10:31:56]line [10:31:56]line [10:31:56]line [10:31:56]written 0, free lines is 3247 [10:31:56]MH_Cut [10:31:56]Write to MH i2c: D1 01 00 7E 27 01 77 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: D1 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: D1 01 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: D1 01 00 7E 27 00 76 [10:31:56]Write to MH i2c: 01 00 00 7F 27 A6 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 77 FE 47 00 54 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 39 35 39 34 35 36 10 04 04 00 C6 48 00 00 F4 03 04 00 89 9B EF 66 B6 04 01 00 00 9A 2B 49 76 B5 0A 52 DD [10:31:56]CommunicateWithHost err = 0 [10:31:56]CheckOFDResponse [10:31:56]1017 (14) - 77093643461234 [10:31:56]1041 (16) - 0000000000959456 [10:31:56]1040 (4) - 18630 [10:31:56]1012 (4) - 22.09.2024 04:22 [10:31:56]1206 (1) - 0 [10:31:56]OFD Sender: Remove packet 18630 [10:31:56]ProducePacketName [10:31:56]name=ofd_packets/00018630 [10:31:56]NVStorageDeleteData [10:31:57]OFD Sender: No OFD packet to send [10:31:57]*** Cut start [10:31:57]*** Partial cut [10:31:57]*** CUTSNS_PIN = 1 [10:31:57]*** CUTSNS_PIN = 0 [10:31:57]*** Brake cut motor [10:31:58]Read from MH i2c: 01 [10:31:58]MH_I2C_Read... [10:31:58]*** Stop cut motor [10:31:58]*** Cut end [10:31:58]Read from MH i2c: 01 07 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 7F 27 00 00 00 00 00 FF 0F BB [10:31:58]process_action close_receipt done [10:31:58]requested_data is exist [10:31:58]produce_requested_data [10:31:58]requested_item fm.sn is exist - process it [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 11 00 00 [10:31:58]Write to MH i2c: E2 08 00 80 27 80 11 00 00 00 00 00 00 21 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 80 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7A [10:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:31:58]wFMCommunicate OK [10:31:58]requested_item fd.num is exist - process it [10:31:58]SAM_PROTO_GetFieldsCounters [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 13 00 00 [10:31:58]Write to MH i2c: E2 08 00 81 27 80 13 00 00 00 00 00 00 24 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 62 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 62 00 81 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C6 48 00 00 0E 04 04 00 B4 00 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 61 [10:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C6 48 00 00 0E 04 04 00 B4 00 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 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_GetFieldsCounters done [10:31:58]requested_item shift.num is exist - process it [10:31:58]requested_item shift.opened is exist - process it [10:31:58]req_shift_opened [10:31:58]FM_GetShiftState [10:31:58]SAM_PROTO_GetShiftState [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 13 01 00 [10:31:58]Write to MH i2c: E2 08 00 82 27 80 13 01 00 00 00 00 00 26 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 82 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E6 [10:31:58]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_GetShiftState done [10:31:58]FM_GetShiftState done [10:31:58]req_shift_opened done [10:31:58]requested_item shift.open_date is exist - process it [10:31:58]req_shift_open_date [10:31:58]req_shift_open_date done [10:31:58]produce_requested_data done [10:31:58]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18630,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [10:31:58]process_action_free close_receipt [10:31:58]json_value_free [10:31:58]json_value_free done [10:31:58]process_json_proto returns [10:31:58]Send response to host [10:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18630,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [10:31:58]free response buf [10:31:58]execute_script done [10:31:58]execute_script returns [10:31:58]free content buf [10:31:58]Sock 7.Close socket [10:31:58]Sock 7.Thread stoped [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:16]accept exits with 9 [10:45:16]New connection [10:45:16]New thread 3066666340 created [10:45:16]Thread 3066522980 joined [10:45:16]Waiting for new connection... [10:45:16] Sock 9.Parse request [10:45:16]Sock 9.Check first char [10:45:16]Sock 9.First char is OK [10:45:16]request: POST /json_proto HTTP/1.0 [10:45:16]Method: POST [10:45:16]URL: /json_proto [10:45:16]Method is POST - this is cgi request [10:45:16]url: /json_proto [10:45:16]query_string will be loaded in cgi processing [10:45:16]execute_cgi json_proto POST (null) [10:45:16]execute_cgi path=json_proto method=POST [10:45:16]POST find Content-Length [10:45:16]Host: 172.17.62.196:8080 [10:45:16]Content-Length: 818 [10:45:16]Content-Type: application/json [10:45:16] [10:45:16]POST finish read [10:45:16]Found Content-Length = 818 [10:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16555", "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" : 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" ] } } [10:45:16]execute_script... [10:45: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)16555", "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" : 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" ] } } [10:45:16]POST & json_proto [10:45:16]process_json_proto [10:45:16]json parsed OK: [10:45:16]protocol is kg_v1.0 [10:45:16]action value=close_receipt [10:45:16]process_action close_receipt [10:45:16]cmd_close_receipt [10:45:16]MH_GetDate [10:45:16]Write to MH i2c: F0 00 00 83 27 99 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 83 27 00 43 F5 EF 66 CE CC 0E 66 3D [10:45:16]GetLastDocTimeStamp 1727001120 [10:45:16]current date 1727001923 [10:45:16]FM_GetShiftState [10:45:16]SAM_PROTO_GetShiftState [10:45:16]wFMCommunicate request_size=4 [10:45:16]MH_SAM_APDU [10:45:16]CAPDU: 80 13 01 00 [10:45:16]Write to MH i2c: E2 08 00 84 27 80 13 01 00 00 00 00 00 28 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 84 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E8 [10:45:17]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_GetShiftState done [10:45:17]FM_GetShiftState done [10:45:17]opened in 1726963967 [10:45:17]opened+sec_in_day 1727050367 [10:45:17]quantity*price = 10500 [10:45:17]sum+1 = 10501 [10:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 27 22.09.2024 10:45 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18631 ФПД: 166428247052497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104523&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18631&fm=166428247052497&tin=02508201610067®Number=0000000000152968&sum=10500 0 [10:45:18]StoreToDocumentArchive [10:45:18]shift 180 fd 18631 [10:45:18]save to /storage/0180/doc_00018631 [10:45:18]save last doc name /storage/0180/doc_00018631 to /storage/kkm_last_doc_name [10:45:18]save OK [10:45:18]Clear old archive folders... [10:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:45:18]tlvbuf is 019D33D0 [10:45:18]SAM_PROTO_ClearQueue [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 09 00 00 [10:45:18]Write to MH i2c: E2 08 00 91 27 80 09 00 00 00 00 00 00 2A [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 91 27 00 90 00 2C [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_ClearQueue done [10:45:18]KKMCreateOFDPacket [10:45:18]OFDProtocolAddRootSTLVToBuf [10:45:18]FM_MakeSignedData [10:45:18]FM_MakeSignedData [10:45:18]SAM_PROTO_SignData [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 01 02 [10:45:18]Write to MH i2c: E2 08 00 92 27 80 0D 01 02 00 00 00 00 32 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 92 27 00 90 00 2D [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=255 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 FA 03 00 16 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 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 1B 00 00 00 F4 03 04 00 43 F5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [10:45:18]Write to MH i2c: E2 02 01 93 27 80 0D 02 02 FA 00 03 00 16 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 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 1B 00 00 00 F4 03 04 00 43 F5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 FD [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 93 27 00 90 00 2E [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=37 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C7 48 00 00 35 04 06 00 97 5D 98 8B D0 D1 [10:45:18]Write to MH i2c: E2 28 00 94 27 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C7 48 00 00 35 04 06 00 97 5D 98 8B D0 D1 00 00 59 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 94 27 00 90 00 2F [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 03 02 [10:45:18]Write to MH i2c: E2 08 00 95 27 80 0D 03 02 00 00 00 00 37 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 95 27 00 70 13 31 58 1A C2 45 BE 90 00 23 [10:45:18]RAPDU: 70 13 31 58 1A C2 45 BE 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_SignData done [10:45:18]FM_MakeSignedData done [10:45:18]CreateOFDProtocolMessage [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 11 00 00 [10:45:18]Write to MH i2c: E2 08 00 96 27 80 11 00 00 00 00 00 00 37 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 96 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 90 [10:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:45:18]wFMCommunicate OK [10:45:18]CreateOFDProtocolMessage done [10:45:18]OFDSenderStorePacket 18631 [10:45:18]StoreOFDPacket docnum=18631 [10:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 F8 1C 22 01 7F B7 5A 03 01 00 03 00 16 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 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 1B 00 00 00 F4 03 04 00 43 F5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C7 48 00 00 35 04 06 00 97 5D 98 8B D0 D1 70 13 31 58 1A C2 45 BE [10:45:18]CheckFolder [10:45:18]dirname=/storage/ofd_packets [10:45:18]CheckFolder done [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00018631 [10:45:18]NVStorageSaveData ofd_packets/00018631 [10:45:18]File name is /storage/ofd_packets/00018631 [10:45:18]Write 328 bytes [10:45:18]NVStorageSaveData done [10:45:18]OFDSenderStorePacket done [10:45:18]KKMCreateOFDPacket done [10:45:18]NVStorageSaveData kkm_last_timestamp [10:45:18]File name is /storage/kkm_last_timestamp [10:45:18]Write 4 bytes [10:45:18]NVStorageSaveData done [10:45:18]ExternCall_PrintAddStr [10:45:18]wPrintStart [10:45:18]Write to MH i2c: 01 00 00 97 27 BE [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 97 27 00 00 00 00 00 FF 0F D3 [10:45:18]RasterBufferAndPrint [10:45:18]line Счет N : (3)16555 [10:45:18]line ИНН: 02508201610067 [10:45:18]line Контрольно-Кассовый Чек [10:45:18]line ПРОДАЖА [10:45:18]line Товар: 5449000054227 [10:45:18]line Напиток Кока-Кола 1л [10:45:18]line 1.000 * 105.00 [10:45:18]line = 105.00 [10:45:18]line НДС 12% НСП 1% [10:45:18]line > о реализуемом товаре [10:45:18]line ИТОГО: 105.00 [10:45:18]line НСП 1% : 0.93 [10:45:18]line НДС 12% : 11.15 [10:45:18]line Наличными: 0.00 [10:45:18]line Безнал.: 105.00 [10:45:18]line Место: АЗС № 176 "Партнер Нефть" [10:45:18]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:45:18]line СНО: Общий режим [10:45:18]line Чек 27 22.09.2024 10:45 [10:45:18]line Смена: 180 ФФД: 1.0 [10:45:18]line ЗНМ: 0300000010 [10:45:18]line РНМ: 0000000000152968 [10:45:18]line Версия ККМ: v1.0 [10:45:18]line Платежная система: O! деньги [10:45:18]line ФМ: 0000000000959456 [10:45:18]line ФД: 18631 [10:45:18]line ФПД: 166428247052497 [10:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104523&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18631&fm=166428247052497&tin=02508201610067®Number=0000000000152968&sum=10500 [10:45:19]line 0 [10:45:19]OFD Sender: Processing packet 18631 [packets to send 7, broken 6] [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00018631 [10:45:19]OFD Sender: To server: pG, [10:45:19]CommunicateWithHost lk.salyk.kg:30040 [10:45:19]ConnectInit lk.salyk.kg [10:45:19]written 0, free lines is 4095 [10:45:19]Connected sock=10 [10:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 F8 1C 22 01 7F B7 5A 03 01 00 03 00 16 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 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 1B 00 00 00 F4 03 04 00 43 F5 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C7 48 00 00 35 04 06 00 97 5D 98 8B D0 D1 70 13 31 58 1A C2 45 BE [10:45:19]Write to MH i2c: 01 00 00 C1 27 E8 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 04 0D 00 [10:45:19]RasterBufferAndPrint [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]written 0, free lines is 3338 [10:45:19]MH_Cut [10:45:19]Write to MH i2c: D1 01 00 C8 27 01 C1 [10:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 20 E1 47 00 32 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C7 48 00 00 F4 03 04 00 AB 9E EF 66 B6 04 01 00 00 E3 D6 94 97 B5 24 9F CC [10:45:19]CommunicateWithHost err = 0 [10:45:19]CheckOFDResponse [10:45:19]1017 (14) - 77093643461234 [10:45:19]1041 (16) - 0000000000959456 [10:45:19]1040 (4) - 18631 [10:45:19]1012 (4) - 22.09.2024 04:35 [10:45:19]1206 (1) - 0 [10:45:19]OFD Sender: Remove packet 18631 [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00018631 [10:45:19]NVStorageDeleteData [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 C8 27 00 C0 [10:45:19]Write to MH i2c: 01 00 00 C9 27 F0 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]OFD Sender: No OFD packet to send [10:45:20]*** Cut start [10:45:20]*** Partial cut [10:45:20]*** CUTSNS_PIN = 1 [10:45:20]*** CUTSNS_PIN = 0 [10:45:20]*** Brake cut motor [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]*** Stop cut motor [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]*** Cut end [10:45:20]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 FF 0F 05 [10:45:20]process_action close_receipt done [10:45:20]requested_data is exist [10:45:20]produce_requested_data [10:45:20]requested_item fm.sn is exist - process it [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 11 00 00 [10:45:20]Write to MH i2c: E2 08 00 CA 27 80 11 00 00 00 00 00 00 6B [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 17 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 17 00 CA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C4 [10:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:45:20]wFMCommunicate OK [10:45:20]requested_item fd.num is exist - process it [10:45:20]SAM_PROTO_GetFieldsCounters [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 13 00 00 [10:45:20]Write to MH i2c: E2 08 00 CB 27 80 13 00 00 00 00 00 00 6E [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 62 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 62 00 CB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C7 48 00 00 0E 04 04 00 B4 00 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 AF [10:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C7 48 00 00 0E 04 04 00 B4 00 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 [10:45:20]wFMCommunicate OK [10:45:20]SAM_PROTO_GetFieldsCounters done [10:45:20]requested_item shift.num is exist - process it [10:45:20]requested_item shift.opened is exist - process it [10:45:20]req_shift_opened [10:45:20]FM_GetShiftState [10:45:20]SAM_PROTO_GetShiftState [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 13 01 00 [10:45:20]Write to MH i2c: E2 08 00 CC 27 80 13 01 00 00 00 00 00 70 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 CC 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 30 [10:45:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [10:45:20]wFMCommunicate OK [10:45:20]SAM_PROTO_GetShiftState done [10:45:20]FM_GetShiftState done [10:45:20]req_shift_opened done [10:45:20]requested_item shift.open_date is exist - process it [10:45:20]req_shift_open_date [10:45:20]req_shift_open_date done [10:45:20]produce_requested_data done [10:45:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18631,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [10:45:20]process_action_free close_receipt [10:45:20]json_value_free [10:45:20]json_value_free done [10:45:20]process_json_proto returns [10:45:20]Send response to host [10:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18631,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [10:45:20]free response buf [10:45:20]execute_script done [10:45:20]execute_script returns [10:45:20]free content buf [10:45:20]Sock 9.Close socket [10:45:20]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:12]accept exits with 7 [11:02:12]New connection [11:02:12]New thread 3066522980 created [11:02:12]Thread 3066666340 joined [11:02:12]Waiting for new connection... [11:02:12] Sock 7.Parse request [11:02:12]Sock 7.Check first char [11:02:12]Sock 7.First char is OK [11:02:12]request: POST /json_proto HTTP/1.0 [11:02:12]Method: POST [11:02:12]URL: /json_proto [11:02:12]Method is POST - this is cgi request [11:02:12]url: /json_proto [11:02:12]query_string will be loaded in cgi processing [11:02:12]execute_cgi json_proto POST (null) [11:02:12]execute_cgi path=json_proto method=POST [11:02:12]POST find Content-Length [11:02:12]Host: 172.17.62.196:8080 [11:02:12]Content-Length: 727 [11:02:12]Content-Type: application/json [11:02:12] [11:02:12]POST finish read [11:02:12]Found Content-Length = 727 [11:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16556", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 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" ] } } [11:02:12]execute_script... [11:02:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16556", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 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" ] } } [11:02:12]POST & json_proto [11:02:12]process_json_proto [11:02:12]json parsed OK: [11:02:12]protocol is kg_v1.0 [11:02:12]action value=close_receipt [11:02:12]process_action close_receipt [11:02:12]cmd_close_receipt [11:02:12]MH_GetDate [11:02:12]Write to MH i2c: F0 00 00 CD 27 E3 [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: F0 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: F0 09 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: F0 09 00 CD 27 00 3B F9 EF 66 CE CC 0E 66 83 [11:02:12]GetLastDocTimeStamp 1727001923 [11:02:12]current date 1727002939 [11:02:12]FM_GetShiftState [11:02:12]SAM_PROTO_GetShiftState [11:02:12]wFMCommunicate request_size=4 [11:02:12]MH_SAM_APDU [11:02:12]CAPDU: 80 13 01 00 [11:02:12]Write to MH i2c: E2 08 00 CE 27 80 13 01 00 00 00 00 00 72 [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:12]Read from MH i2c: E2 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 0E 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 0E 00 CE 27 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 32 [11:02:12]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:02:12]wFMCommunicate OK [11:02:12]SAM_PROTO_GetShiftState done [11:02:12]FM_GetShiftState done [11:02:12]opened in 1726963967 [11:02:12]opened+sec_in_day 1727050367 [11:02:12]quantity*price = 10500 [11:02:12]sum+1 = 10501 [11:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 28 22.09.2024 11:02 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18632 ФПД: 18543833264998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110219&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18632&fm=18543833264998&tin=02508201610067®Number=0000000000152968&sum=10500 0 [11:02:14]StoreToDocumentArchive [11:02:14]shift 180 fd 18632 [11:02:14]save to /storage/0180/doc_00018632 [11:02:14]save last doc name /storage/0180/doc_00018632 to /storage/kkm_last_doc_name [11:02:14]save OK [11:02:14]Clear old archive folders... [11:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=308 [11:02:14]tlvbuf is 0199BD30 [11:02:14]SAM_PROTO_ClearQueue [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 09 00 00 [11:02:14]Write to MH i2c: E2 08 00 DB 27 80 09 00 00 00 00 00 00 74 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 DB 27 00 90 00 76 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_ClearQueue done [11:02:14]KKMCreateOFDPacket [11:02:14]OFDProtocolAddRootSTLVToBuf [11:02:14]FM_MakeSignedData [11:02:14]FM_MakeSignedData [11:02:14]SAM_PROTO_SignData [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 01 02 [11:02:14]Write to MH i2c: E2 08 00 DC 27 80 0D 01 02 00 00 00 00 7C [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 DC 27 00 90 00 77 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]wFMCommunicate request_size=255 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3B F9 EF 66 0E 04 04 00 B4 00 00 00 B9 [11:02:14]Write to MH i2c: E2 02 01 DD 27 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3B F9 EF 66 0E 04 04 00 B4 00 00 00 B9 00 00 D5 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 DD 27 00 90 00 78 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]wFMCommunicate request_size=67 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C8 48 00 00 35 04 06 00 10 DD 92 98 33 66 [11:02:14]Write to MH i2c: E2 46 00 DE 27 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C8 48 00 00 35 04 06 00 10 DD 92 98 33 66 00 00 A3 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [11:02:14]RAPDU: 90 00 [11:02:14]wFMCommunicate OK [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 0D 03 02 [11:02:14]Write to MH i2c: E2 08 00 DF 27 80 0D 03 02 00 00 00 00 81 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0B 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 0B 00 DF 27 00 32 BD CB 0A 17 81 8C EB 90 00 55 [11:02:14]RAPDU: 32 BD CB 0A 17 81 8C EB 90 00 [11:02:14]wFMCommunicate OK [11:02:14]SAM_PROTO_SignData done [11:02:14]FM_MakeSignedData done [11:02:14]CreateOFDProtocolMessage [11:02:14]wFMCommunicate request_size=4 [11:02:14]MH_SAM_APDU [11:02:14]CAPDU: 80 11 00 00 [11:02:14]Write to MH i2c: E2 08 00 E0 27 80 11 00 00 00 00 00 00 81 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:14]Read from MH i2c: E2 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 17 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: E2 17 00 E0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DA [11:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:02:14]wFMCommunicate OK [11:02:14]CreateOFDProtocolMessage done [11:02:14]OFDSenderStorePacket 18632 [11:02:14]StoreOFDPacket docnum=18632 [11:02:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 48 01 00 00 A3 1C 40 01 64 AF 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3B F9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C8 48 00 00 35 04 06 00 10 DD 92 98 33 66 32 BD CB 0A 17 81 8C EB [11:02:14]CheckFolder [11:02:14]dirname=/storage/ofd_packets [11:02:14]CheckFolder done [11:02:14]ProducePacketName [11:02:14]name=ofd_packets/00018632 [11:02:14]NVStorageSaveData ofd_packets/00018632 [11:02:14]File name is /storage/ofd_packets/00018632 [11:02:14]Write 358 bytes [11:02:14]NVStorageSaveData done [11:02:14]OFDSenderStorePacket done [11:02:14]KKMCreateOFDPacket done [11:02:14]NVStorageSaveData kkm_last_timestamp [11:02:14]File name is /storage/kkm_last_timestamp [11:02:14]Write 4 bytes [11:02:14]NVStorageSaveData done [11:02:14]ExternCall_PrintAddStr [11:02:14]wPrintStart [11:02:14]Write to MH i2c: 01 00 00 E1 27 08 [11:02:14]Write i2c OK [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: 01 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: 01 07 00 [11:02:14]MH_I2C_Read... [11:02:14]Read from MH i2c: 01 07 00 E1 27 00 00 00 00 00 FF 0F 1D [11:02:14]RasterBufferAndPrint [11:02:14]line Счет N : (3)16556 [11:02:14]line ИНН: 02508201610067 [11:02:14]line Контрольно-Кассовый Чек [11:02:14]line ПРОДАЖА [11:02:14]line Товар: 5449000027474 [11:02:14]line Напиток FuzeTea зел чай манго,ромашка 1л [11:02:14]line 1.000 * 105.00 [11:02:14]line = 105.00 [11:02:14]line НДС 12% НСП 1% [11:02:14]line > о реализуемом товаре [11:02:14]line ИТОГО: 105.00 [11:02:14]line НСП 1% : 0.93 [11:02:14]line НДС 12% : 11.15 [11:02:14]line Наличными: 105.00 [11:02:14]line Безнал.: 0.00 [11:02:14]line Место: АЗС № 176 "Партнер Нефть" [11:02:14]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:02:14]line СНО: Общий режим [11:02:14]line Чек 28 22.09.2024 11:02 [11:02:14]line Смена: 180 ФФД: 1.0 [11:02:14]line ЗНМ: 0300000010 [11:02:14]line РНМ: 0000000000152968 [11:02:14]line Версия ККМ: v1.0 [11:02:14]line ФМ: 0000000000959456 [11:02:14]line ФД: 18632 [11:02:14]line ФПД: 18543833264998 [11:02:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110219&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18632&fm=18543833264998&tin=02508201610067®Number=0000000000152968&sum=10500 [11:02:14]line 0 [11:02:14]OFD Sender: Processing packet 18632 [packets to send 7, broken 6] [11:02:14]ProducePacketName [11:02:14]name=ofd_packets/00018632 [11:02:14]OFD Sender: To server: pG, [11:02:14]CommunicateWithHost lk.salyk.kg:30040 [11:02:14]ConnectInit lk.salyk.kg [11:02:14]written 0, free lines is 4095 [11:02:15]Connected sock=10 [11:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 48 01 00 00 A3 1C 40 01 64 AF 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 3B F9 EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C8 48 00 00 35 04 06 00 10 DD 92 98 33 66 32 BD CB 0A 17 81 8C EB [11:02:15]Write to MH i2c: 01 00 00 0A 28 32 [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: 01 07 00 0A 28 00 00 00 00 00 0D 0D 53 [11:02:15]RasterBufferAndPrint [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]line [11:02:15]written 0, free lines is 3347 [11:02:15]MH_Cut [11:02:15]Write to MH i2c: D1 01 00 11 28 01 0B [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: D1 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: D1 01 00 [11:02:15]MH_I2C_Read... [11:02:15]Read from MH i2c: D1 01 00 11 28 00 0A [11:02:15]Write to MH i2c: 01 00 00 12 28 3A [11:02:15]Write i2c OK [11:02:15]MH_I2C_Read... [11:02:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8B 6B 47 00 BE 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 39 35 39 34 35 36 10 04 04 00 C8 48 00 00 F4 03 04 00 A3 A2 EF 66 B6 04 01 00 00 56 A8 80 FA 41 B7 5E 8B [11:02:15]CommunicateWithHost err = 0 [11:02:15]CheckOFDResponse [11:02:15]1017 (14) - 77093643461234 [11:02:15]1041 (16) - 0000000000959456 [11:02:15]1040 (4) - 18632 [11:02:15]1012 (4) - 22.09.2024 04:52 [11:02:15]1206 (1) - 0 [11:02:15]OFD Sender: Remove packet 18632 [11:02:15]ProducePacketName [11:02:15]name=ofd_packets/00018632 [11:02:15]NVStorageDeleteData [11:02:15]OFD Sender: No OFD packet to send [11:02:16]*** Cut start [11:02:16]*** Partial cut [11:02:16]*** CUTSNS_PIN = 1 [11:02:16]*** CUTSNS_PIN = 0 [11:02:16]*** Brake cut motor [11:02:16]Read from MH i2c: 01 [11:02:16]MH_I2C_Read... [11:02:16]*** Stop cut motor [11:02:16]*** Cut end [11:02:16]Read from MH i2c: 01 07 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: 01 07 00 12 28 00 00 00 00 00 FF 0F 4F [11:02:16]process_action close_receipt done [11:02:16]requested_data is exist [11:02:16]produce_requested_data [11:02:16]requested_item fm.sn is exist - process it [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 11 00 00 [11:02:16]Write to MH i2c: E2 08 00 13 28 80 11 00 00 00 00 00 00 B5 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 17 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 17 00 13 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0E [11:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:02:16]wFMCommunicate OK [11:02:16]requested_item fd.num is exist - process it [11:02:16]SAM_PROTO_GetFieldsCounters [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 13 00 00 [11:02:16]Write to MH i2c: E2 08 00 14 28 80 13 00 00 00 00 00 00 B8 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 62 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 62 00 14 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C8 48 00 00 0E 04 04 00 B4 00 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 FD [11:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C8 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:16]wFMCommunicate OK [11:02:16]SAM_PROTO_GetFieldsCounters done [11:02:16]requested_item shift.num is exist - process it [11:02:16]requested_item shift.opened is exist - process it [11:02:16]req_shift_opened [11:02:16]FM_GetShiftState [11:02:16]SAM_PROTO_GetShiftState [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 13 01 00 [11:02:16]Write to MH i2c: E2 08 00 15 28 80 13 01 00 00 00 00 00 BA [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0E 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0E 00 15 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7A [11:02:16]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:02:16]wFMCommunicate OK [11:02:16]SAM_PROTO_GetShiftState done [11:02:16]FM_GetShiftState done [11:02:16]req_shift_opened done [11:02:16]requested_item shift.open_date is exist - process it [11:02:16]req_shift_open_date [11:02:16]req_shift_open_date done [11:02:16]produce_requested_data done [11:02:16]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18632,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:02:16]process_action_free close_receipt [11:02:16]json_value_free [11:02:16]json_value_free done [11:02:16]process_json_proto returns [11:02:16]Send response to host [11:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18632,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:02:16]free response buf [11:02:16]execute_script done [11:02:16]execute_script returns [11:02:16]free content buf [11:02:16]Sock 7.Close socket [11:02:16]Sock 7.Thread stoped [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]accept exits with 9 [11:07:46]New connection [11:07:46]New thread 3066666340 created [11:07:46]Thread 3066522980 joined [11:07:46]Waiting for new connection... [11:07:46] Sock 9.Parse request [11:07:46]Sock 9.Check first char [11:07:46]Sock 9.First char is OK [11:07:46]request: POST /json_proto HTTP/1.0 [11:07:46]Method: POST [11:07:46]URL: /json_proto [11:07:46]Method is POST - this is cgi request [11:07:46]url: /json_proto [11:07:46]query_string will be loaded in cgi processing [11:07:46]execute_cgi json_proto POST (null) [11:07:46]execute_cgi path=json_proto method=POST [11:07:46]POST find Content-Length [11:07:46]Host: 172.17.62.196:8080 [11:07:46]Content-Length: 647 [11:07:46]Content-Type: application/json [11:07:46] [11:07:46]POST finish read [11:07:46]Found Content-Length = 647 [11:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16557", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:46]execute_script... [11:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16557", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:46]POST & json_proto [11:07:46]process_json_proto [11:07:46]json parsed OK: [11:07:46]protocol is kg_v1.0 [11:07:46]action value=close_receipt [11:07:46]process_action close_receipt [11:07:46]cmd_close_receipt [11:07:46]MH_GetDate [11:07:46]Write to MH i2c: F0 00 00 16 28 2D [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: F0 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: F0 09 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: F0 09 00 16 28 00 88 FA EF 66 CE CC 0E 66 1B [11:07:46]GetLastDocTimeStamp 1727002939 [11:07:46]current date 1727003272 [11:07:46]FM_GetShiftState [11:07:46]SAM_PROTO_GetShiftState [11:07:46]wFMCommunicate request_size=4 [11:07:46]MH_SAM_APDU [11:07:46]CAPDU: 80 13 01 00 [11:07:46]Write to MH i2c: E2 08 00 17 28 80 13 01 00 00 00 00 00 BC [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 17 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7C [11:07:46]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:07:46]wFMCommunicate OK [11:07:46]SAM_PROTO_GetShiftState done [11:07:46]FM_GetShiftState done [11:07:46]opened in 1726963967 [11:07:46]opened+sec_in_day 1727050367 [11:07:46]quantity*price = 16000 [11:07:46]sum+1 = 16001 [11:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 29 22.09.2024 11:07 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18633 ФПД: 240880410491022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110752&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18633&fm=240880410491022&tin=02508201610067®Number=0000000000152968&sum=16000 0 [11:07:47]StoreToDocumentArchive [11:07:47]shift 180 fd 18633 [11:07:47]save to /storage/0180/doc_00018633 [11:07:47]save last doc name /storage/0180/doc_00018633 to /storage/kkm_last_doc_name [11:07:47]save OK [11:07:47]Clear old archive folders... [11:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:07:47]tlvbuf is 01A3DC70 [11:07:47]SAM_PROTO_ClearQueue [11:07:47]wFMCommunicate request_size=4 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 09 00 00 [11:07:47]Write to MH i2c: E2 08 00 24 28 80 09 00 00 00 00 00 00 BE [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 24 28 00 90 00 C0 [11:07:47]RAPDU: 90 00 [11:07:47]wFMCommunicate OK [11:07:47]SAM_PROTO_ClearQueue done [11:07:47]KKMCreateOFDPacket [11:07:47]OFDProtocolAddRootSTLVToBuf [11:07:47]FM_MakeSignedData [11:07:47]FM_MakeSignedData [11:07:47]SAM_PROTO_SignData [11:07:47]wFMCommunicate request_size=4 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 0D 01 02 [11:07:47]Write to MH i2c: E2 08 00 25 28 80 0D 01 02 00 00 00 00 C6 [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 25 28 00 90 00 C1 [11:07:47]RAPDU: 90 00 [11:07:47]wFMCommunicate OK [11:07:47]wFMCommunicate request_size=255 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 88 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [11:07:47]Write to MH i2c: E2 02 01 26 28 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 88 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 D6 [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 26 28 00 90 00 C2 [11:07:47]RAPDU: 90 00 [11:07:47]wFMCommunicate OK [11:07:47]wFMCommunicate request_size=35 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C9 48 00 00 35 04 06 00 DB 14 57 4C F8 8E [11:07:47]Write to MH i2c: E2 26 00 27 28 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C9 48 00 00 35 04 06 00 DB 14 57 4C F8 8E 00 00 EB [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [11:07:47]RAPDU: 90 00 [11:07:47]wFMCommunicate OK [11:07:47]wFMCommunicate request_size=4 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 0D 03 02 [11:07:47]Write to MH i2c: E2 08 00 28 28 80 0D 03 02 00 00 00 00 CB [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 0B 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 0B 00 28 28 00 F8 43 FA 13 02 DB F8 24 90 00 0D [11:07:47]RAPDU: F8 43 FA 13 02 DB F8 24 90 00 [11:07:47]wFMCommunicate OK [11:07:47]SAM_PROTO_SignData done [11:07:47]FM_MakeSignedData done [11:07:47]CreateOFDProtocolMessage [11:07:47]wFMCommunicate request_size=4 [11:07:47]MH_SAM_APDU [11:07:47]CAPDU: 80 11 00 00 [11:07:47]Write to MH i2c: E2 08 00 29 28 80 11 00 00 00 00 00 00 CB [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:47]Read from MH i2c: E2 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 17 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: E2 17 00 29 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 24 [11:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:07:47]wFMCommunicate OK [11:07:47]CreateOFDProtocolMessage done [11:07:47]OFDSenderStorePacket 18633 [11:07:47]StoreOFDPacket docnum=18633 [11:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 B4 62 20 01 11 31 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 88 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C9 48 00 00 35 04 06 00 DB 14 57 4C F8 8E F8 43 FA 13 02 DB F8 24 [11:07:47]CheckFolder [11:07:47]dirname=/storage/ofd_packets [11:07:47]CheckFolder done [11:07:47]ProducePacketName [11:07:47]name=ofd_packets/00018633 [11:07:47]NVStorageSaveData ofd_packets/00018633 [11:07:47]File name is /storage/ofd_packets/00018633 [11:07:47]Write 326 bytes [11:07:47]NVStorageSaveData done [11:07:47]OFDSenderStorePacket done [11:07:47]KKMCreateOFDPacket done [11:07:47]NVStorageSaveData kkm_last_timestamp [11:07:47]File name is /storage/kkm_last_timestamp [11:07:47]Write 4 bytes [11:07:47]NVStorageSaveData done [11:07:47]ExternCall_PrintAddStr [11:07:47]wPrintStart [11:07:47]Write to MH i2c: 01 00 00 2A 28 52 [11:07:47]Write i2c OK [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: 01 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: 01 07 00 [11:07:47]MH_I2C_Read... [11:07:47]Read from MH i2c: 01 07 00 2A 28 00 00 00 00 00 FF 0F 67 [11:07:47]RasterBufferAndPrint [11:07:47]line Счет N : (3)16557 [11:07:47]line ИНН: 02508201610067 [11:07:47]line Контрольно-Кассовый Чек [11:07:47]line ПРОДАЖА [11:07:47]line Товар: 4860019001346 [11:07:47]line Вода Боржоми 0,5л ст [11:07:47]line 1.000 * 160.00 [11:07:47]line = 160.00 [11:07:47]line НДС 12% НСП 1% [11:07:47]line > о реализуемом товаре [11:07:47]line ИТОГО: 160.00 [11:07:47]line НСП 1% : 1.42 [11:07:47]line НДС 12% : 16.99 [11:07:47]line Наличными: 160.00 [11:07:47]line Безнал.: 0.00 [11:07:47]line Место: АЗС № 176 "Партнер Нефть" [11:07:47]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:07:47]line СНО: Общий режим [11:07:47]line Чек 29 22.09.2024 11:07 [11:07:47]line Смена: 180 ФФД: 1.0 [11:07:47]line ЗНМ: 0300000010 [11:07:47]line РНМ: 0000000000152968 [11:07:47]line Версия ККМ: v1.0 [11:07:47]line ФМ: 0000000000959456 [11:07:47]line ФД: 18633 [11:07:47]line ФПД: 240880410491022 [11:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110752&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18633&fm=240880410491022&tin=02508201610067®Number=0000000000152968&sum=16000 [11:07:48]line 0 [11:07:48]OFD Sender: Processing packet 18633 [packets to send 7, broken 6] [11:07:48]ProducePacketName [11:07:48]name=ofd_packets/00018633 [11:07:48]OFD Sender: To server: pG, [11:07:48]CommunicateWithHost lk.salyk.kg:30040 [11:07:48]ConnectInit lk.salyk.kg [11:07:48]written 0, free lines is 4095 [11:07:48]Connected sock=10 [11:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 B4 62 20 01 11 31 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 88 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 C9 48 00 00 35 04 06 00 DB 14 57 4C F8 8E F8 43 FA 13 02 DB F8 24 [11:07:48]Write to MH i2c: 01 00 00 52 28 7A [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: 01 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: 01 07 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 1F 0D AD [11:07:48]RasterBufferAndPrint [11:07:48]line [11:07:48]line [11:07:48]line [11:07:48]line [11:07:48]line [11:07:48]written 0, free lines is 3365 [11:07:48]MH_Cut [11:07:48]Write to MH i2c: D1 01 00 59 28 01 53 [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: D1 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: D1 01 00 [11:07:48]MH_I2C_Read... [11:07:48]Read from MH i2c: D1 01 00 59 28 00 52 [11:07:48]Write to MH i2c: 01 00 00 5A 28 82 [11:07:48]Write i2c OK [11:07:48]MH_I2C_Read... [11:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 E4 B6 47 00 8F 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 39 35 39 34 35 36 10 04 04 00 C9 48 00 00 F4 03 04 00 F0 A3 EF 66 B6 04 01 00 00 69 00 45 39 E6 F6 65 C3 [11:07:48]CommunicateWithHost err = 0 [11:07:48]CheckOFDResponse [11:07:48]1017 (14) - 77093643461234 [11:07:48]1041 (16) - 0000000000959456 [11:07:48]1040 (4) - 18633 [11:07:48]1012 (4) - 22.09.2024 04:58 [11:07:48]1206 (1) - 0 [11:07:48]OFD Sender: Remove packet 18633 [11:07:48]ProducePacketName [11:07:48]name=ofd_packets/00018633 [11:07:48]NVStorageDeleteData [11:07:49]OFD Sender: No OFD packet to send [11:07:49]*** Cut start [11:07:49]*** Partial cut [11:07:49]*** CUTSNS_PIN = 1 [11:07:49]*** CUTSNS_PIN = 0 [11:07:49]*** Brake cut motor [11:07:49]Read from MH i2c: 01 [11:07:49]MH_I2C_Read... [11:07:49]*** Stop cut motor [11:07:49]*** Cut end [11:07:49]Read from MH i2c: 01 07 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: 01 07 00 5A 28 00 00 00 00 00 FF 0F 97 [11:07:49]process_action close_receipt done [11:07:49]requested_data is exist [11:07:49]produce_requested_data [11:07:49]requested_item fm.sn is exist - process it [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 11 00 00 [11:07:49]Write to MH i2c: E2 08 00 5B 28 80 11 00 00 00 00 00 00 FD [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 17 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 17 00 5B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 56 [11:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:07:49]wFMCommunicate OK [11:07:49]requested_item fd.num is exist - process it [11:07:49]SAM_PROTO_GetFieldsCounters [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 13 00 00 [11:07:49]Write to MH i2c: E2 08 00 5C 28 80 13 00 00 00 00 00 00 00 [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:49]Read from MH i2c: E2 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 62 00 [11:07:49]MH_I2C_Read... [11:07:49]Read from MH i2c: E2 62 00 5C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C9 48 00 00 0E 04 04 00 B4 00 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 49 [11:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 C9 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:49]wFMCommunicate OK [11:07:49]SAM_PROTO_GetFieldsCounters done [11:07:49]requested_item shift.num is exist - process it [11:07:49]requested_item shift.opened is exist - process it [11:07:49]req_shift_opened [11:07:49]FM_GetShiftState [11:07:49]SAM_PROTO_GetShiftState [11:07:49]wFMCommunicate request_size=4 [11:07:49]MH_SAM_APDU [11:07:49]CAPDU: 80 13 01 00 [11:07:49]Write to MH i2c: E2 08 00 5D 28 80 13 01 00 00 00 00 00 02 [11:07:49]Write i2c OK [11:07:49]MH_I2C_Read... [11:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:50]Read from MH i2c: E2 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 0E 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: E2 0E 00 5D 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C2 [11:07:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:07:50]wFMCommunicate OK [11:07:50]SAM_PROTO_GetShiftState done [11:07:50]FM_GetShiftState done [11:07:50]req_shift_opened done [11:07:50]requested_item shift.open_date is exist - process it [11:07:50]req_shift_open_date [11:07:50]req_shift_open_date done [11:07:50]produce_requested_data done [11:07:50]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18633,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:07:50]process_action_free close_receipt [11:07:50]json_value_free [11:07:50]json_value_free done [11:07:50]process_json_proto returns [11:07:50]Send response to host [11:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18633,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:07:50]free response buf [11:07:50]execute_script done [11:07:50]execute_script returns [11:07:50]free content buf [11:07:50]Sock 9.Close socket [11:07:50]Sock 9.Thread stoped [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:25]accept exits with 7 [11:08:25]New connection [11:08:25]New thread 3066522980 created [11:08:25]Thread 3066666340 joined [11:08:25]Waiting for new connection... [11:08:25] Sock 7.Parse request [11:08:25]Sock 7.Check first char [11:08:25]Sock 7.First char is OK [11:08:25]request: POST /json_proto HTTP/1.0 [11:08:25]Method: POST [11:08:25]URL: /json_proto [11:08:25]Method is POST - this is cgi request [11:08:25]url: /json_proto [11:08:25]query_string will be loaded in cgi processing [11:08:25]execute_cgi json_proto POST (null) [11:08:25]execute_cgi path=json_proto method=POST [11:08:25]POST find Content-Length [11:08:25]Host: 172.17.62.196:8080 [11:08:25]Content-Length: 828 [11:08:25]Content-Type: application/json [11:08:25] [11:08:25]POST finish read [11:08:25]Found Content-Length = 828 [11:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16558", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:25]execute_script... [11:08: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)16558", "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 }]} ], "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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:25]POST & json_proto [11:08:25]process_json_proto [11:08:25]json parsed OK: [11:08:25]protocol is kg_v1.0 [11:08:25]action value=close_receipt [11:08:25]process_action close_receipt [11:08:25]cmd_close_receipt [11:08:25]MH_GetDate [11:08:25]Write to MH i2c: F0 00 00 5E 28 75 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: F0 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: F0 09 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: F0 09 00 5E 28 00 B0 FA EF 66 CE CC 0E 66 8B [11:08:25]GetLastDocTimeStamp 1727003272 [11:08:25]current date 1727003312 [11:08:25]FM_GetShiftState [11:08:25]SAM_PROTO_GetShiftState [11:08:25]wFMCommunicate request_size=4 [11:08:25]MH_SAM_APDU [11:08:25]CAPDU: 80 13 01 00 [11:08:25]Write to MH i2c: E2 08 00 5F 28 80 13 01 00 00 00 00 00 04 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 5F 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C4 [11:08:26]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_GetShiftState done [11:08:26]FM_GetShiftState done [11:08:26]opened in 1726963967 [11:08:26]opened+sec_in_day 1727050367 [11:08:26]quantity*price = 12500 [11:08:26]sum+1 = 12501 [11:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 30 22.09.2024 11:08 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18634 ФПД: 109621913269173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18634&fm=109621913269173&tin=02508201610067®Number=0000000000152968&sum=12500 0 [11:08:27]StoreToDocumentArchive [11:08:27]shift 180 fd 18634 [11:08:27]save to /storage/0180/doc_00018634 [11:08:27]save last doc name /storage/0180/doc_00018634 to /storage/kkm_last_doc_name [11:08:27]save OK [11:08:27]Clear old archive folders... [11:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:08:27]tlvbuf is 019D36B0 [11:08:27]SAM_PROTO_ClearQueue [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 09 00 00 [11:08:27]Write to MH i2c: E2 08 00 6C 28 80 09 00 00 00 00 00 00 06 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [11:08:27]RAPDU: 90 00 [11:08:27]wFMCommunicate OK [11:08:27]SAM_PROTO_ClearQueue done [11:08:27]KKMCreateOFDPacket [11:08:27]OFDProtocolAddRootSTLVToBuf [11:08:27]FM_MakeSignedData [11:08:27]FM_MakeSignedData [11:08:27]SAM_PROTO_SignData [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 0D 01 02 [11:08:27]Write to MH i2c: E2 08 00 6D 28 80 0D 01 02 00 00 00 00 0E [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 6D 28 00 90 00 09 [11:08:27]RAPDU: 90 00 [11:08:27]wFMCommunicate OK [11:08:27]wFMCommunicate request_size=255 [11:08:27]MH_SAM_APDU [11:08:27]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 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 1E 00 00 00 F4 03 04 00 B0 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [11:08:27]Write to MH i2c: E2 02 01 6E 28 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 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 1E 00 00 00 F4 03 04 00 B0 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 87 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 6E 28 00 90 00 0A [11:08:27]RAPDU: 90 00 [11:08:27]wFMCommunicate OK [11:08:27]wFMCommunicate request_size=43 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CA 48 00 00 35 04 06 00 63 B3 57 33 33 B5 [11:08:27]Write to MH i2c: E2 2E 00 6F 28 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CA 48 00 00 35 04 06 00 63 B3 57 33 33 B5 00 00 99 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 6F 28 00 90 00 0B [11:08:27]RAPDU: 90 00 [11:08:27]wFMCommunicate OK [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 0D 03 02 [11:08:27]Write to MH i2c: E2 08 00 70 28 80 0D 03 02 00 00 00 00 13 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 0B 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 0B 00 70 28 00 6F 0A D6 62 96 58 28 2D 90 00 08 [11:08:27]RAPDU: 6F 0A D6 62 96 58 28 2D 90 00 [11:08:27]wFMCommunicate OK [11:08:27]SAM_PROTO_SignData done [11:08:27]FM_MakeSignedData done [11:08:27]CreateOFDProtocolMessage [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 11 00 00 [11:08:27]Write to MH i2c: E2 08 00 71 28 80 11 00 00 00 00 00 00 13 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 17 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 17 00 71 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6C [11:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:08:27]wFMCommunicate OK [11:08:27]CreateOFDProtocolMessage done [11:08:27]OFDSenderStorePacket 18634 [11:08:27]StoreOFDPacket docnum=18634 [11:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 3F 4A 28 01 97 5F 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 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 1E 00 00 00 F4 03 04 00 B0 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CA 48 00 00 35 04 06 00 63 B3 57 33 33 B5 6F 0A D6 62 96 58 28 2D [11:08:27]CheckFolder [11:08:27]dirname=/storage/ofd_packets [11:08:27]CheckFolder done [11:08:27]ProducePacketName [11:08:27]name=ofd_packets/00018634 [11:08:27]NVStorageSaveData ofd_packets/00018634 [11:08:27]File name is /storage/ofd_packets/00018634 [11:08:27]Write 334 bytes [11:08:27]NVStorageSaveData done [11:08:27]OFDSenderStorePacket done [11:08:27]KKMCreateOFDPacket done [11:08:27]NVStorageSaveData kkm_last_timestamp [11:08:27]File name is /storage/kkm_last_timestamp [11:08:27]Write 4 bytes [11:08:27]NVStorageSaveData done [11:08:27]ExternCall_PrintAddStr [11:08:27]wPrintStart [11:08:27]Write to MH i2c: 01 00 00 72 28 9A [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 07 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 FF 0F AF [11:08:27]RasterBufferAndPrint [11:08:27]line Счет N : (3)16558 [11:08:27]line ИНН: 02508201610067 [11:08:27]line Контрольно-Кассовый Чек [11:08:27]line ПРОДАЖА [11:08:27]line Товар: 2000036190018 [11:08:27]line Кофе Американо XL(GABB TRADE) [11:08:27]line 1.000 * 125.00 [11:08:27]line = 125.00 [11:08:27]line НДС 12% НСП 1% [11:08:27]line > о реализуемом товаре [11:08:27]line ИТОГО: 125.00 [11:08:27]line НСП 1% : 1.11 [11:08:27]line НДС 12% : 13.27 [11:08:27]line Наличными: 0.00 [11:08:27]line Безнал.: 125.00 [11:08:27]line Место: АЗС № 176 "Партнер Нефть" [11:08:27]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:08:27]line СНО: Общий режим [11:08:27]line Чек 30 22.09.2024 11:08 [11:08:27]line Смена: 180 ФФД: 1.0 [11:08:27]line ЗНМ: 0300000010 [11:08:27]line РНМ: 0000000000152968 [11:08:27]line Версия ККМ: v1.0 [11:08:27]line Платежная система: Бакай Банк [11:08:27]line ФМ: 0000000000959456 [11:08:27]line ФД: 18634 [11:08:27]line ФПД: 109621913269173 [11:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T110832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18634&fm=109621913269173&tin=02508201610067®Number=0000000000152968&sum=12500 [11:08:27]line 0 [11:08:27]OFD Sender: Processing packet 18634 [packets to send 7, broken 6] [11:08:27]ProducePacketName [11:08:28]name=ofd_packets/00018634 [11:08:28]OFD Sender: To server: pG, [11:08:28]CommunicateWithHost lk.salyk.kg:30040 [11:08:28]ConnectInit lk.salyk.kg [11:08:28]written 0, free lines is 4095 [11:08:28]Connected sock=10 [11:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 3F 4A 28 01 97 5F 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 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 1E 00 00 00 F4 03 04 00 B0 FA EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CA 48 00 00 35 04 06 00 63 B3 57 33 33 B5 6F 0A D6 62 96 58 28 2D [11:08:28]Write to MH i2c: 01 00 00 9D 28 C5 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 07 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 E8 0C C0 [11:08:28]RasterBufferAndPrint [11:08:28]line [11:08:28]line [11:08:28]line [11:08:28]line [11:08:28]line [11:08:28]written 0, free lines is 3311 [11:08:28]MH_Cut [11:08:28]Write to MH i2c: D1 01 00 A4 28 01 9E [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: D1 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: D1 01 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: D1 01 00 A4 28 00 9D [11:08:28]Write to MH i2c: 01 00 00 A5 28 CD [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7F 7D 47 00 FB 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 39 35 39 34 35 36 10 04 04 00 CA 48 00 00 F4 03 04 00 18 A4 EF 66 B6 04 01 00 00 AB B3 F4 D6 48 08 0A 36 [11:08:28]CommunicateWithHost err = 0 [11:08:28]CheckOFDResponse [11:08:28]1017 (14) - 77093643461234 [11:08:28]1041 (16) - 0000000000959456 [11:08:28]1040 (4) - 18634 [11:08:28]1012 (4) - 22.09.2024 04:59 [11:08:28]1206 (1) - 0 [11:08:28]OFD Sender: Remove packet 18634 [11:08:28]ProducePacketName [11:08:28]name=ofd_packets/00018634 [11:08:28]NVStorageDeleteData [11:08:29]OFD Sender: No OFD packet to send [11:08:29]*** Cut start [11:08:29]*** Partial cut [11:08:29]*** CUTSNS_PIN = 1 [11:08:29]*** CUTSNS_PIN = 0 [11:08:29]*** Brake cut motor [11:08:29]Read from MH i2c: 01 [11:08:29]MH_I2C_Read... [11:08:29]*** Stop cut motor [11:08:29]*** Cut end [11:08:29]Read from MH i2c: 01 07 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: 01 07 00 A5 28 00 00 00 00 00 FF 0F E2 [11:08:29]process_action close_receipt done [11:08:29]requested_data is exist [11:08:29]produce_requested_data [11:08:29]requested_item fm.sn is exist - process it [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 11 00 00 [11:08:29]Write to MH i2c: E2 08 00 A6 28 80 11 00 00 00 00 00 00 48 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 17 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 17 00 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A1 [11:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:08:29]wFMCommunicate OK [11:08:29]requested_item fd.num is exist - process it [11:08:29]SAM_PROTO_GetFieldsCounters [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 13 00 00 [11:08:29]Write to MH i2c: E2 08 00 A7 28 80 13 00 00 00 00 00 00 4B [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 62 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 62 00 A7 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CA 48 00 00 0E 04 04 00 B4 00 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 98 [11:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CA 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:29]wFMCommunicate OK [11:08:29]SAM_PROTO_GetFieldsCounters done [11:08:29]requested_item shift.num is exist - process it [11:08:29]requested_item shift.opened is exist - process it [11:08:29]req_shift_opened [11:08:29]FM_GetShiftState [11:08:29]SAM_PROTO_GetShiftState [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 13 01 00 [11:08:29]Write to MH i2c: E2 08 00 A8 28 80 13 01 00 00 00 00 00 4D [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 0E 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 0E 00 A8 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0D [11:08:30]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:08:30]wFMCommunicate OK [11:08:30]SAM_PROTO_GetShiftState done [11:08:30]FM_GetShiftState done [11:08:30]req_shift_opened done [11:08:30]requested_item shift.open_date is exist - process it [11:08:30]req_shift_open_date [11:08:30]req_shift_open_date done [11:08:30]produce_requested_data done [11:08:30]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18634,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:08:30]process_action_free close_receipt [11:08:30]json_value_free [11:08:30]json_value_free done [11:08:30]process_json_proto returns [11:08:30]Send response to host [11:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18634,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:08:30]free response buf [11:08:30]execute_script done [11:08:30]execute_script returns [11:08:30]free content buf [11:08:30]Sock 7.Close socket [11:08:30]Sock 7.Thread stoped [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:48]accept exits with 9 [11:11:48]New connection [11:11:48]New thread 3066666340 created [11:11:48]Thread 3066522980 joined [11:11:48]Waiting for new connection... [11:11:48] Sock 9.Parse request [11:11:48]Sock 9.Check first char [11:11:48]Sock 9.First char is OK [11:11:48]request: POST /json_proto HTTP/1.0 [11:11:48]Method: POST [11:11:48]URL: /json_proto [11:11:48]Method is POST - this is cgi request [11:11:48]url: /json_proto [11:11:48]query_string will be loaded in cgi processing [11:11:48]execute_cgi json_proto POST (null) [11:11:48]execute_cgi path=json_proto method=POST [11:11:48]POST find Content-Length [11:11:48]Host: 172.17.62.196:8080 [11:11:48]Content-Length: 1947 [11:11:48]Content-Type: application/json [11:11:48] [11:11:48]POST finish read [11:11:48]Found Content-Length = 1947 [11:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16559", "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 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:48]execute_script... [11:11: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)16559", "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 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.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": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:48]POST & json_proto [11:11:48]process_json_proto [11:11:48]json parsed OK: [11:11:48]protocol is kg_v1.0 [11:11:48]action value=close_receipt [11:11:48]process_action close_receipt [11:11:48]cmd_close_receipt [11:11:48]MH_GetDate [11:11:48]Write to MH i2c: F0 00 00 A9 28 C0 [11:11:48]Write i2c OK [11:11:48]MH_I2C_Read... [11:11:48]Read from MH i2c: F0 [11:11:48]MH_I2C_Read... [11:11:48]Read from MH i2c: F0 09 00 [11:11:48]MH_I2C_Read... [11:11:48]Read from MH i2c: F0 09 00 A9 28 00 7B FB EF 66 CE CC 0E 66 A2 [11:11:48]GetLastDocTimeStamp 1727003312 [11:11:48]current date 1727003515 [11:11:48]FM_GetShiftState [11:11:48]SAM_PROTO_GetShiftState [11:11:48]wFMCommunicate request_size=4 [11:11:48]MH_SAM_APDU [11:11:48]CAPDU: 80 13 01 00 [11:11:48]Write to MH i2c: E2 08 00 AA 28 80 13 01 00 00 00 00 00 4F [11:11:48]Write i2c OK [11:11:48]MH_I2C_Read... [11:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:48]Read from MH i2c: E2 [11:11:48]MH_I2C_Read... [11:11:48]Read from MH i2c: E2 0E 00 [11:11:48]MH_I2C_Read... [11:11:48]Read from MH i2c: E2 0E 00 AA 28 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0F [11:11:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:11:48]wFMCommunicate OK [11:11:48]SAM_PROTO_GetShiftState done [11:11:48]FM_GetShiftState done [11:11:48]opened in 1726963967 [11:11:48]opened+sec_in_day 1727050367 [11:11:48]quantity*price = 12500 [11:11:48]sum+1 = 12501 [11:11:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 680.00 НСП 1% : 6.02 НДС 12% : 72.21 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 31 22.09.2024 11:11 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18635 ФПД: 162503082737784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111155&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18635&fm=162503082737784&tin=02508201610067®Number=0000000000152968&sum=68000 0 [11:11:49]StoreToDocumentArchive [11:11:49]shift 180 fd 18635 [11:11:49]save to /storage/0180/doc_00018635 [11:11:49]save last doc name /storage/0180/doc_00018635 to /storage/kkm_last_doc_name [11:11:49]save OK [11:11:49]Clear old archive folders... [11:11:49]ProcessDocumentItem done err = 0, tmpTLVsize=826 [11:11:49]tlvbuf is 01A27440 [11:11:49]SAM_PROTO_ClearQueue [11:11:49]wFMCommunicate request_size=4 [11:11:49]MH_SAM_APDU [11:11:49]CAPDU: 80 09 00 00 [11:11:49]Write to MH i2c: E2 08 00 B7 28 80 09 00 00 00 00 00 00 51 [11:11:49]Write i2c OK [11:11:49]MH_I2C_Read... [11:11:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:49]Read from MH i2c: E2 [11:11:49]MH_I2C_Read... [11:11:49]Read from MH i2c: E2 03 00 [11:11:49]MH_I2C_Read... [11:11:49]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [11:11:49]RAPDU: 90 00 [11:11:49]wFMCommunicate OK [11:11:49]SAM_PROTO_ClearQueue done [11:11:49]KKMCreateOFDPacket [11:11:49]OFDProtocolAddRootSTLVToBuf [11:11:49]FM_MakeSignedData [11:11:49]FM_MakeSignedData [11:11:49]SAM_PROTO_SignData [11:11:49]wFMCommunicate request_size=4 [11:11:49]MH_SAM_APDU [11:11:49]CAPDU: 80 0D 01 02 [11:11:49]Write to MH i2c: E2 08 00 B8 28 80 0D 01 02 00 00 00 00 59 [11:11:49]Write i2c OK [11:11:49]MH_I2C_Read... [11:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:49]Read from MH i2c: E2 [11:11:49]MH_I2C_Read... [11:11:49]Read from MH i2c: E2 03 00 [11:11:49]MH_I2C_Read... [11:11:49]Read from MH i2c: E2 03 00 B8 28 00 90 00 54 [11:11:49]RAPDU: 90 00 [11:11:49]wFMCommunicate OK [11:11:49]wFMCommunicate request_size=255 [11:11:49]MH_SAM_APDU [11:11:49]CAPDU: 80 0D 02 02 FA 03 00 3A 03 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 [11:11:50]Write to MH i2c: E2 02 01 B9 28 80 0D 02 02 FA 00 03 00 3A 03 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 00 00 87 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 B9 28 00 90 00 55 [11:11:50]RAPDU: 90 00 [11:11:50]wFMCommunicate OK [11:11:50]wFMCommunicate request_size=255 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 0D 02 02 FA 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 [11:11:50]Write to MH i2c: E2 02 01 BA 28 80 0D 02 02 FA 00 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 00 00 CD [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 BA 28 00 90 00 56 [11:11:50]RAPDU: 90 00 [11:11:50]wFMCommunicate OK [11:11:50]wFMCommunicate request_size=255 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 0D 02 02 FA 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 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 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 [11:11:50]Write to MH i2c: E2 02 01 BB 28 80 0D 02 02 FA 00 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 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 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 00 54 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 BB 28 00 90 00 57 [11:11:50]RAPDU: 90 00 [11:11:50]wFMCommunicate OK [11:11:50]wFMCommunicate request_size=85 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 0D 02 02 50 00 F4 03 04 00 7B FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CB 48 00 00 35 04 06 00 93 CB B2 85 80 78 [11:11:50]Write to MH i2c: E2 58 00 BC 28 80 0D 02 02 50 00 00 F4 03 04 00 7B FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CB 48 00 00 35 04 06 00 93 CB B2 85 80 78 00 00 CF [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:50]Read from MH i2c: E2 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 [11:11:50]MH_I2C_Read... [11:11:50]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [11:11:50]RAPDU: 90 00 [11:11:50]wFMCommunicate OK [11:11:50]wFMCommunicate request_size=4 [11:11:50]MH_SAM_APDU [11:11:50]CAPDU: 80 0D 03 02 [11:11:50]Write to MH i2c: E2 08 00 BD 28 80 0D 03 02 00 00 00 00 60 [11:11:50]Write i2c OK [11:11:50]MH_I2C_Read... [11:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0B 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0B 00 BD 28 00 9C 30 CE 24 64 C9 6B 15 90 00 CC [11:11:51]RAPDU: 9C 30 CE 24 64 C9 6B 15 90 00 [11:11:51]wFMCommunicate OK [11:11:51]SAM_PROTO_SignData done [11:11:51]FM_MakeSignedData done [11:11:51]CreateOFDProtocolMessage [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 11 00 00 [11:11:51]Write to MH i2c: E2 08 00 BE 28 80 11 00 00 00 00 00 00 60 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 BE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B9 [11:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:11:51]wFMCommunicate OK [11:11:51]CreateOFDProtocolMessage done [11:11:51]OFDSenderStorePacket 18635 [11:11:51]StoreOFDPacket docnum=18635 [11:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4E 03 00 00 BF 68 46 03 E1 A4 5A 03 01 00 03 00 3A 03 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CB 48 00 00 35 04 06 00 93 CB B2 85 80 78 9C 30 CE 24 64 C9 6B 15 [11:11:51]CheckFolder [11:11:51]dirname=/storage/ofd_packets [11:11:51]CheckFolder done [11:11:51]ProducePacketName [11:11:51]name=ofd_packets/00018635 [11:11:51]NVStorageSaveData ofd_packets/00018635 [11:11:51]File name is /storage/ofd_packets/00018635 [11:11:51]Write 876 bytes [11:11:51]NVStorageSaveData done [11:11:51]OFDSenderStorePacket done [11:11:51]KKMCreateOFDPacket done [11:11:51]NVStorageSaveData kkm_last_timestamp [11:11:51]File name is /storage/kkm_last_timestamp [11:11:51]Write 4 bytes [11:11:51]NVStorageSaveData done [11:11:51]ExternCall_PrintAddStr [11:11:51]wPrintStart [11:11:51]Write to MH i2c: 01 00 00 BF 28 E7 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 FF 0F FC [11:11:51]RasterBufferAndPrint [11:11:51]line Счет N : (3)16559 [11:11:51]line ИНН: 02508201610067 [11:11:51]line Контрольно-Кассовый Чек [11:11:51]line ПРОДАЖА [11:11:51]line Товар: 2000036190018 [11:11:51]line Кофе Американо XL(GABB TRADE) [11:11:51]line 1.000 * 125.00 [11:11:51]line = 125.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line Товар: 4870002325441 [11:11:51]line Вода ASU пит н.газ лимон ПЭТ 0,5л [11:11:51]line 1.000 * 65.00 [11:11:51]line = 65.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line Товар: 2000036240010 [11:11:51]line Кофе Латте (GABB TRADE) [11:11:51]line 1.000 * 115.00 [11:11:51]line = 115.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line Товар: 4640030091645 [11:11:51]line Сигареты ESSE Exchange M [11:11:51]line 1.000 * 150.00 [11:11:51]line = 150.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line Товар: 4700000160211 [11:11:51]line Вода Легенда 0,5л [11:11:51]line 1.000 * 40.00 [11:11:51]line = 40.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line Товар: 90162602 [11:11:51]line Энерг напиток Red bull 0,25л [11:11:51]line 1.000 * 185.00 [11:11:51]line = 185.00 [11:11:51]line НДС 12% НСП 1% [11:11:51]line > о реализуемом товаре [11:11:51]line ИТОГО: 680.00 [11:11:51]line НСП 1% : 6.02 [11:11:51]line НДС 12% : 72.21 [11:11:51]line Наличными: 680.00 [11:11:51]line Безнал.: 0.00 [11:11:51]line Место: АЗС № 176 "Партнер Нефть" [11:11:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:11:51]line СНО: Общий режим [11:11:51]line Чек 31 22.09.2024 11:11 [11:11:51]line Смена: 180 ФФД: 1.0 [11:11:51]line ЗНМ: 0300000010 [11:11:51]line РНМ: 0000000000152968 [11:11:51]line Версия ККМ: v1.0 [11:11:51]line ФМ: 0000000000959456 [11:11:51]line ФД: 18635 [11:11:51]line ФПД: 162503082737784 [11:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111155&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18635&fm=162503082737784&tin=02508201610067®Number=0000000000152968&sum=68000 [11:11:51]OFD Sender: Processing packet 18635 [packets to send 7, broken 6] [11:11:51]ProducePacketName [11:11:51]name=ofd_packets/00018635 [11:11:51]OFD Sender: To server: pG, [11:11:51]CommunicateWithHost lk.salyk.kg:30040 [11:11:51]ConnectInit lk.salyk.kg [11:11:51]line 0 [11:11:51]written 0, free lines is 4095 [11:11:51]Connected sock=7 [11:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4E 03 00 00 BF 68 46 03 E1 A4 5A 03 01 00 03 00 3A 03 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 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 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CB 48 00 00 35 04 06 00 93 CB B2 85 80 78 9C 30 CE 24 64 C9 6B 15 [11:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F0 F8 47 00 9D 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 39 35 39 34 35 36 10 04 04 00 CB 48 00 00 F4 03 04 00 E4 A4 EF 66 B6 04 01 00 00 3C 04 E4 79 8C 9C 14 8C [11:11:51]CommunicateWithHost err = 0 [11:11:51]CheckOFDResponse [11:11:51]1017 (14) - 77093643461234 [11:11:51]1041 (16) - 0000000000959456 [11:11:51]1040 (4) - 18635 [11:11:51]1012 (4) - 22.09.2024 05:02 [11:11:51]1206 (1) - 0 [11:11:51]OFD Sender: Remove packet 18635 [11:11:51]ProducePacketName [11:11:51]name=ofd_packets/00018635 [11:11:51]NVStorageDeleteData [11:11:52]Write to MH i2c: 01 00 00 07 29 30 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: 01 07 00 07 29 00 00 00 00 00 B6 0B F8 [11:11:52]RasterBufferAndPrint [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]line [11:11:52]written 0, free lines is 3010 [11:11:52]MH_Cut [11:11:52]Write to MH i2c: D1 01 00 0E 29 01 09 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 [11:11:52]MH_I2C_Read... [11:11:52]Read from MH i2c: D1 01 00 0E 29 00 08 [11:11:52]Write to MH i2c: 01 00 00 0F 29 38 [11:11:52]Write i2c OK [11:11:52]MH_I2C_Read... [11:11:52]OFD Sender: No OFD packet to send [11:11:53]*** Cut start [11:11:53]*** Partial cut [11:11:53]*** CUTSNS_PIN = 1 [11:11:53]*** CUTSNS_PIN = 0 [11:11:53]*** Brake cut motor [11:11:53]Read from MH i2c: 01 [11:11:53]MH_I2C_Read... [11:11:53]*** Stop cut motor [11:11:53]*** Cut end [11:11:53]Read from MH i2c: 01 07 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: 01 07 00 0F 29 00 00 00 00 00 FF 0F 4D [11:11:53]process_action close_receipt done [11:11:53]requested_data is exist [11:11:53]produce_requested_data [11:11:53]requested_item fm.sn is exist - process it [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 11 00 00 [11:11:53]Write to MH i2c: E2 08 00 10 29 80 11 00 00 00 00 00 00 B3 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 17 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 17 00 10 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0C [11:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:11:53]wFMCommunicate OK [11:11:53]requested_item fd.num is exist - process it [11:11:53]SAM_PROTO_GetFieldsCounters [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 13 00 00 [11:11:53]Write to MH i2c: E2 08 00 11 29 80 13 00 00 00 00 00 00 B6 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 62 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 62 00 11 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CB 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CB 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:53]wFMCommunicate OK [11:11:53]SAM_PROTO_GetFieldsCounters done [11:11:53]requested_item shift.num is exist - process it [11:11:53]requested_item shift.opened is exist - process it [11:11:53]req_shift_opened [11:11:53]FM_GetShiftState [11:11:53]SAM_PROTO_GetShiftState [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 13 01 00 [11:11:53]Write to MH i2c: E2 08 00 12 29 80 13 01 00 00 00 00 00 B8 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 0E 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 0E 00 12 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 78 [11:11:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:11:53]wFMCommunicate OK [11:11:53]SAM_PROTO_GetShiftState done [11:11:53]FM_GetShiftState done [11:11:53]req_shift_opened done [11:11:53]requested_item shift.open_date is exist - process it [11:11:53]req_shift_open_date [11:11:53]req_shift_open_date done [11:11:54]produce_requested_data done [11:11:54]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18635,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:11:54]process_action_free close_receipt [11:11:54]json_value_free [11:11:54]json_value_free done [11:11:54]process_json_proto returns [11:11:54]Send response to host [11:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18635,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:11:54]free response buf [11:11:54]execute_script done [11:11:54]execute_script returns [11:11:54]free content buf [11:11:54]Sock 9.Close socket [11:11:54]Sock 9.Thread stoped [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:49]accept exits with 10 [11:13:49]New connection [11:13:49]New thread 3066522980 created [11:13:49]Thread 3066666340 joined [11:13:49]Waiting for new connection... [11:13:49] Sock 10.Parse request [11:13:49]Sock 10.Check first char [11:13:49]Sock 10.First char is OK [11:13:49]request: POST /json_proto HTTP/1.0 [11:13:49]Method: POST [11:13:49]URL: /json_proto [11:13:49]Method is POST - this is cgi request [11:13:49]url: /json_proto [11:13:49]query_string will be loaded in cgi processing [11:13:49]execute_cgi json_proto POST (null) [11:13:49]execute_cgi path=json_proto method=POST [11:13:49]POST find Content-Length [11:13:49]Host: 172.17.62.196:8080 [11:13:49]Content-Length: 856 [11:13:49]Content-Type: application/json [11:13:49] [11:13:49]POST finish read [11:13:49]Found Content-Length = 856 [11:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16560", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:49]execute_script... [11:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16560", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:49]POST & json_proto [11:13:49]process_json_proto [11:13:49]json parsed OK: [11:13:49]protocol is kg_v1.0 [11:13:49]action value=close_receipt [11:13:49]process_action close_receipt [11:13:49]cmd_close_receipt [11:13:49]MH_GetDate [11:13:49]Write to MH i2c: F0 00 00 13 29 2B [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 09 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 09 00 13 29 00 F3 FB EF 66 CE CC 0E 66 85 [11:13:49]GetLastDocTimeStamp 1727003515 [11:13:49]current date 1727003635 [11:13:49]FM_GetShiftState [11:13:49]SAM_PROTO_GetShiftState [11:13:49]wFMCommunicate request_size=4 [11:13:49]MH_SAM_APDU [11:13:49]CAPDU: 80 13 01 00 [11:13:49]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [11:13:49]Write i2c OK [11:13:49]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 14 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7A [11:13:49]RAPDU: 09 00 01 FF 60 EF 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]opened in 1726963967 [11:13:49]opened+sec_in_day 1727050367 [11:13:49]quantity*price = 9500 [11:13:49]sum+1 = 9501 [11:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 32 22.09.2024 11:13 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18636 ФПД: 100166487601807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111355&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18636&fm=100166487601807&tin=02508201610067®Number=0000000000152968&sum=9500 0 [11:13:50]StoreToDocumentArchive [11:13:50]shift 180 fd 18636 [11:13:50]save to /storage/0180/doc_00018636 [11:13:50]save last doc name /storage/0180/doc_00018636 to /storage/kkm_last_doc_name [11:13:50]save OK [11:13:50]Clear old archive folders... [11:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=299 [11:13:50]tlvbuf is B6F0FAA0 [11:13:50]SAM_PROTO_ClearQueue [11:13:50]wFMCommunicate request_size=4 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 09 00 00 [11:13:50]Write to MH i2c: E2 08 00 21 29 80 09 00 00 00 00 00 00 BC [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [11:13:50]RAPDU: 90 00 [11:13:50]wFMCommunicate OK [11:13:50]SAM_PROTO_ClearQueue done [11:13:50]KKMCreateOFDPacket [11:13:50]OFDProtocolAddRootSTLVToBuf [11:13:50]FM_MakeSignedData [11:13:50]FM_MakeSignedData [11:13:50]SAM_PROTO_SignData [11:13:50]wFMCommunicate request_size=4 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 0D 01 02 [11:13:50]Write to MH i2c: E2 08 00 22 29 80 0D 01 02 00 00 00 00 C4 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [11:13:50]RAPDU: 90 00 [11:13:50]wFMCommunicate OK [11:13:50]wFMCommunicate request_size=255 [11:13:50]MH_SAM_APDU [11:13:50]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 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [11:13:50]Write to MH i2c: E2 02 01 23 29 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 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 0C [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [11:13:50]RAPDU: 90 00 [11:13:50]wFMCommunicate OK [11:13:50]wFMCommunicate request_size=58 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CC 48 00 00 35 04 06 00 5B 19 D3 E9 72 8F [11:13:50]Write to MH i2c: E2 3D 00 24 29 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CC 48 00 00 35 04 06 00 5B 19 D3 E9 72 8F 00 00 07 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [11:13:50]RAPDU: 90 00 [11:13:50]wFMCommunicate OK [11:13:50]wFMCommunicate request_size=4 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 0D 03 02 [11:13:50]Write to MH i2c: E2 08 00 25 29 80 0D 03 02 00 00 00 00 C9 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 0B 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 0B 00 25 29 00 5F 73 B7 7F 54 11 AA 79 90 00 5A [11:13:50]RAPDU: 5F 73 B7 7F 54 11 AA 79 90 00 [11:13:50]wFMCommunicate OK [11:13:50]SAM_PROTO_SignData done [11:13:50]FM_MakeSignedData done [11:13:50]CreateOFDProtocolMessage [11:13:50]wFMCommunicate request_size=4 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 11 00 00 [11:13:50]Write to MH i2c: E2 08 00 26 29 80 11 00 00 00 00 00 00 C9 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 17 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 17 00 26 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 22 [11:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:13:50]wFMCommunicate OK [11:13:50]CreateOFDProtocolMessage done [11:13:50]OFDSenderStorePacket 18636 [11:13:50]StoreOFDPacket docnum=18636 [11:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 0A 5D 37 01 96 65 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 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CC 48 00 00 35 04 06 00 5B 19 D3 E9 72 8F 5F 73 B7 7F 54 11 AA 79 [11:13:50]CheckFolder [11:13:50]dirname=/storage/ofd_packets [11:13:50]CheckFolder done [11:13:50]ProducePacketName [11:13:50]name=ofd_packets/00018636 [11:13:50]NVStorageSaveData ofd_packets/00018636 [11:13:50]File name is /storage/ofd_packets/00018636 [11:13:50]Write 349 bytes [11:13:50]NVStorageSaveData done [11:13:50]OFDSenderStorePacket done [11:13:50]KKMCreateOFDPacket done [11:13:50]NVStorageSaveData kkm_last_timestamp [11:13:50]File name is /storage/kkm_last_timestamp [11:13:50]Write 4 bytes [11:13:50]NVStorageSaveData done [11:13:50]ExternCall_PrintAddStr [11:13:50]wPrintStart [11:13:50]Write to MH i2c: 01 00 00 27 29 50 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 27 29 00 00 00 00 00 FF 0F 65 [11:13:50]RasterBufferAndPrint [11:13:50]line Счет N : (3)16560 [11:13:50]line ИНН: 02508201610067 [11:13:50]line Контрольно-Кассовый Чек [11:13:50]line ПРОДАЖА [11:13:50]line Товар: 4700000480364 [11:13:50]line Напиток энерг Nitro экзотик 0.45 ж/б [11:13:50]line 1.000 * 95.00 [11:13:50]line = 95.00 [11:13:50]line НДС 12% НСП 1% [11:13:50]line > о реализуемом товаре [11:13:50]line ИТОГО: 95.00 [11:13:50]line НСП 1% : 0.84 [11:13:50]line НДС 12% : 10.09 [11:13:50]line Наличными: 0.00 [11:13:50]line Безнал.: 95.00 [11:13:50]line Место: АЗС № 176 "Партнер Нефть" [11:13:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:13:50]line СНО: Общий режим [11:13:50]line Чек 32 22.09.2024 11:13 [11:13:50]line Смена: 180 ФФД: 1.0 [11:13:50]line ЗНМ: 0300000010 [11:13:50]line РНМ: 0000000000152968 [11:13:50]line Версия ККМ: v1.0 [11:13:50]line Платежная система: O! деньги [11:13:50]line ФМ: 0000000000959456 [11:13:50]line ФД: 18636 [11:13:50]line ФПД: 100166487601807 [11:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111355&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18636&fm=100166487601807&tin=02508201610067®Number=0000000000152968&sum=9500 [11:13:51]line 0 [11:13:51]OFD Sender: Processing packet 18636 [packets to send 7, broken 6] [11:13:51]ProducePacketName [11:13:51]name=ofd_packets/00018636 [11:13:51]OFD Sender: To server: pG, [11:13:51]CommunicateWithHost lk.salyk.kg:30040 [11:13:51]ConnectInit lk.salyk.kg [11:13:51]written 0, free lines is 4095 [11:13:51]Connected sock=9 [11:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 0A 5D 37 01 96 65 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 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 FB EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CC 48 00 00 35 04 06 00 5B 19 D3 E9 72 8F 5F 73 B7 7F 54 11 AA 79 [11:13:51]Write to MH i2c: 01 00 00 52 29 7B [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 F3 0C 81 [11:13:51]RasterBufferAndPrint [11:13:51]line [11:13:51]line [11:13:51]line [11:13:51]line [11:13:51]line [11:13:51]written 0, free lines is 3326 [11:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B0 18 47 00 14 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CC 48 00 00 F4 03 04 00 5B A5 EF 66 B6 04 01 00 00 73 F3 F0 96 0A 67 C8 8F [11:13:51]CommunicateWithHost err = 0 [11:13:51]CheckOFDResponse [11:13:51]1017 (14) - 77093643461234 [11:13:51]1041 (16) - 0000000000959456 [11:13:51]1040 (4) - 18636 [11:13:51]1012 (4) - 22.09.2024 05:04 [11:13:51]1206 (1) - 0 [11:13:51]OFD Sender: Remove packet 18636 [11:13:51]ProducePacketName [11:13:51]name=ofd_packets/00018636 [11:13:51]NVStorageDeleteData [11:13:51]MH_Cut [11:13:51]Write to MH i2c: D1 01 00 59 29 01 54 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: D1 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: D1 01 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: D1 01 00 59 29 00 53 [11:13:51]Write to MH i2c: 01 00 00 5A 29 83 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:52]OFD Sender: No OFD packet to send [11:13:52]*** Cut start [11:13:52]*** Partial cut [11:13:52]*** CUTSNS_PIN = 1 [11:13:52]*** CUTSNS_PIN = 0 [11:13:52]*** Brake cut motor [11:13:52]Read from MH i2c: 01 [11:13:52]MH_I2C_Read... [11:13:52]*** Stop cut motor [11:13:52]*** Cut end [11:13:52]Read from MH i2c: 01 07 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 FF 0F 98 [11:13:52]process_action close_receipt done [11:13:52]requested_data is exist [11:13:52]produce_requested_data [11:13:52]requested_item fm.sn is exist - process it [11:13:52]wFMCommunicate request_size=4 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 11 00 00 [11:13:52]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:52]Read from MH i2c: E2 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 17 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 57 [11:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:13:52]wFMCommunicate OK [11:13:52]requested_item fd.num is exist - process it [11:13:52]SAM_PROTO_GetFieldsCounters [11:13:52]wFMCommunicate request_size=4 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 13 00 00 [11:13:52]Write to MH i2c: E2 08 00 5C 29 80 13 00 00 00 00 00 00 01 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:53]Read from MH i2c: E2 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 62 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 62 00 5C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CC 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CC 48 00 00 0E 04 04 00 B4 00 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 [11:13:53]wFMCommunicate OK [11:13:53]SAM_PROTO_GetFieldsCounters done [11:13:53]requested_item shift.num is exist - process it [11:13:53]requested_item shift.opened is exist - process it [11:13:53]req_shift_opened [11:13:53]FM_GetShiftState [11:13:53]SAM_PROTO_GetShiftState [11:13:53]wFMCommunicate request_size=4 [11:13:53]MH_SAM_APDU [11:13:53]CAPDU: 80 13 01 00 [11:13:53]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:53]Read from MH i2c: E2 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C3 [11:13:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:13:53]wFMCommunicate OK [11:13:53]SAM_PROTO_GetShiftState done [11:13:53]FM_GetShiftState done [11:13:53]req_shift_opened done [11:13:53]requested_item shift.open_date is exist - process it [11:13:53]req_shift_open_date [11:13:53]req_shift_open_date done [11:13:53]produce_requested_data done [11:13:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18636,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:13:53]process_action_free close_receipt [11:13:53]json_value_free [11:13:53]json_value_free done [11:13:53]process_json_proto returns [11:13:53]Send response to host [11:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18636,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:13:53]free response buf [11:13:53]execute_script done [11:13:53]execute_script returns [11:13:53]free content buf [11:13:53]Sock 10.Close socket [11:13:53]Sock 10.Thread stoped [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:13]accept exits with 7 [11:16:13]New connection [11:16:13]New thread 3066666340 created [11:16:13]Thread 3066522980 joined [11:16:13]Waiting for new connection... [11:16:13] Sock 7.Parse request [11:16:13]Sock 7.Check first char [11:16:13]Sock 7.First char is OK [11:16:13]request: POST /json_proto HTTP/1.0 [11:16:13]Method: POST [11:16:13]URL: /json_proto [11:16:13]Method is POST - this is cgi request [11:16:13]url: /json_proto [11:16:13]query_string will be loaded in cgi processing [11:16:13]execute_cgi json_proto POST (null) [11:16:13]execute_cgi path=json_proto method=POST [11:16:13]POST find Content-Length [11:16:13]Host: 172.17.62.196:8080 [11:16:13]Content-Length: 1450 [11:16:13]Content-Type: application/json [11:16:13] [11:16:13]POST finish read [11:16:13]Found Content-Length = 1450 [11:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16561", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [11:16:13]execute_script... [11:16: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)16561", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" ] } } [11:16:13]POST & json_proto [11:16:13]process_json_proto [11:16:13]json parsed OK: [11:16:13]protocol is kg_v1.0 [11:16:13]action value=close_receipt [11:16:13]process_action close_receipt [11:16:13]cmd_close_receipt [11:16:13]MH_GetDate [11:16:13]Write to MH i2c: F0 00 00 5E 29 76 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: F0 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: F0 09 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: F0 09 00 5E 29 00 84 FC EF 66 CE CC 0E 66 62 [11:16:13]GetLastDocTimeStamp 1727003635 [11:16:13]current date 1727003780 [11:16:13]FM_GetShiftState [11:16:13]SAM_PROTO_GetShiftState [11:16:13]wFMCommunicate request_size=4 [11:16:14]MH_SAM_APDU [11:16:14]CAPDU: 80 13 01 00 [11:16:14]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:14]Read from MH i2c: E2 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C5 [11:16:14]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:16:14]wFMCommunicate OK [11:16:14]SAM_PROTO_GetShiftState done [11:16:14]FM_GetShiftState done [11:16:14]opened in 1726963967 [11:16:14]opened+sec_in_day 1727050367 [11:16:14]quantity*price = 5000 [11:16:14]sum+1 = 5001 [11:16:14]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% > о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 2.000 * 45.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 33 22.09.2024 11:16 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18637 ФПД: 114181556003373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111620&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18637&fm=114181556003373&tin=02508201610067®Number=0000000000152968&sum=20000 0 [11:16:15]StoreToDocumentArchive [11:16:15]shift 180 fd 18637 [11:16:15]save to /storage/0180/doc_00018637 [11:16:15]save last doc name /storage/0180/doc_00018637 to /storage/kkm_last_doc_name [11:16:15]save OK [11:16:15]Clear old archive folders... [11:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=609 [11:16:15]tlvbuf is 0198D8B0 [11:16:15]SAM_PROTO_ClearQueue [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 09 00 00 [11:16:15]Write to MH i2c: E2 08 00 6C 29 80 09 00 00 00 00 00 00 07 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]SAM_PROTO_ClearQueue done [11:16:15]KKMCreateOFDPacket [11:16:15]OFDProtocolAddRootSTLVToBuf [11:16:15]FM_MakeSignedData [11:16:15]FM_MakeSignedData [11:16:15]SAM_PROTO_SignData [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 01 02 [11:16:15]Write to MH i2c: E2 08 00 6D 29 80 0D 01 02 00 00 00 00 0F [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=255 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 02 02 FA 03 00 61 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 [11:16:15]Write to MH i2c: E2 02 01 6E 29 80 0D 02 02 FA 00 03 00 61 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 00 00 43 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=255 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 02 02 FA 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 [11:16:15]Write to MH i2c: E2 02 01 6F 29 80 0D 02 02 FA 00 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 00 00 F8 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=118 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 02 02 71 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 21 00 00 00 F4 03 04 00 84 FC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CD 48 00 00 35 04 06 00 67 D8 F7 15 E2 2D [11:16:15]Write to MH i2c: E2 79 00 70 29 80 0D 02 02 71 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 21 00 00 00 F4 03 04 00 84 FC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CD 48 00 00 35 04 06 00 67 D8 F7 15 E2 2D 00 00 C2 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:15]Read from MH i2c: E2 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: E2 03 00 70 29 00 90 00 0D [11:16:15]RAPDU: 90 00 [11:16:15]wFMCommunicate OK [11:16:15]wFMCommunicate request_size=4 [11:16:15]MH_SAM_APDU [11:16:15]CAPDU: 80 0D 03 02 [11:16:15]Write to MH i2c: E2 08 00 71 29 80 0D 03 02 00 00 00 00 15 [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:16]Read from MH i2c: E2 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0B 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 0B 00 71 29 00 BD B7 24 3D 15 01 23 62 90 00 86 [11:16:16]RAPDU: BD B7 24 3D 15 01 23 62 90 00 [11:16:16]wFMCommunicate OK [11:16:16]SAM_PROTO_SignData done [11:16:16]FM_MakeSignedData done [11:16:16]CreateOFDProtocolMessage [11:16:16]wFMCommunicate request_size=4 [11:16:16]MH_SAM_APDU [11:16:16]CAPDU: 80 11 00 00 [11:16:16]Write to MH i2c: E2 08 00 72 29 80 11 00 00 00 00 00 00 15 [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:16]Read from MH i2c: E2 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 17 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: E2 17 00 72 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6E [11:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:16:16]wFMCommunicate OK [11:16:16]CreateOFDProtocolMessage done [11:16:16]OFDSenderStorePacket 18637 [11:16:16]StoreOFDPacket docnum=18637 [11:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 75 02 00 00 2A 37 6D 02 4A 35 5A 03 01 00 03 00 61 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 21 00 00 00 F4 03 04 00 84 FC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CD 48 00 00 35 04 06 00 67 D8 F7 15 E2 2D BD B7 24 3D 15 01 23 62 [11:16:16]CheckFolder [11:16:16]dirname=/storage/ofd_packets [11:16:16]CheckFolder done [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00018637 [11:16:16]NVStorageSaveData ofd_packets/00018637 [11:16:16]File name is /storage/ofd_packets/00018637 [11:16:16]Write 659 bytes [11:16:16]NVStorageSaveData done [11:16:16]OFDSenderStorePacket done [11:16:16]KKMCreateOFDPacket done [11:16:16]NVStorageSaveData kkm_last_timestamp [11:16:16]File name is /storage/kkm_last_timestamp [11:16:16]Write 4 bytes [11:16:16]NVStorageSaveData done [11:16:16]ExternCall_PrintAddStr [11:16:16]wPrintStart [11:16:16]Write to MH i2c: 01 00 00 73 29 9C [11:16:16]Write i2c OK [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 [11:16:16]MH_I2C_Read... [11:16:16]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [11:16:16]RasterBufferAndPrint [11:16:16]line Счет N : (3)16561 [11:16:16]line ИНН: 02508201610067 [11:16:16]line Контрольно-Кассовый Чек [11:16:16]line ПРОДАЖА [11:16:16]line Товар: 4700003010018 [11:16:16]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [11:16:16]line 1.000 * 50.00 [11:16:16]line = 50.00 [11:16:16]line НДС 12% НСП 1% [11:16:16]line > о реализуемом товаре [11:16:16]line Товар: 4700000160358 [11:16:16]line Вода Легенда 1л [11:16:16]line 1.000 * 50.00 [11:16:16]line = 50.00 [11:16:16]line НДС 12% НСП 1% [11:16:16]line > о реализуемом товаре [11:16:16]line Товар: 4607010740733 [11:16:16]line Чипсы Чипсоны шашлык 40г [11:16:16]line 2.000 * 45.00 [11:16:16]line = 90.00 [11:16:16]line НДС 12% НСП 1% [11:16:16]line > о реализуемом товаре [11:16:16]line Товар: 46226624 [11:16:16]line Mentos ПВ Клубника 6*100*2 [11:16:16]line 1.000 * 10.00 [11:16:16]line = 10.00 [11:16:16]line НДС 12% НСП 1% [11:16:16]line > о реализуемом товаре [11:16:16]line ИТОГО: 200.00 [11:16:16]line НСП 1% : 1.77 [11:16:16]line НДС 12% : 21.24 [11:16:16]line Наличными: 200.00 [11:16:16]line Безнал.: 0.00 [11:16:16]line Место: АЗС № 176 "Партнер Нефть" [11:16:16]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:16:16]line СНО: Общий режим [11:16:16]line Чек 33 22.09.2024 11:16 [11:16:16]line Смена: 180 ФФД: 1.0 [11:16:16]line ЗНМ: 0300000010 [11:16:16]line РНМ: 0000000000152968 [11:16:16]line Версия ККМ: v1.0 [11:16:16]line ФМ: 0000000000959456 [11:16:16]line ФД: 18637 [11:16:16]line ФПД: 114181556003373 [11:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T111620&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18637&fm=114181556003373&tin=02508201610067®Number=0000000000152968&sum=20000 [11:16:16]line 0 [11:16:16]OFD Sender: Processing packet 18637 [packets to send 7, broken 6] [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00018637 [11:16:16]OFD Sender: To server: pG, [11:16:16]CommunicateWithHost lk.salyk.kg:30040 [11:16:16]ConnectInit lk.salyk.kg [11:16:16]written 0, free lines is 4095 [11:16:16]Connected sock=10 [11:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 75 02 00 00 2A 37 6D 02 4A 35 5A 03 01 00 03 00 61 02 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 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 21 00 00 00 F4 03 04 00 84 FC EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CD 48 00 00 35 04 06 00 67 D8 F7 15 E2 2D BD B7 24 3D 15 01 23 62 [11:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A8 3F 47 00 0E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CD 48 00 00 F4 03 04 00 ED A5 EF 66 B6 04 01 00 00 4D D4 15 59 F0 6C 13 21 [11:16:16]CommunicateWithHost err = 0 [11:16:16]CheckOFDResponse [11:16:16]1017 (14) - 77093643461234 [11:16:16]1041 (16) - 0000000000959456 [11:16:16]1040 (4) - 18637 [11:16:16]1012 (4) - 22.09.2024 05:06 [11:16:16]1206 (1) - 0 [11:16:16]OFD Sender: Remove packet 18637 [11:16:16]ProducePacketName [11:16:16]name=ofd_packets/00018637 [11:16:16]NVStorageDeleteData [11:16:17]Write to MH i2c: 01 00 00 AE 29 D7 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 07 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: 01 07 00 AE 29 00 00 00 00 00 38 0C 22 [11:16:17]RasterBufferAndPrint [11:16:17]line [11:16:17]line [11:16:17]line [11:16:17]line [11:16:17]line [11:16:17]written 0, free lines is 3137 [11:16:17]MH_Cut [11:16:17]Write to MH i2c: D1 01 00 B5 29 01 B0 [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: D1 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: D1 01 00 [11:16:17]MH_I2C_Read... [11:16:17]Read from MH i2c: D1 01 00 B5 29 00 AF [11:16:17]Write to MH i2c: 01 00 00 B6 29 DF [11:16:17]Write i2c OK [11:16:17]MH_I2C_Read... [11:16:17]OFD Sender: No OFD packet to send [11:16:17]*** Cut start [11:16:17]*** Partial cut [11:16:17]*** CUTSNS_PIN = 1 [11:16:17]*** CUTSNS_PIN = 0 [11:16:18]*** Brake cut motor [11:16:18]Read from MH i2c: 01 [11:16:18]MH_I2C_Read... [11:16:18]*** Stop cut motor [11:16:18]*** Cut end [11:16:18]Read from MH i2c: 01 07 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: 01 07 00 B6 29 00 00 00 00 00 FF 0F F4 [11:16:18]process_action close_receipt done [11:16:18]requested_data is exist [11:16:18]produce_requested_data [11:16:18]requested_item fm.sn is exist - process it [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 11 00 00 [11:16:18]Write to MH i2c: E2 08 00 B7 29 80 11 00 00 00 00 00 00 5A [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 17 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 17 00 B7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B3 [11:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:16:18]wFMCommunicate OK [11:16:18]requested_item fd.num is exist - process it [11:16:18]SAM_PROTO_GetFieldsCounters [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 13 00 00 [11:16:18]Write to MH i2c: E2 08 00 B8 29 80 13 00 00 00 00 00 00 5D [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 62 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 62 00 B8 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CD 48 00 00 0E 04 04 00 B4 00 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 B6 [11:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CD 48 00 00 0E 04 04 00 B4 00 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 [11:16:18]wFMCommunicate OK [11:16:18]SAM_PROTO_GetFieldsCounters done [11:16:18]requested_item shift.num is exist - process it [11:16:18]requested_item shift.opened is exist - process it [11:16:18]req_shift_opened [11:16:18]FM_GetShiftState [11:16:18]SAM_PROTO_GetShiftState [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 13 01 00 [11:16:18]Write to MH i2c: E2 08 00 B9 29 80 13 01 00 00 00 00 00 5F [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 B9 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 1F [11:16:18]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:16:18]wFMCommunicate OK [11:16:18]SAM_PROTO_GetShiftState done [11:16:18]FM_GetShiftState done [11:16:18]req_shift_opened done [11:16:18]requested_item shift.open_date is exist - process it [11:16:18]req_shift_open_date [11:16:18]req_shift_open_date done [11:16:18]produce_requested_data done [11:16:18]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18637,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:16:18]process_action_free close_receipt [11:16:18]json_value_free [11:16:18]json_value_free done [11:16:18]process_json_proto returns [11:16:18]Send response to host [11:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18637,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:16:18]free response buf [11:16:18]execute_script done [11:16:18]execute_script returns [11:16:18]free content buf [11:16:18]Sock 7.Close socket [11:16:18]Sock 7.Thread stoped [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]accept exits with 9 [11:29:02]New connection [11:29:02]New thread 3066522980 created [11:29:02]Thread 3066666340 joined [11:29:02]Waiting for new connection... [11:29:02] Sock 9.Parse request [11:29:02]Sock 9.Check first char [11:29:02]Sock 9.First char is OK [11:29:02]request: POST /json_proto HTTP/1.0 [11:29:02]Method: POST [11:29:02]URL: /json_proto [11:29:02]Method is POST - this is cgi request [11:29:02]url: /json_proto [11:29:02]query_string will be loaded in cgi processing [11:29:02]execute_cgi json_proto POST (null) [11:29:02]execute_cgi path=json_proto method=POST [11:29:02]POST find Content-Length [11:29:02]Host: 172.17.62.196:8080 [11:29:02]Content-Length: 623 [11:29:02]Content-Type: application/json [11:29:02] [11:29:02]POST finish read [11:29:02]Found Content-Length = 623 [11:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16562", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:02]execute_script... [11:29: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)16562", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:02]POST & json_proto [11:29:02]process_json_proto [11:29:02]json parsed OK: [11:29:02]protocol is kg_v1.0 [11:29:02]action value=close_receipt [11:29:02]process_action close_receipt [11:29:02]cmd_close_receipt [11:29:02]MH_GetDate [11:29:02]Write to MH i2c: F0 00 00 BA 29 D2 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 BA 29 00 85 FF EF 66 CE CC 0E 66 C2 [11:29:02]GetLastDocTimeStamp 1727003780 [11:29:02]current date 1727004549 [11:29:02]FM_GetShiftState [11:29:02]SAM_PROTO_GetShiftState [11:29:02]wFMCommunicate request_size=4 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 13 01 00 [11:29:02]Write to MH i2c: E2 08 00 BB 29 80 13 01 00 00 00 00 00 61 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 BB 29 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 21 [11:29:02]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:29:02]wFMCommunicate OK [11:29:02]SAM_PROTO_GetShiftState done [11:29:02]FM_GetShiftState done [11:29:02]opened in 1726963967 [11:29:02]opened+sec_in_day 1727050367 [11:29:02]quantity*price = 15600 [11:29:02]sum+1 = 15601 [11:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 34 22.09.2024 11:29 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18638 ФПД: 257299230749865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112909&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18638&fm=257299230749865&tin=02508201610067®Number=0000000000152968&sum=15600 0 [11:29:04]StoreToDocumentArchive [11:29:04]shift 180 fd 18638 [11:29:04]save to /storage/0180/doc_00018638 [11:29:04]save last doc name /storage/0180/doc_00018638 to /storage/kkm_last_doc_name [11:29:04]save OK [11:29:04]Clear old archive folders... [11:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:29:04]tlvbuf is B6E94A00 [11:29:04]SAM_PROTO_ClearQueue [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 09 00 00 [11:29:04]Write to MH i2c: E2 08 00 C8 29 80 09 00 00 00 00 00 00 63 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_ClearQueue done [11:29:04]KKMCreateOFDPacket [11:29:04]OFDProtocolAddRootSTLVToBuf [11:29:04]FM_MakeSignedData [11:29:04]FM_MakeSignedData [11:29:04]SAM_PROTO_SignData [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 01 02 [11:29:04]Write to MH i2c: E2 08 00 C9 29 80 0D 01 02 00 00 00 00 6B [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=255 [11:29:04]MH_SAM_APDU [11:29:04]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 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 F0 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 22 00 00 00 F4 03 04 00 85 FF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [11:29:04]Write to MH i2c: E2 02 01 CA 29 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 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 F0 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 22 00 00 00 F4 03 04 00 85 FF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 84 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=35 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CE 48 00 00 35 04 06 00 EA 03 25 3F F4 A9 [11:29:04]Write to MH i2c: E2 26 00 CB 29 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CE 48 00 00 35 04 06 00 EA 03 25 3F F4 A9 00 00 6B [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 03 02 [11:29:04]Write to MH i2c: E2 08 00 CC 29 80 0D 03 02 00 00 00 00 70 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 CC 29 00 8F 2C 18 CB 5E C1 3F E5 90 00 52 [11:29:04]RAPDU: 8F 2C 18 CB 5E C1 3F E5 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_SignData done [11:29:04]FM_MakeSignedData done [11:29:04]CreateOFDProtocolMessage [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 11 00 00 [11:29:04]Write to MH i2c: E2 08 00 CD 29 80 11 00 00 00 00 00 00 70 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 CD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C9 [11:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:29:04]wFMCommunicate OK [11:29:04]CreateOFDProtocolMessage done [11:29:04]OFDSenderStorePacket 18638 [11:29:04]StoreOFDPacket docnum=18638 [11:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 AE E8 20 01 7B DE 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 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 F0 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 22 00 00 00 F4 03 04 00 85 FF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CE 48 00 00 35 04 06 00 EA 03 25 3F F4 A9 8F 2C 18 CB 5E C1 3F E5 [11:29:04]CheckFolder [11:29:04]dirname=/storage/ofd_packets [11:29:04]CheckFolder done [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00018638 [11:29:04]NVStorageSaveData ofd_packets/00018638 [11:29:04]File name is /storage/ofd_packets/00018638 [11:29:04]Write 326 bytes [11:29:04]NVStorageSaveData done [11:29:04]OFDSenderStorePacket done [11:29:04]KKMCreateOFDPacket done [11:29:04]NVStorageSaveData kkm_last_timestamp [11:29:04]File name is /storage/kkm_last_timestamp [11:29:04]Write 4 bytes [11:29:04]NVStorageSaveData done [11:29:04]ExternCall_PrintAddStr [11:29:04]wPrintStart [11:29:04]Write to MH i2c: 01 00 00 CE 29 F7 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 CE 29 00 00 00 00 00 FF 0F 0C [11:29:04]RasterBufferAndPrint [11:29:04]line Счет N : (3)16562 [11:29:04]line ИНН: 02508201610067 [11:29:04]line Контрольно-Кассовый Чек [11:29:04]line ПРОДАЖА [11:29:04]line Товар: 48742245 [11:29:04]line Сигареты Parliament Silver Blue [11:29:04]line 1.000 * 156.00 [11:29:04]line = 156.00 [11:29:04]line НДС 12% НСП 1% [11:29:04]line > о реализуемом товаре [11:29:04]line ИТОГО: 156.00 [11:29:04]line НСП 1% : 1.38 [11:29:04]line НДС 12% : 16.57 [11:29:04]line Наличными: 156.00 [11:29:04]line Безнал.: 0.00 [11:29:04]line Место: АЗС № 176 "Партнер Нефть" [11:29:04]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:29:04]line СНО: Общий режим [11:29:04]line Чек 34 22.09.2024 11:29 [11:29:04]line Смена: 180 ФФД: 1.0 [11:29:04]line ЗНМ: 0300000010 [11:29:04]line РНМ: 0000000000152968 [11:29:04]line Версия ККМ: v1.0 [11:29:04]line ФМ: 0000000000959456 [11:29:04]line ФД: 18638 [11:29:04]line ФПД: 257299230749865 [11:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112909&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18638&fm=257299230749865&tin=02508201610067®Number=0000000000152968&sum=15600 [11:29:04]line 0 [11:29:04]OFD Sender: Processing packet 18638 [packets to send 7, broken 6] [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00018638 [11:29:04]OFD Sender: To server: pG, [11:29:04]CommunicateWithHost lk.salyk.kg:30040 [11:29:04]ConnectInit lk.salyk.kg [11:29:04]written 0, free lines is 4095 [11:29:05]Connected sock=10 [11:29:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 AE E8 20 01 7B DE 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 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 F0 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 22 00 00 00 F4 03 04 00 85 FF EF 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CE 48 00 00 35 04 06 00 EA 03 25 3F F4 A9 8F 2C 18 CB 5E C1 3F E5 [11:29:05]Write to MH i2c: 01 00 00 F7 29 20 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 F8 0C 2B [11:29:05]RasterBufferAndPrint [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]written 0, free lines is 3326 [11:29:05]MH_Cut [11:29:05]Write to MH i2c: D1 01 00 FE 29 01 F9 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 FE 29 00 F8 [11:29:05]Write to MH i2c: 01 00 00 FF 29 28 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 56 51 47 00 7C 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CE 48 00 00 F4 03 04 00 ED A8 EF 66 B6 04 01 00 00 AD 94 AC 0C D4 B6 24 80 [11:29:05]CommunicateWithHost err = 0 [11:29:05]CheckOFDResponse [11:29:05]1017 (14) - 77093643461234 [11:29:05]1041 (16) - 0000000000959456 [11:29:05]1040 (4) - 18638 [11:29:05]1012 (4) - 22.09.2024 05:19 [11:29:05]1206 (1) - 0 [11:29:05]OFD Sender: Remove packet 18638 [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00018638 [11:29:05]NVStorageDeleteData [11:29:05]OFD Sender: No OFD packet to send [11:29:06]*** Cut start [11:29:06]*** Partial cut [11:29:06]*** CUTSNS_PIN = 1 [11:29:06]*** CUTSNS_PIN = 0 [11:29:06]*** Brake cut motor [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]*** Stop cut motor [11:29:06]*** Cut end [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 FF 0F 3D [11:29:06]process_action close_receipt done [11:29:06]requested_data is exist [11:29:06]produce_requested_data [11:29:06]requested_item fm.sn is exist - process it [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 11 00 00 [11:29:06]Write to MH i2c: E2 08 00 00 2A 80 11 00 00 00 00 00 00 A4 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 00 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FD [11:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:29:06]wFMCommunicate OK [11:29:06]requested_item fd.num is exist - process it [11:29:06]SAM_PROTO_GetFieldsCounters [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 00 00 [11:29:06]Write to MH i2c: E2 08 00 01 2A 80 13 00 00 00 00 00 00 A7 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 01 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CE 48 00 00 0E 04 04 00 B4 00 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 04 [11:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CE 48 00 00 0E 04 04 00 B4 00 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 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetFieldsCounters done [11:29:06]requested_item shift.num is exist - process it [11:29:06]requested_item shift.opened is exist - process it [11:29:06]req_shift_opened [11:29:06]FM_GetShiftState [11:29:06]SAM_PROTO_GetShiftState [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 01 00 [11:29:06]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 69 [11:29:06]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetShiftState done [11:29:06]FM_GetShiftState done [11:29:06]req_shift_opened done [11:29:06]requested_item shift.open_date is exist - process it [11:29:06]req_shift_open_date [11:29:06]req_shift_open_date done [11:29:06]produce_requested_data done [11:29:06]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18638,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:29:06]process_action_free close_receipt [11:29:06]json_value_free [11:29:06]json_value_free done [11:29:06]process_json_proto returns [11:29:06]Send response to host [11:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18638,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:29:06]free response buf [11:29:06]execute_script done [11:29:06]execute_script returns [11:29:06]free content buf [11:29:06]Sock 9.Close socket [11:29:06]Sock 9.Thread stoped [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:46]accept exits with 7 [11:35:46]New connection [11:35:46]New thread 3066666340 created [11:35:46]Thread 3066522980 joined [11:35:46]Waiting for new connection... [11:35:46] Sock 7.Parse request [11:35:46]Sock 7.Check first char [11:35:46]Sock 7.First char is OK [11:35:46]request: POST /json_proto HTTP/1.0 [11:35:46]Method: POST [11:35:46]URL: /json_proto [11:35:46]Method is POST - this is cgi request [11:35:46]url: /json_proto [11:35:46]query_string will be loaded in cgi processing [11:35:46]execute_cgi json_proto POST (null) [11:35:46]execute_cgi path=json_proto method=POST [11:35:46]POST find Content-Length [11:35:46]Host: 172.17.62.196:8080 [11:35:46]Content-Length: 644 [11:35:46]Content-Type: application/json [11:35:46] [11:35:46]POST finish read [11:35:46]Found Content-Length = 644 [11:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16563", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:46]execute_script... [11:35: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)16563", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:46]POST & json_proto [11:35:46]process_json_proto [11:35:46]json parsed OK: [11:35:46]protocol is kg_v1.0 [11:35:46]action value=close_receipt [11:35:46]process_action close_receipt [11:35:46]cmd_close_receipt [11:35:46]MH_GetDate [11:35:46]Write to MH i2c: F0 00 00 03 2A 1C [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: F0 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: F0 09 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: F0 09 00 03 2A 00 19 01 F0 66 CE CC 0E 66 A3 [11:35:46]GetLastDocTimeStamp 1727004549 [11:35:46]current date 1727004953 [11:35:46]FM_GetShiftState [11:35:46]SAM_PROTO_GetShiftState [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 13 01 00 [11:35:46]Write to MH i2c: E2 08 00 04 2A 80 13 01 00 00 00 00 00 AB [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 04 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 6B [11:35:46]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetShiftState done [11:35:46]FM_GetShiftState done [11:35:46]opened in 1726963967 [11:35:46]opened+sec_in_day 1727050367 [11:35:46]quantity*price = 6000 [11:35:46]sum+1 = 6001 [11:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 35 22.09.2024 11:35 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18639 ФПД: 171168053180261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113553&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18639&fm=171168053180261&tin=02508201610067®Number=0000000000152968&sum=6000 0 [11:35:48]StoreToDocumentArchive [11:35:48]shift 180 fd 18639 [11:35:48]save to /storage/0180/doc_00018639 [11:35:48]save last doc name /storage/0180/doc_00018639 to /storage/kkm_last_doc_name [11:35:48]save OK [11:35:48]Clear old archive folders... [11:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:35:48]tlvbuf is 0198A0B0 [11:35:48]SAM_PROTO_ClearQueue [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 09 00 00 [11:35:48]Write to MH i2c: E2 08 00 11 2A 80 09 00 00 00 00 00 00 AD [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]SAM_PROTO_ClearQueue done [11:35:48]KKMCreateOFDPacket [11:35:48]OFDProtocolAddRootSTLVToBuf [11:35:48]FM_MakeSignedData [11:35:48]FM_MakeSignedData [11:35:48]SAM_PROTO_SignData [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 01 02 [11:35:48]Write to MH i2c: E2 08 00 12 2A 80 0D 01 02 00 00 00 00 B5 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]wFMCommunicate request_size=255 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 19 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [11:35:48]Write to MH i2c: E2 02 01 13 2A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 19 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 3D [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]wFMCommunicate request_size=35 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CF 48 00 00 35 04 06 00 9B AD 2B 01 B7 65 [11:35:48]Write to MH i2c: E2 26 00 14 2A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CF 48 00 00 35 04 06 00 9B AD 2B 01 B7 65 00 00 58 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [11:35:48]RAPDU: 90 00 [11:35:48]wFMCommunicate OK [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 0D 03 02 [11:35:48]Write to MH i2c: E2 08 00 15 2A 80 0D 03 02 00 00 00 00 BA [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 0B 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 0B 00 15 2A 00 08 CA 0C 37 37 00 FF 1D 90 00 23 [11:35:48]RAPDU: 08 CA 0C 37 37 00 FF 1D 90 00 [11:35:48]wFMCommunicate OK [11:35:48]SAM_PROTO_SignData done [11:35:48]FM_MakeSignedData done [11:35:48]CreateOFDProtocolMessage [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 11 00 00 [11:35:48]Write to MH i2c: E2 08 00 16 2A 80 11 00 00 00 00 00 00 BA [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 17 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 17 00 16 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [11:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:35:48]wFMCommunicate OK [11:35:48]CreateOFDProtocolMessage done [11:35:48]OFDSenderStorePacket 18639 [11:35:48]StoreOFDPacket docnum=18639 [11:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 EA 42 20 01 52 B4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 19 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CF 48 00 00 35 04 06 00 9B AD 2B 01 B7 65 08 CA 0C 37 37 00 FF 1D [11:35:48]CheckFolder [11:35:48]dirname=/storage/ofd_packets [11:35:48]CheckFolder done [11:35:48]ProducePacketName [11:35:48]name=ofd_packets/00018639 [11:35:48]NVStorageSaveData ofd_packets/00018639 [11:35:48]File name is /storage/ofd_packets/00018639 [11:35:48]Write 326 bytes [11:35:48]NVStorageSaveData done [11:35:48]OFDSenderStorePacket done [11:35:48]KKMCreateOFDPacket done [11:35:48]NVStorageSaveData kkm_last_timestamp [11:35:48]File name is /storage/kkm_last_timestamp [11:35:48]Write 4 bytes [11:35:48]NVStorageSaveData done [11:35:48]ExternCall_PrintAddStr [11:35:48]wPrintStart [11:35:48]Write to MH i2c: 01 00 00 17 2A 41 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: 01 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: 01 07 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: 01 07 00 17 2A 00 00 00 00 00 FF 0F 56 [11:35:48]RasterBufferAndPrint [11:35:48]line Счет N : (3)16563 [11:35:48]line ИНН: 02508201610067 [11:35:48]line Контрольно-Кассовый Чек [11:35:48]line ПРОДАЖА [11:35:48]line Товар: 4700000310043 [11:35:48]line Вода Жалалабат 27 1л [11:35:48]line 1.000 * 60.00 [11:35:48]line = 60.00 [11:35:48]line НДС 12% НСП 1% [11:35:48]line > о реализуемом товаре [11:35:48]line ИТОГО: 60.00 [11:35:48]line НСП 1% : 0.53 [11:35:48]line НДС 12% : 6.37 [11:35:48]line Наличными: 60.00 [11:35:48]line Безнал.: 0.00 [11:35:48]line Место: АЗС № 176 "Партнер Нефть" [11:35:48]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:35:48]line СНО: Общий режим [11:35:48]line Чек 35 22.09.2024 11:35 [11:35:48]line Смена: 180 ФФД: 1.0 [11:35:48]line ЗНМ: 0300000010 [11:35:48]line РНМ: 0000000000152968 [11:35:48]line Версия ККМ: v1.0 [11:35:48]line ФМ: 0000000000959456 [11:35:48]line ФД: 18639 [11:35:48]line ФПД: 171168053180261 [11:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113553&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18639&fm=171168053180261&tin=02508201610067®Number=0000000000152968&sum=6000 [11:35:48]line 0 [11:35:48]OFD Sender: Processing packet 18639 [packets to send 7, broken 6] [11:35:48]ProducePacketName [11:35:48]name=ofd_packets/00018639 [11:35:48]OFD Sender: To server: pG, [11:35:48]CommunicateWithHost lk.salyk.kg:30040 [11:35:48]ConnectInit lk.salyk.kg [11:35:48]written 0, free lines is 4095 [11:35:49]Connected sock=10 [11:35:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 EA 42 20 01 52 B4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 19 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CF 48 00 00 35 04 06 00 9B AD 2B 01 B7 65 08 CA 0C 37 37 00 FF 1D [11:35:49]Write to MH i2c: 01 00 00 3F 2A 69 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: 01 07 00 3F 2A 00 00 00 00 00 0F 0D 8C [11:35:49]RasterBufferAndPrint [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]line [11:35:49]written 0, free lines is 3352 [11:35:49]MH_Cut [11:35:49]Write to MH i2c: D1 01 00 46 2A 01 42 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 01 00 [11:35:49]MH_I2C_Read... [11:35:49]Read from MH i2c: D1 01 00 46 2A 00 41 [11:35:49]Write to MH i2c: 01 00 00 47 2A 71 [11:35:49]Write i2c OK [11:35:49]MH_I2C_Read... [11:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 92 55 47 00 81 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 CF 48 00 00 F4 03 04 00 81 AA EF 66 B6 04 01 00 00 4C 0F 9D 60 18 52 D6 A4 [11:35:49]CommunicateWithHost err = 0 [11:35:49]CheckOFDResponse [11:35:49]1017 (14) - 77093643461234 [11:35:49]1041 (16) - 0000000000959456 [11:35:49]1040 (4) - 18639 [11:35:49]1012 (4) - 22.09.2024 05:26 [11:35:49]1206 (1) - 0 [11:35:49]OFD Sender: Remove packet 18639 [11:35:49]ProducePacketName [11:35:49]name=ofd_packets/00018639 [11:35:49]NVStorageDeleteData [11:35:49]OFD Sender: No OFD packet to send [11:35:50]*** Cut start [11:35:50]*** Partial cut [11:35:50]*** CUTSNS_PIN = 1 [11:35:50]*** CUTSNS_PIN = 0 [11:35:50]*** Brake cut motor [11:35:50]Read from MH i2c: 01 [11:35:50]MH_I2C_Read... [11:35:50]*** Stop cut motor [11:35:50]*** Cut end [11:35:50]Read from MH i2c: 01 07 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 FF 0F 86 [11:35:50]process_action close_receipt done [11:35:50]requested_data is exist [11:35:50]produce_requested_data [11:35:50]requested_item fm.sn is exist - process it [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 11 00 00 [11:35:50]Write to MH i2c: E2 08 00 48 2A 80 11 00 00 00 00 00 00 EC [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 17 00 48 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 45 [11:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:35:50]wFMCommunicate OK [11:35:50]requested_item fd.num is exist - process it [11:35:50]SAM_PROTO_GetFieldsCounters [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 13 00 00 [11:35:50]Write to MH i2c: E2 08 00 49 2A 80 13 00 00 00 00 00 00 EF [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 62 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 62 00 49 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CF 48 00 00 0E 04 04 00 B4 00 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 50 [11:35:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 CF 48 00 00 0E 04 04 00 B4 00 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 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_GetFieldsCounters done [11:35:50]requested_item shift.num is exist - process it [11:35:50]requested_item shift.opened is exist - process it [11:35:50]req_shift_opened [11:35:50]FM_GetShiftState [11:35:50]SAM_PROTO_GetShiftState [11:35:50]wFMCommunicate request_size=4 [11:35:50]MH_SAM_APDU [11:35:50]CAPDU: 80 13 01 00 [11:35:50]Write to MH i2c: E2 08 00 4A 2A 80 13 01 00 00 00 00 00 F1 [11:35:50]Write i2c OK [11:35:50]MH_I2C_Read... [11:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:50]Read from MH i2c: E2 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0E 00 [11:35:50]MH_I2C_Read... [11:35:50]Read from MH i2c: E2 0E 00 4A 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B1 [11:35:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:35:50]wFMCommunicate OK [11:35:50]SAM_PROTO_GetShiftState done [11:35:50]FM_GetShiftState done [11:35:50]req_shift_opened done [11:35:50]requested_item shift.open_date is exist - process it [11:35:50]req_shift_open_date [11:35:50]req_shift_open_date done [11:35:50]produce_requested_data done [11:35:50]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18639,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:35:50]process_action_free close_receipt [11:35:50]json_value_free [11:35:50]json_value_free done [11:35:50]process_json_proto returns [11:35:50]Send response to host [11:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18639,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:35:50]free response buf [11:35:50]execute_script done [11:35:50]execute_script returns [11:35:50]free content buf [11:35:50]Sock 7.Close socket [11:35:50]Sock 7.Thread stoped [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:29]accept exits with 9 [11:38:29]New connection [11:38:29]New thread 3066522980 created [11:38:29]Thread 3066666340 joined [11:38:29]Waiting for new connection... [11:38:29] Sock 9.Parse request [11:38:29]Sock 9.Check first char [11:38:29]Sock 9.First char is OK [11:38:29]request: POST /json_proto HTTP/1.0 [11:38:29]Method: POST [11:38:29]URL: /json_proto [11:38:29]Method is POST - this is cgi request [11:38:29]url: /json_proto [11:38:29]query_string will be loaded in cgi processing [11:38:29]execute_cgi json_proto POST (null) [11:38:29]execute_cgi path=json_proto method=POST [11:38:29]POST find Content-Length [11:38:29]Host: 172.17.62.196:8080 [11:38:29]Content-Length: 887 [11:38:29]Content-Type: application/json [11:38:29] [11:38:29]POST finish read [11:38:29]Found Content-Length = 887 [11:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16564", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]execute_script... [11:38: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)16564", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]POST & json_proto [11:38:29]process_json_proto [11:38:29]json parsed OK: [11:38:29]protocol is kg_v1.0 [11:38:29]action value=close_receipt [11:38:29]process_action close_receipt [11:38:29]cmd_close_receipt [11:38:29]MH_GetDate [11:38:29]Write to MH i2c: F0 00 00 4B 2A 64 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 4B 2A 00 BC 01 F0 66 CE CC 0E 66 8E [11:38:29]GetLastDocTimeStamp 1727004953 [11:38:29]current date 1727005116 [11:38:29]FM_GetShiftState [11:38:29]SAM_PROTO_GetShiftState [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 13 01 00 [11:38:29]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B3 [11:38:29]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetShiftState done [11:38:29]FM_GetShiftState done [11:38:29]opened in 1726963967 [11:38:29]opened+sec_in_day 1727050367 [11:38:29]quantity*price = 11500 [11:38:29]sum+1 = 11501 [11:38:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 36 22.09.2024 11:38 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18640 ФПД: 241385064617006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113836&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18640&fm=241385064617006&tin=02508201610067®Number=0000000000152968&sum=17500 0 [11:38:30]StoreToDocumentArchive [11:38:30]shift 180 fd 18640 [11:38:30]save to /storage/0180/doc_00018640 [11:38:30]save last doc name /storage/0180/doc_00018640 to /storage/kkm_last_doc_name [11:38:30]save OK [11:38:30]Clear old archive folders... [11:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=380 [11:38:30]tlvbuf is 01983EE0 [11:38:30]SAM_PROTO_ClearQueue [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 09 00 00 [11:38:30]Write to MH i2c: E2 08 00 59 2A 80 09 00 00 00 00 00 00 F5 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_ClearQueue done [11:38:30]KKMCreateOFDPacket [11:38:30]OFDProtocolAddRootSTLVToBuf [11:38:30]FM_MakeSignedData [11:38:30]FM_MakeSignedData [11:38:30]SAM_PROTO_SignData [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 01 02 [11:38:30]Write to MH i2c: E2 08 00 5A 2A 80 0D 01 02 00 00 00 00 FD [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=255 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 [11:38:30]Write to MH i2c: E2 02 01 5B 2A 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 C4 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=139 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D0 48 00 00 35 04 06 00 DB 89 D7 07 D4 2E [11:38:30]Write to MH i2c: E2 8E 00 5C 2A 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D0 48 00 00 35 04 06 00 DB 89 D7 07 D4 2E 00 00 75 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 03 02 [11:38:30]Write to MH i2c: E2 08 00 5D 2A 80 0D 03 02 00 00 00 00 02 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 5D 2A 00 2E CC F9 18 4F 47 B8 0F 90 00 6B [11:38:30]RAPDU: 2E CC F9 18 4F 47 B8 0F 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_SignData done [11:38:30]FM_MakeSignedData done [11:38:30]CreateOFDProtocolMessage [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 11 00 00 [11:38:30]Write to MH i2c: E2 08 00 5E 2A 80 11 00 00 00 00 00 00 02 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 5E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5B [11:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:38:30]wFMCommunicate OK [11:38:30]CreateOFDProtocolMessage done [11:38:30]OFDSenderStorePacket 18640 [11:38:30]StoreOFDPacket docnum=18640 [11:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 01 00 00 55 23 88 01 F3 A5 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D0 48 00 00 35 04 06 00 DB 89 D7 07 D4 2E 2E CC F9 18 4F 47 B8 0F [11:38:30]CheckFolder [11:38:30]dirname=/storage/ofd_packets [11:38:30]CheckFolder done [11:38:30]ProducePacketName [11:38:30]name=ofd_packets/00018640 [11:38:30]NVStorageSaveData ofd_packets/00018640 [11:38:30]File name is /storage/ofd_packets/00018640 [11:38:30]Write 430 bytes [11:38:30]NVStorageSaveData done [11:38:30]OFDSenderStorePacket done [11:38:30]KKMCreateOFDPacket done [11:38:30]NVStorageSaveData kkm_last_timestamp [11:38:30]File name is /storage/kkm_last_timestamp [11:38:30]Write 4 bytes [11:38:30]NVStorageSaveData done [11:38:30]ExternCall_PrintAddStr [11:38:30]wPrintStart [11:38:30]Write to MH i2c: 01 00 00 5F 2A 89 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [11:38:30]RasterBufferAndPrint [11:38:30]line Счет N : (3)16564 [11:38:30]line ИНН: 02508201610067 [11:38:30]line Контрольно-Кассовый Чек [11:38:30]line ПРОДАЖА [11:38:30]line Товар: 2000036240010 [11:38:30]line Кофе Латте (GABB TRADE) [11:38:30]line 1.000 * 115.00 [11:38:30]line = 115.00 [11:38:30]line НДС 12% НСП 1% [11:38:30]line > о реализуемом товаре [11:38:31]line Товар: 4700000310043 [11:38:31]line Вода Жалалабат 27 1л [11:38:31]line 1.000 * 60.00 [11:38:31]line = 60.00 [11:38:31]line НДС 12% НСП 1% [11:38:31]line > о реализуемом товаре [11:38:31]line ИТОГО: 175.00 [11:38:31]line НСП 1% : 1.55 [11:38:31]line НДС 12% : 18.58 [11:38:31]line Наличными: 175.00 [11:38:31]line Безнал.: 0.00 [11:38:31]line Место: АЗС № 176 "Партнер Нефть" [11:38:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:38:31]line СНО: Общий режим [11:38:31]line Чек 36 22.09.2024 11:38 [11:38:31]line Смена: 180 ФФД: 1.0 [11:38:31]line ЗНМ: 0300000010 [11:38:31]line РНМ: 0000000000152968 [11:38:31]line Версия ККМ: v1.0 [11:38:31]line ФМ: 0000000000959456 [11:38:31]line ФД: 18640 [11:38:31]line ФПД: 241385064617006 [11:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113836&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18640&fm=241385064617006&tin=02508201610067®Number=0000000000152968&sum=17500 [11:38:31]line 0 [11:38:31]OFD Sender: Processing packet 18640 [packets to send 7, broken 6] [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00018640 [11:38:31]OFD Sender: To server: pG, [11:38:31]CommunicateWithHost lk.salyk.kg:30040 [11:38:31]ConnectInit lk.salyk.kg [11:38:31]written 0, free lines is 4095 [11:38:31]Connected sock=10 [11:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 01 00 00 55 23 88 01 F3 A5 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 01 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D0 48 00 00 35 04 06 00 DB 89 D7 07 D4 2E 2E CC F9 18 4F 47 B8 0F [11:38:31]Write to MH i2c: 01 00 00 Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B0 CA 47 00 04 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D0 48 00 00 F4 03 04 00 23 AB EF 66 B6 04 01 00 00 7A D5 C9 A9 E1 4F D8 A1 [11:38:31]CommunicateWithHost err = 0 [11:38:31]CheckOFDResponse [11:38:31]1017 (14) - 77093643461234 [11:38:31]1041 (16) - 0000000000959456 [11:38:31]1040 (4) - 18640 [11:38:31]1012 (4) - 22.09.2024 05:29 [11:38:31]1206 (1) - 0 [11:38:31]OFD Sender: Remove packet 18640 [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00018640 [11:38:31]NVStorageDeleteData [11:38:31]8D 2A B7 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 F7 0C C1 [11:38:31]RasterBufferAndPrint [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]written 0, free lines is 3328 [11:38:31]MH_Cut [11:38:31]Write to MH i2c: D1 01 00 94 2A 01 90 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 94 2A 00 8F [11:38:31]Write to MH i2c: 01 00 00 95 2A BF [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:32]OFD Sender: No OFD packet to send [11:38:32]*** Cut start [11:38:32]*** Partial cut [11:38:32]*** CUTSNS_PIN = 1 [11:38:32]*** CUTSNS_PIN = 0 [11:38:32]*** Brake cut motor [11:38:33]Read from MH i2c: 01 [11:38:33]MH_I2C_Read... [11:38:33]*** Stop cut motor [11:38:33]*** Cut end [11:38:33]Read from MH i2c: 01 07 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: 01 07 00 95 2A 00 00 00 00 00 FF 0F D4 [11:38:33]process_action close_receipt done [11:38:33]requested_data is exist [11:38:33]produce_requested_data [11:38:33]requested_item fm.sn is exist - process it [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 11 00 00 [11:38:33]Write to MH i2c: E2 08 00 96 2A 80 11 00 00 00 00 00 00 3A [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 17 00 96 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 93 [11:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:38:33]wFMCommunicate OK [11:38:33]requested_item fd.num is exist - process it [11:38:33]SAM_PROTO_GetFieldsCounters [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 00 00 [11:38:33]Write to MH i2c: E2 08 00 97 2A 80 13 00 00 00 00 00 00 3D [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 97 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D0 48 00 00 0E 04 04 00 B4 00 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 A2 [11:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D0 48 00 00 0E 04 04 00 B4 00 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 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetFieldsCounters done [11:38:33]requested_item shift.num is exist - process it [11:38:33]requested_item shift.opened is exist - process it [11:38:33]req_shift_opened [11:38:33]FM_GetShiftState [11:38:33]SAM_PROTO_GetShiftState [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 01 00 [11:38:33]Write to MH i2c: E2 08 00 98 2A 80 13 01 00 00 00 00 00 3F [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 98 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 FF [11:38:33]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetShiftState done [11:38:33]FM_GetShiftState done [11:38:33]req_shift_opened done [11:38:33]requested_item shift.open_date is exist - process it [11:38:33]req_shift_open_date [11:38:33]req_shift_open_date done [11:38:33]produce_requested_data done [11:38:33]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18640,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:38:33]process_action_free close_receipt [11:38:33]json_value_free [11:38:33]json_value_free done [11:38:33]process_json_proto returns [11:38:33]Send response to host [11:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18640,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:38:33]free response buf [11:38:33]execute_script done [11:38:33]execute_script returns [11:38:33]free content buf [11:38:33]Sock 9.Close socket [11:38:33]Sock 9.Thread stoped [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:36]accept exits with 7 [11:48:36]New connection [11:48:36]New thread 3066666340 created [11:48:36]Thread 3066522980 joined [11:48:36]Waiting for new connection... [11:48:36] Sock 7.Parse request [11:48:36]Sock 7.Check first char [11:48:36]Sock 7.First char is OK [11:48:36]request: POST /json_proto HTTP/1.0 [11:48:36]Method: POST [11:48:36]URL: /json_proto [11:48:36]Method is POST - this is cgi request [11:48:36]url: /json_proto [11:48:36]query_string will be loaded in cgi processing [11:48:36]execute_cgi json_proto POST (null) [11:48:36]execute_cgi path=json_proto method=POST [11:48:36]POST find Content-Length [11:48:36]Host: 172.17.62.196:8080 [11:48:36]Content-Length: 698 [11:48:36]Content-Type: application/json [11:48:36] [11:48:36]POST finish read [11:48:36]Found Content-Length = 698 [11:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16565", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\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" ] } } [11:48:36]execute_script... [11:48: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)16565", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\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" ] } } [11:48:36]POST & json_proto [11:48:36]process_json_proto [11:48:36]json parsed OK: [11:48:36]protocol is kg_v1.0 [11:48:36]action value=close_receipt [11:48:36]process_action close_receipt [11:48:36]cmd_close_receipt [11:48:36]MH_GetDate [11:48:36]Write to MH i2c: F0 00 00 99 2A B2 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: F0 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: F0 09 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: F0 09 00 99 2A 00 1B 04 F0 66 CE CC 0E 66 3E [11:48:36]GetLastDocTimeStamp 1727005116 [11:48:36]current date 1727005723 [11:48:36]FM_GetShiftState [11:48:36]SAM_PROTO_GetShiftState [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 13 01 00 [11:48:36]Write to MH i2c: E2 08 00 9A 2A 80 13 01 00 00 00 00 00 41 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 0E 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 0E 00 9A 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 01 [11:48:36]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_GetShiftState done [11:48:36]FM_GetShiftState done [11:48:36]opened in 1726963967 [11:48:36]opened+sec_in_day 1727050367 [11:48:36]quantity*price = 9500 [11:48:36]sum+1 = 9501 [11:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 37 22.09.2024 11:48 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18641 ФПД: 84285444323790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114843&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18641&fm=84285444323790&tin=02508201610067®Number=0000000000152968&sum=9500 0 [11:48:38]StoreToDocumentArchive [11:48:38]shift 180 fd 18641 [11:48:38]save to /storage/0180/doc_00018641 [11:48:38]save last doc name /storage/0180/doc_00018641 to /storage/kkm_last_doc_name [11:48:38]save OK [11:48:38]Clear old archive folders... [11:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:48:38]tlvbuf is 01983C60 [11:48:38]SAM_PROTO_ClearQueue [11:48:38]wFMCommunicate request_size=4 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 09 00 00 [11:48:38]Write to MH i2c: E2 08 00 A7 2A 80 09 00 00 00 00 00 00 43 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 A7 2A 00 90 00 45 [11:48:38]RAPDU: 90 00 [11:48:38]wFMCommunicate OK [11:48:38]SAM_PROTO_ClearQueue done [11:48:38]KKMCreateOFDPacket [11:48:38]OFDProtocolAddRootSTLVToBuf [11:48:38]FM_MakeSignedData [11:48:38]FM_MakeSignedData [11:48:38]SAM_PROTO_SignData [11:48:38]wFMCommunicate request_size=4 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 0D 01 02 [11:48:38]Write to MH i2c: E2 08 00 A8 2A 80 0D 01 02 00 00 00 00 4B [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [11:48:38]RAPDU: 90 00 [11:48:38]wFMCommunicate OK [11:48:38]wFMCommunicate request_size=255 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 25 00 00 00 F4 03 04 00 1B 04 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 [11:48:38]Write to MH i2c: E2 02 01 A9 2A 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 25 00 00 00 F4 03 04 00 1B 04 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 00 00 E9 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [11:48:38]RAPDU: 90 00 [11:48:38]wFMCommunicate OK [11:48:38]wFMCommunicate request_size=61 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D1 48 00 00 35 04 06 00 4C A8 3B F7 F9 CE [11:48:38]Write to MH i2c: E2 40 00 AA 2A 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D1 48 00 00 35 04 06 00 4C A8 3B F7 F9 CE 00 00 95 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [11:48:38]RAPDU: 90 00 [11:48:38]wFMCommunicate OK [11:48:38]wFMCommunicate request_size=4 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 0D 03 02 [11:48:38]Write to MH i2c: E2 08 00 AB 2A 80 0D 03 02 00 00 00 00 50 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 0B 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 0B 00 AB 2A 00 25 53 DB A2 8B CB 32 B9 90 00 87 [11:48:38]RAPDU: 25 53 DB A2 8B CB 32 B9 90 00 [11:48:38]wFMCommunicate OK [11:48:38]SAM_PROTO_SignData done [11:48:38]FM_MakeSignedData done [11:48:38]CreateOFDProtocolMessage [11:48:38]wFMCommunicate request_size=4 [11:48:38]MH_SAM_APDU [11:48:38]CAPDU: 80 11 00 00 [11:48:38]Write to MH i2c: E2 08 00 AC 2A 80 11 00 00 00 00 00 00 50 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:38]Read from MH i2c: E2 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 17 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: E2 17 00 AC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A9 [11:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:48:38]wFMCommunicate OK [11:48:38]CreateOFDProtocolMessage done [11:48:38]OFDSenderStorePacket 18641 [11:48:38]StoreOFDPacket docnum=18641 [11:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 1A F3 3A 01 86 7B 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 25 00 00 00 F4 03 04 00 1B 04 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D1 48 00 00 35 04 06 00 4C A8 3B F7 F9 CE 25 53 DB A2 8B CB 32 B9 [11:48:38]CheckFolder [11:48:38]dirname=/storage/ofd_packets [11:48:38]CheckFolder done [11:48:38]ProducePacketName [11:48:38]name=ofd_packets/00018641 [11:48:38]NVStorageSaveData ofd_packets/00018641 [11:48:38]File name is /storage/ofd_packets/00018641 [11:48:38]Write 352 bytes [11:48:38]NVStorageSaveData done [11:48:38]OFDSenderStorePacket done [11:48:38]KKMCreateOFDPacket done [11:48:38]NVStorageSaveData kkm_last_timestamp [11:48:38]File name is /storage/kkm_last_timestamp [11:48:38]Write 4 bytes [11:48:38]NVStorageSaveData done [11:48:38]ExternCall_PrintAddStr [11:48:38]wPrintStart [11:48:38]Write to MH i2c: 01 00 00 AD 2A D7 [11:48:38]Write i2c OK [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 [11:48:38]MH_I2C_Read... [11:48:38]Read from MH i2c: 01 07 00 AD 2A 00 00 00 00 00 FF 0F EC [11:48:38]RasterBufferAndPrint [11:48:38]line Счет N : (3)16565 [11:48:38]line ИНН: 02508201610067 [11:48:38]line Контрольно-Кассовый Чек [11:48:38]line ПРОДАЖА [11:48:38]line Товар: 4700003010087 [11:48:38]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [11:48:38]line 1.000 * 95.00 [11:48:38]line = 95.00 [11:48:38]line НДС 12% НСП 1% [11:48:38]line > о реализуемом товаре [11:48:38]line ИТОГО: 95.00 [11:48:38]line НСП 1% : 0.84 [11:48:38]line НДС 12% : 10.09 [11:48:38]line Наличными: 95.00 [11:48:38]line Безнал.: 0.00 [11:48:38]line Место: АЗС № 176 "Партнер Нефть" [11:48:38]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:48:38]line СНО: Общий режим [11:48:38]line Чек 37 22.09.2024 11:48 [11:48:38]line Смена: 180 ФФД: 1.0 [11:48:38]line ЗНМ: 0300000010 [11:48:38]line РНМ: 0000000000152968 [11:48:38]line Версия ККМ: v1.0 [11:48:38]line ФМ: 0000000000959456 [11:48:38]line ФД: 18641 [11:48:38]line ФПД: 84285444323790 [11:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114843&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18641&fm=84285444323790&tin=02508201610067®Number=0000000000152968&sum=9500 [11:48:39]line 0 [11:48:39]OFD Sender: Processing packet 18641 [packets to send 7, broken 6] [11:48:39]ProducePacketName [11:48:39]name=ofd_packets/00018641 [11:48:39]OFD Sender: To server: pG, [11:48:39]CommunicateWithHost lk.salyk.kg:30040 [11:48:39]ConnectInit lk.salyk.kg [11:48:39]written 0, free lines is 4095 [11:48:39]Connected sock=10 [11:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 1A F3 3A 01 86 7B 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 25 00 00 00 F4 03 04 00 1B 04 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D1 48 00 00 35 04 06 00 4C A8 3B F7 F9 CE 25 53 DB A2 8B CB 32 B9 [11:48:39]Write to MH i2c: 01 00 00 D6 2A 00 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: 01 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: 01 07 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: 01 07 00 D6 2A 00 00 00 00 00 13 0D 27 [11:48:39]RasterBufferAndPrint [11:48:39]line [11:48:39]line [11:48:39]line [11:48:39]line [11:48:39]line [11:48:39]written 0, free lines is 3353 [11:48:39]MH_Cut [11:48:39]Write to MH i2c: D1 01 00 DD 2A 01 D9 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: D1 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: D1 01 00 [11:48:39]MH_I2C_Read... [11:48:39]Read from MH i2c: D1 01 00 DD 2A 00 D8 [11:48:39]Write to MH i2c: 01 00 00 DE 2A 08 [11:48:39]Write i2c OK [11:48:39]MH_I2C_Read... [11:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 CC 26 47 00 3C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D1 48 00 00 F4 03 04 00 83 AD EF 66 B6 04 01 00 00 63 35 33 80 AF C9 A5 07 [11:48:39]CommunicateWithHost err = 0 [11:48:39]CheckOFDResponse [11:48:39]1017 (14) - 77093643461234 [11:48:39]1041 (16) - 0000000000959456 [11:48:39]1040 (4) - 18641 [11:48:39]1012 (4) - 22.09.2024 05:39 [11:48:39]1206 (1) - 0 [11:48:39]OFD Sender: Remove packet 18641 [11:48:39]ProducePacketName [11:48:39]name=ofd_packets/00018641 [11:48:39]NVStorageDeleteData [11:48:39]OFD Sender: No OFD packet to send [11:48:40]*** Cut start [11:48:40]*** Partial cut [11:48:40]*** CUTSNS_PIN = 1 [11:48:40]*** CUTSNS_PIN = 0 [11:48:40]*** Brake cut motor [11:48:40]Read from MH i2c: 01 [11:48:40]MH_I2C_Read... [11:48:40]*** Stop cut motor [11:48:40]*** Cut end [11:48:40]Read from MH i2c: 01 07 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: 01 07 00 DE 2A 00 00 00 00 00 FF 0F 1D [11:48:40]process_action close_receipt done [11:48:40]requested_data is exist [11:48:40]produce_requested_data [11:48:40]requested_item fm.sn is exist - process it [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 11 00 00 [11:48:40]Write to MH i2c: E2 08 00 DF 2A 80 11 00 00 00 00 00 00 83 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 17 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 17 00 DF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [11:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:48:40]wFMCommunicate OK [11:48:40]requested_item fd.num is exist - process it [11:48:40]SAM_PROTO_GetFieldsCounters [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 13 00 00 [11:48:40]Write to MH i2c: E2 08 00 E0 2A 80 13 00 00 00 00 00 00 86 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 62 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 62 00 E0 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D1 48 00 00 0E 04 04 00 B4 00 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 EF [11:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D1 48 00 00 0E 04 04 00 B4 00 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 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_GetFieldsCounters done [11:48:40]requested_item shift.num is exist - process it [11:48:40]requested_item shift.opened is exist - process it [11:48:40]req_shift_opened [11:48:40]FM_GetShiftState [11:48:40]SAM_PROTO_GetShiftState [11:48:40]wFMCommunicate request_size=4 [11:48:40]MH_SAM_APDU [11:48:40]CAPDU: 80 13 01 00 [11:48:40]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [11:48:40]Write i2c OK [11:48:40]MH_I2C_Read... [11:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:40]Read from MH i2c: E2 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 [11:48:40]MH_I2C_Read... [11:48:40]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 48 [11:48:40]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:48:40]wFMCommunicate OK [11:48:40]SAM_PROTO_GetShiftState done [11:48:40]FM_GetShiftState done [11:48:40]req_shift_opened done [11:48:40]requested_item shift.open_date is exist - process it [11:48:40]req_shift_open_date [11:48:40]req_shift_open_date done [11:48:40]produce_requested_data done [11:48:40]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18641,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:48:40]process_action_free close_receipt [11:48:40]json_value_free [11:48:40]json_value_free done [11:48:40]process_json_proto returns [11:48:40]Send response to host [11:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18641,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:48:40]free response buf [11:48:40]execute_script done [11:48:40]execute_script returns [11:48:40]free content buf [11:48:40]Sock 7.Close socket [11:48:40]Sock 7.Thread stoped [11:48:44]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:52:58]accept exits with 9 [11:52:58]New connection [11:52:58]New thread 3066522980 created [11:52:58]Thread 3066666340 joined [11:52:58]Waiting for new connection... [11:52:58] Sock 9.Parse request [11:52:58]Sock 9.Check first char [11:52:58]Sock 9.First char is OK [11:52:58]request: POST /json_proto HTTP/1.0 [11:52:58]Method: POST [11:52:58]URL: /json_proto [11:52:58]Method is POST - this is cgi request [11:52:58]url: /json_proto [11:52:58]query_string will be loaded in cgi processing [11:52:58]execute_cgi json_proto POST (null) [11:52:58]execute_cgi path=json_proto method=POST [11:52:58]POST find Content-Length [11:52:58]Host: 172.17.62.196:8080 [11:52:58]Content-Length: 953 [11:52:58]Content-Type: application/json [11:52:58] [11:52:58]POST finish read [11:52:58]Found Content-Length = 953 [11:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16566", "tax_sys" : 0, "items" : [ { "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:58]execute_script... [11:52: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)16566", "tax_sys" : 0, "items" : [ { "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:58]POST & json_proto [11:52:58]process_json_proto [11:52:58]json parsed OK: [11:52:58]protocol is kg_v1.0 [11:52:58]action value=close_receipt [11:52:58]process_action close_receipt [11:52:58]cmd_close_receipt [11:52:58]MH_GetDate [11:52:58]Write to MH i2c: F0 00 00 E2 2A FB [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: F0 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: F0 09 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: F0 09 00 E2 2A 00 21 05 F0 66 CE CC 0E 66 8E [11:52:58]GetLastDocTimeStamp 1727005723 [11:52:58]current date 1727005985 [11:52:58]FM_GetShiftState [11:52:58]SAM_PROTO_GetShiftState [11:52:58]wFMCommunicate request_size=4 [11:52:58]MH_SAM_APDU [11:52:58]CAPDU: 80 13 01 00 [11:52:58]Write to MH i2c: E2 08 00 E3 2A 80 13 01 00 00 00 00 00 8A [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:58]Read from MH i2c: E2 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 0E 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: E2 0E 00 E3 2A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4A [11:52:58]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:52:58]wFMCommunicate OK [11:52:58]SAM_PROTO_GetShiftState done [11:52:58]FM_GetShiftState done [11:52:58]opened in 1726963967 [11:52:58]opened+sec_in_day 1727050367 [11:52:58]quantity*price = 12500 [11:52:58]sum+1 = 12501 [11:52:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 38 22.09.2024 11:53 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18642 ФПД: 151739856812530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115305&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18642&fm=151739856812530&tin=02508201610067®Number=0000000000152968&sum=25500 0 [11:52:59]StoreToDocumentArchive [11:52:59]shift 180 fd 18642 [11:52:59]save to /storage/0180/doc_00018642 [11:52:59]save last doc name /storage/0180/doc_00018642 to /storage/kkm_last_doc_name [11:52:59]save OK [11:52:59]Clear old archive folders... [11:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=396 [11:52:59]tlvbuf is 019D2E00 [11:52:59]SAM_PROTO_ClearQueue [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 09 00 00 [11:52:59]Write to MH i2c: E2 08 00 F0 2A 80 09 00 00 00 00 00 00 8C [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_ClearQueue done [11:52:59]KKMCreateOFDPacket [11:52:59]OFDProtocolAddRootSTLVToBuf [11:52:59]FM_MakeSignedData [11:52:59]FM_MakeSignedData [11:52:59]SAM_PROTO_SignData [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 01 02 [11:52:59]Write to MH i2c: E2 08 00 F1 2A 80 0D 01 02 00 00 00 00 94 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=255 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF [11:52:59]Write to MH i2c: E2 02 01 F2 2A 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 5F [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=155 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 21 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D2 48 00 00 35 04 06 00 8A 01 B0 43 79 F2 [11:52:59]Write to MH i2c: E2 9E 00 F3 2A 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 21 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D2 48 00 00 35 04 06 00 8A 01 B0 43 79 F2 00 00 E0 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [11:52:59]RAPDU: 90 00 [11:52:59]wFMCommunicate OK [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 0D 03 02 [11:52:59]Write to MH i2c: E2 08 00 F4 2A 80 0D 03 02 00 00 00 00 99 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0B 00 F4 2A 00 2F 09 25 78 71 BE 4C F1 90 00 DB [11:52:59]RAPDU: 2F 09 25 78 71 BE 4C F1 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_SignData done [11:52:59]FM_MakeSignedData done [11:52:59]CreateOFDProtocolMessage [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 11 00 00 [11:52:59]Write to MH i2c: E2 08 00 F5 2A 80 11 00 00 00 00 00 00 99 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 17 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 17 00 F5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F2 [11:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:53:00]wFMCommunicate OK [11:53:00]CreateOFDProtocolMessage done [11:53:00]OFDSenderStorePacket 18642 [11:53:00]StoreOFDPacket docnum=18642 [11:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 E8 A7 98 01 91 CD 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 21 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D2 48 00 00 35 04 06 00 8A 01 B0 43 79 F2 2F 09 25 78 71 BE 4C F1 [11:53:00]CheckFolder [11:53:00]dirname=/storage/ofd_packets [11:53:00]CheckFolder done [11:53:00]ProducePacketName [11:53:00]name=ofd_packets/00018642 [11:53:00]NVStorageSaveData ofd_packets/00018642 [11:53:00]File name is /storage/ofd_packets/00018642 [11:53:00]Write 446 bytes [11:53:00]NVStorageSaveData done [11:53:00]OFDSenderStorePacket done [11:53:00]KKMCreateOFDPacket done [11:53:00]NVStorageSaveData kkm_last_timestamp [11:53:00]File name is /storage/kkm_last_timestamp [11:53:00]Write 4 bytes [11:53:00]NVStorageSaveData done [11:53:00]ExternCall_PrintAddStr [11:53:00]wPrintStart [11:53:00]Write to MH i2c: 01 00 00 F6 2A 20 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]OFD Sender: Processing packet 18642 [packets to send 7, broken 6] [11:53:00]ProducePacketName [11:53:00]name=ofd_packets/00018642 [11:53:00]OFD Sender: To server: pG, [11:53:00]CommunicateWithHost lk.salyk.kg:30040 [11:53:00]ConnectInit lk.salyk.kg [11:53:00]Read from MH i2c: 01 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 F6 2A 00 00 00 00 00 FF 0F 35 [11:53:00]RasterBufferAndPrint [11:53:00]line Счет N : (3)16566 [11:53:00]line ИНН: 02508201610067 [11:53:00]line Контрольно-Кассовый Чек [11:53:00]line ПРОДАЖА [11:53:00]line Товар: 4870003982421 [11:53:00]line Пиво Белый Медведь светлое 0,5л [11:53:00]line 1.000 * 125.00 [11:53:00]line = 125.00 [11:53:00]line НДС 12% НСП 1% [11:53:00]line > о реализуемом товаре [11:53:00]line Товар: 4620006996716 [11:53:00]line Водка Талка 0,1л [11:53:00]line 1.000 * 130.00 [11:53:00]line = 130.00 [11:53:00]line НДС 12% НСП 1% [11:53:00]line > о реализуемом товаре [11:53:00]line ИТОГО: 255.00 [11:53:00]line НСП 1% : 2.26 [11:53:00]line НДС 12% : 27.07 [11:53:00]line Наличными: 255.00 [11:53:00]line Безнал.: 0.00 [11:53:00]line Место: АЗС № 176 "Партнер Нефть" [11:53:00]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:53:00]line СНО: Общий режим [11:53:00]line Чек 38 22.09.2024 11:53 [11:53:00]line Смена: 180 ФФД: 1.0 [11:53:00]line ЗНМ: 0300000010 [11:53:00]line РНМ: 0000000000152968 [11:53:00]line Версия ККМ: v1.0 [11:53:00]line ФМ: 0000000000959456 [11:53:00]line ФД: 18642 [11:53:00]line ФПД: 151739856812530 [11:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115305&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18642&fm=151739856812530&tin=02508201610067®Number=0000000000152968&sum=25500 [11:53:00]line 0 [11:53:00]written 0, free lines is 4095 [11:53:00]Connected sock=10 [11:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 E8 A7 98 01 91 CD 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 21 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D2 48 00 00 35 04 06 00 8A 01 B0 43 79 F2 2F 09 25 78 71 BE 4C F1 [11:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 2E 38 47 00 D4 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D2 48 00 00 F4 03 04 00 89 AE EF 66 B6 04 01 00 00 E8 E1 7D CF 24 0E 26 C9 [11:53:00]CommunicateWithHost err = 0 [11:53:00]CheckOFDResponse [11:53:00]1017 (14) - 77093643461234 [11:53:00]1041 (16) - 0000000000959456 [11:53:00]1040 (4) - 18642 [11:53:00]1012 (4) - 22.09.2024 05:43 [11:53:00]1206 (1) - 0 [11:53:00]OFD Sender: Remove packet 18642 [11:53:00]ProducePacketName [11:53:00]name=ofd_packets/00018642 [11:53:00]NVStorageDeleteData [11:53:00]Write to MH i2c: 01 00 00 25 2B 50 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: 01 07 00 25 2B 00 00 00 00 00 BA 0C 1D [11:53:00]RasterBufferAndPrint [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]line [11:53:00]written 0, free lines is 3266 [11:53:00]MH_Cut [11:53:00]Write to MH i2c: D1 01 00 2C 2B 01 29 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 01 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: D1 01 00 2C 2B 00 28 [11:53:00]Write to MH i2c: 01 00 00 2D 2B 58 [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:01]OFD Sender: No OFD packet to send [11:53:01]*** Cut start [11:53:01]*** Partial cut [11:53:01]*** CUTSNS_PIN = 1 [11:53:01]*** CUTSNS_PIN = 0 [11:53:01]*** Brake cut motor [11:53:02]Read from MH i2c: 01 [11:53:02]MH_I2C_Read... [11:53:02]*** Stop cut motor [11:53:02]*** Cut end [11:53:02]Read from MH i2c: 01 07 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 07 00 2D 2B 00 00 00 00 00 FF 0F 6D [11:53:02]process_action close_receipt done [11:53:02]requested_data is exist [11:53:02]produce_requested_data [11:53:02]requested_item fm.sn is exist - process it [11:53:02]wFMCommunicate request_size=4 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 11 00 00 [11:53:02]Write to MH i2c: E2 08 00 2E 2B 80 11 00 00 00 00 00 00 D3 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 2E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2C [11:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:53:02]wFMCommunicate OK [11:53:02]requested_item fd.num is exist - process it [11:53:02]SAM_PROTO_GetFieldsCounters [11:53:02]wFMCommunicate request_size=4 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 13 00 00 [11:53:02]Write to MH i2c: E2 08 00 2F 2B 80 13 00 00 00 00 00 00 D6 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 62 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 62 00 2F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D2 48 00 00 0E 04 04 00 B4 00 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 43 [11:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D2 48 00 00 0E 04 04 00 B4 00 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 [11:53:02]wFMCommunicate OK [11:53:02]SAM_PROTO_GetFieldsCounters done [11:53:02]requested_item shift.num is exist - process it [11:53:02]requested_item shift.opened is exist - process it [11:53:02]req_shift_opened [11:53:02]FM_GetShiftState [11:53:02]SAM_PROTO_GetShiftState [11:53:02]wFMCommunicate request_size=4 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 13 01 00 [11:53:02]Write to MH i2c: E2 08 00 30 2B 80 13 01 00 00 00 00 00 D8 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 0E 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 0E 00 30 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 98 [11:53:02]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:53:02]wFMCommunicate OK [11:53:02]SAM_PROTO_GetShiftState done [11:53:02]FM_GetShiftState done [11:53:02]req_shift_opened done [11:53:02]requested_item shift.open_date is exist - process it [11:53:02]req_shift_open_date [11:53:02]req_shift_open_date done [11:53:02]produce_requested_data done [11:53:02]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18642,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:53:02]process_action_free close_receipt [11:53:02]json_value_free [11:53:02]json_value_free done [11:53:02]process_json_proto returns [11:53:02]Send response to host [11:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18642,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:53:02]free response buf [11:53:02]execute_script done [11:53:02]execute_script returns [11:53:02]free content buf [11:53:02]Sock 9.Close socket [11:53:02]Sock 9.Thread stoped [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:09]accept exits with 7 [11:56:09]New connection [11:56:09]New thread 3066666340 created [11:56:09]Thread 3066522980 joined [11:56:09]Waiting for new connection... [11:56:09] Sock 7.Parse request [11:56:09]Sock 7.Check first char [11:56:09]Sock 7.First char is OK [11:56:09]request: POST /json_proto HTTP/1.0 [11:56:09]Method: POST [11:56:09]URL: /json_proto [11:56:09]Method is POST - this is cgi request [11:56:09]url: /json_proto [11:56:09]query_string will be loaded in cgi processing [11:56:09]execute_cgi json_proto POST (null) [11:56:09]execute_cgi path=json_proto method=POST [11:56:09]POST find Content-Length [11:56:09]Host: 172.17.62.196:8080 [11:56:09]Content-Length: 891 [11:56:09]Content-Type: application/json [11:56:09] [11:56:09]POST finish read [11:56:09]Found Content-Length = 891 [11:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16567", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:09]execute_script... [11:56:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16567", "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" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:09]POST & json_proto [11:56:09]process_json_proto [11:56:09]json parsed OK: [11:56:09]protocol is kg_v1.0 [11:56:09]action value=close_receipt [11:56:09]process_action close_receipt [11:56:09]cmd_close_receipt [11:56:09]MH_GetDate [11:56:09]Write to MH i2c: F0 00 00 31 2B 4B [11:56:09]Write i2c OK [11:56:09]MH_I2C_Read... [11:56:09]Read from MH i2c: F0 [11:56:09]MH_I2C_Read... [11:56:09]Read from MH i2c: F0 09 00 [11:56:09]MH_I2C_Read... [11:56:09]Read from MH i2c: F0 09 00 31 2B 00 E0 05 F0 66 CE CC 0E 66 9D [11:56:09]GetLastDocTimeStamp 1727005985 [11:56:09]current date 1727006176 [11:56:09]FM_GetShiftState [11:56:09]SAM_PROTO_GetShiftState [11:56:09]wFMCommunicate request_size=4 [11:56:09]MH_SAM_APDU [11:56:09]CAPDU: 80 13 01 00 [11:56:09]Write to MH i2c: E2 08 00 32 2B 80 13 01 00 00 00 00 00 DA [11:56:09]Write i2c OK [11:56:09]MH_I2C_Read... [11:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:09]Read from MH i2c: E2 [11:56:09]MH_I2C_Read... [11:56:09]Read from MH i2c: E2 0E 00 [11:56:09]MH_I2C_Read... [11:56:09]Read from MH i2c: E2 0E 00 32 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9A [11:56:09]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:56:09]wFMCommunicate OK [11:56:09]SAM_PROTO_GetShiftState done [11:56:09]FM_GetShiftState done [11:56:09]opened in 1726963967 [11:56:09]opened+sec_in_day 1727050367 [11:56:09]quantity*price = 10500 [11:56:09]sum+1 = 10501 [11:56:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 39 22.09.2024 11:56 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18643 ФПД: 163623234357019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115616&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18643&fm=163623234357019&tin=02508201610067®Number=0000000000152968&sum=22000 0 [11:56:10]StoreToDocumentArchive [11:56:10]shift 180 fd 18643 [11:56:10]save to /storage/0180/doc_00018643 [11:56:10]save last doc name /storage/0180/doc_00018643 to /storage/kkm_last_doc_name [11:56:10]save OK [11:56:10]Clear old archive folders... [11:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=386 [11:56:10]tlvbuf is B6D62770 [11:56:10]SAM_PROTO_ClearQueue [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 09 00 00 [11:56:10]Write to MH i2c: E2 08 00 3F 2B 80 09 00 00 00 00 00 00 DC [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [11:56:10]RAPDU: 90 00 [11:56:10]wFMCommunicate OK [11:56:10]SAM_PROTO_ClearQueue done [11:56:10]KKMCreateOFDPacket [11:56:10]OFDProtocolAddRootSTLVToBuf [11:56:10]FM_MakeSignedData [11:56:10]FM_MakeSignedData [11:56:10]SAM_PROTO_SignData [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 0D 01 02 [11:56:10]Write to MH i2c: E2 08 00 40 2B 80 0D 01 02 00 00 00 00 E4 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [11:56:10]RAPDU: 90 00 [11:56:10]wFMCommunicate OK [11:56:10]wFMCommunicate request_size=255 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 0D 02 02 FA 03 00 82 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 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [11:56:10]Write to MH i2c: E2 02 01 41 2B 80 0D 02 02 FA 00 03 00 82 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 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 B8 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [11:56:10]RAPDU: 90 00 [11:56:10]wFMCommunicate OK [11:56:10]wFMCommunicate request_size=145 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 0D 02 02 8C 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 E0 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D3 48 00 00 35 04 06 00 94 D0 80 C2 C7 1B [11:56:10]Write to MH i2c: E2 94 00 42 2B 80 0D 02 02 8C 00 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 E0 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D3 48 00 00 35 04 06 00 94 D0 80 C2 C7 1B 00 00 28 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [11:56:10]RAPDU: 90 00 [11:56:10]wFMCommunicate OK [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 0D 03 02 [11:56:10]Write to MH i2c: E2 08 00 43 2B 80 0D 03 02 00 00 00 00 E9 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:10]Read from MH i2c: E2 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 0B 00 [11:56:10]MH_I2C_Read... [11:56:10]Read from MH i2c: E2 0B 00 43 2B 00 5F 95 5F 78 ED DC C3 98 90 00 D9 [11:56:10]RAPDU: 5F 95 5F 78 ED DC C3 98 90 00 [11:56:10]wFMCommunicate OK [11:56:10]SAM_PROTO_SignData done [11:56:10]FM_MakeSignedData done [11:56:10]CreateOFDProtocolMessage [11:56:10]wFMCommunicate request_size=4 [11:56:10]MH_SAM_APDU [11:56:10]CAPDU: 80 11 00 00 [11:56:10]Write to MH i2c: E2 08 00 44 2B 80 11 00 00 00 00 00 00 E9 [11:56:10]Write i2c OK [11:56:10]MH_I2C_Read... [11:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:11]Read from MH i2c: E2 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: E2 17 00 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: E2 17 00 44 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 42 [11:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:56:11]wFMCommunicate OK [11:56:11]CreateOFDProtocolMessage done [11:56:11]OFDSenderStorePacket 18643 [11:56:11]StoreOFDPacket docnum=18643 [11:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 96 01 00 00 D3 C3 8E 01 16 0C 5A 03 01 00 03 00 82 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 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 E0 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D3 48 00 00 35 04 06 00 94 D0 80 C2 C7 1B 5F 95 5F 78 ED DC C3 98 [11:56:11]CheckFolder [11:56:11]dirname=/storage/ofd_packets [11:56:11]CheckFolder done [11:56:11]ProducePacketName [11:56:11]name=ofd_packets/00018643 [11:56:11]NVStorageSaveData ofd_packets/00018643 [11:56:11]File name is /storage/ofd_packets/00018643 [11:56:11]Write 436 bytes [11:56:11]NVStorageSaveData done [11:56:11]OFDSenderStorePacket done [11:56:11]KKMCreateOFDPacket done [11:56:11]NVStorageSaveData kkm_last_timestamp [11:56:11]File name is /storage/kkm_last_timestamp [11:56:11]Write 4 bytes [11:56:11]NVStorageSaveData done [11:56:11]ExternCall_PrintAddStr [11:56:11]wPrintStart [11:56:11]Write to MH i2c: 01 00 00 45 2B 70 [11:56:11]Write i2c OK [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 07 00 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 07 00 45 2B 00 00 00 00 00 FF 0F 85 [11:56:11]RasterBufferAndPrint [11:56:11]line Счет N : (3)16567 [11:56:11]line ИНН: 02508201610067 [11:56:11]line Контрольно-Кассовый Чек [11:56:11]line ПРОДАЖА [11:56:11]line Товар: 2000034730018 [11:56:11]line Кофе Американо (GABB TRADE) [11:56:11]line 1.000 * 105.00 [11:56:11]line = 105.00 [11:56:11]line НДС 12% НСП 1% [11:56:11]line > о реализуемом товаре [11:56:11]line Товар: 2000036240010 [11:56:11]line Кофе Латте (GABB TRADE) [11:56:11]line 1.000 * 115.00 [11:56:11]line = 115.00 [11:56:11]line НДС 12% НСП 1% [11:56:11]line > о реализуемом товаре [11:56:11]line ИТОГО: 220.00 [11:56:11]line НСП 1% : 1.95 [11:56:11]line НДС 12% : 23.36 [11:56:11]line Наличными: 220.00 [11:56:11]line Безнал.: 0.00 [11:56:11]line Место: АЗС № 176 "Партнер Нефть" [11:56:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:56:11]line СНО: Общий режим [11:56:11]line Чек 39 22.09.2024 11:56 [11:56:11]line Смена: 180 ФФД: 1.0 [11:56:11]line ЗНМ: 0300000010 [11:56:11]line РНМ: 0000000000152968 [11:56:11]line Версия ККМ: v1.0 [11:56:11]line ФМ: 0000000000959456 [11:56:11]line ФД: 18643 [11:56:11]line ФПД: 163623234357019 [11:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T115616&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18643&fm=163623234357019&tin=02508201610067®Number=0000000000152968&sum=22000 [11:56:11]line 0 [11:56:11]OFD Sender: Processing packet 18643 [packets to send 7, broken 6] [11:56:11]ProducePacketName [11:56:11]name=ofd_packets/00018643 [11:56:11]OFD Sender: To server: pG, [11:56:11]CommunicateWithHost lk.salyk.kg:30040 [11:56:11]ConnectInit lk.salyk.kg [11:56:11]written 0, free lines is 4095 [11:56:11]Connected sock=10 [11:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 96 01 00 00 D3 C3 8E 01 16 0C 5A 03 01 00 03 00 82 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 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 E0 05 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D3 48 00 00 35 04 06 00 94 D0 80 C2 C7 1B 5F 95 5F 78 ED DC C3 98 [11:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C1 B7 47 00 DF A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D3 48 00 00 F4 03 04 00 48 AF EF 66 B6 04 01 00 00 C6 D2 5C 84 18 03 36 AA [11:56:11]CommunicateWithHost err = 0 [11:56:11]CheckOFDResponse [11:56:11]1017 (14) - 77093643461234 [11:56:11]1041 (16) - 0000000000959456 [11:56:11]1040 (4) - 18643 [11:56:11]1012 (4) - 22.09.2024 05:46 [11:56:11]1206 (1) - 0 [11:56:11]OFD Sender: Remove packet 18643 [11:56:11]ProducePacketName [11:56:11]name=ofd_packets/00018643 [11:56:11]NVStorageDeleteData [11:56:11]Write to MH i2c: 01 00 00 74 2B 9F [11:56:11]Write i2c OK [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 07 00 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: 01 07 00 74 2B 00 00 00 00 00 D2 0C 84 [11:56:11]RasterBufferAndPrint [11:56:11]line [11:56:11]line [11:56:11]line [11:56:11]line [11:56:11]line [11:56:11]written 0, free lines is 3291 [11:56:11]MH_Cut [11:56:11]Write to MH i2c: D1 01 00 7B 2B 01 78 [11:56:11]Write i2c OK [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: D1 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: D1 01 00 [11:56:11]MH_I2C_Read... [11:56:11]Read from MH i2c: D1 01 00 7B 2B 00 77 [11:56:11]Write to MH i2c: 01 00 00 7C 2B A7 [11:56:11]Write i2c OK [11:56:11]MH_I2C_Read... [11:56:12]OFD Sender: No OFD packet to send [11:56:12]*** Cut start [11:56:12]*** Partial cut [11:56:12]*** CUTSNS_PIN = 1 [11:56:12]*** CUTSNS_PIN = 0 [11:56:12]*** Brake cut motor [11:56:13]Read from MH i2c: 01 [11:56:13]MH_I2C_Read... [11:56:13]*** Stop cut motor [11:56:13]*** Cut end [11:56:13]Read from MH i2c: 01 07 00 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: 01 07 00 7C 2B 00 00 00 00 00 FF 0F BC [11:56:13]process_action close_receipt done [11:56:13]requested_data is exist [11:56:13]produce_requested_data [11:56:13]requested_item fm.sn is exist - process it [11:56:13]wFMCommunicate request_size=4 [11:56:13]MH_SAM_APDU [11:56:13]CAPDU: 80 11 00 00 [11:56:13]Write to MH i2c: E2 08 00 7D 2B 80 11 00 00 00 00 00 00 22 [11:56:13]Write i2c OK [11:56:13]MH_I2C_Read... [11:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:13]Read from MH i2c: E2 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 17 00 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 17 00 7D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7B [11:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:56:13]wFMCommunicate OK [11:56:13]requested_item fd.num is exist - process it [11:56:13]SAM_PROTO_GetFieldsCounters [11:56:13]wFMCommunicate request_size=4 [11:56:13]MH_SAM_APDU [11:56:13]CAPDU: 80 13 00 00 [11:56:13]Write to MH i2c: E2 08 00 7E 2B 80 13 00 00 00 00 00 00 25 [11:56:13]Write i2c OK [11:56:13]MH_I2C_Read... [11:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:13]Read from MH i2c: E2 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 62 00 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 62 00 7E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D3 48 00 00 0E 04 04 00 B4 00 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 96 [11:56:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D3 48 00 00 0E 04 04 00 B4 00 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 [11:56:13]wFMCommunicate OK [11:56:13]SAM_PROTO_GetFieldsCounters done [11:56:13]requested_item shift.num is exist - process it [11:56:13]requested_item shift.opened is exist - process it [11:56:13]req_shift_opened [11:56:13]FM_GetShiftState [11:56:13]SAM_PROTO_GetShiftState [11:56:13]wFMCommunicate request_size=4 [11:56:13]MH_SAM_APDU [11:56:13]CAPDU: 80 13 01 00 [11:56:13]Write to MH i2c: E2 08 00 7F 2B 80 13 01 00 00 00 00 00 27 [11:56:13]Write i2c OK [11:56:13]MH_I2C_Read... [11:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:13]Read from MH i2c: E2 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 0E 00 [11:56:13]MH_I2C_Read... [11:56:13]Read from MH i2c: E2 0E 00 7F 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E7 [11:56:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [11:56:13]wFMCommunicate OK [11:56:13]SAM_PROTO_GetShiftState done [11:56:13]FM_GetShiftState done [11:56:13]req_shift_opened done [11:56:13]requested_item shift.open_date is exist - process it [11:56:13]req_shift_open_date [11:56:13]req_shift_open_date done [11:56:13]produce_requested_data done [11:56:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18643,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [11:56:13]process_action_free close_receipt [11:56:13]json_value_free [11:56:13]json_value_free done [11:56:13]process_json_proto returns [11:56:13]Send response to host [11:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18643,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [11:56:13]free response buf [11:56:13]execute_script done [11:56:13]execute_script returns [11:56:13]free content buf [11:56:13]Sock 7.Close socket [11:56:13]Sock 7.Thread stoped [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:01:58]accept exits with 9 [12:01:58]New connection [12:01:58]New thread 3066522980 created [12:01:58]Thread 3066666340 joined [12:01:58]Waiting for new connection... [12:01:58] Sock 9.Parse request [12:01:58]Sock 9.Check first char [12:01:58]Sock 9.First char is OK [12:01:58]request: POST /json_proto HTTP/1.0 [12:01:58]Method: POST [12:01:58]URL: /json_proto [12:01:58]Method is POST - this is cgi request [12:01:58]url: /json_proto [12:01:58]query_string will be loaded in cgi processing [12:01:58]execute_cgi json_proto POST (null) [12:01:58]execute_cgi path=json_proto method=POST [12:01:58]POST find Content-Length [12:01:58]Host: 172.17.62.196:8080 [12:01:58]Content-Length: 567 [12:01:58]Content-Type: application/json [12:01:58] [12:01:58]POST finish read [12:01:58]Found Content-Length = 567 [12:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16568", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:58]execute_script... [12:01: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)16568", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:58]POST & json_proto [12:01:58]process_json_proto [12:01:58]json parsed OK: [12:01:58]protocol is kg_v1.0 [12:01:58]action value=close_receipt [12:01:58]process_action close_receipt [12:01:58]cmd_close_receipt [12:01:58]MH_GetDate [12:01:58]Write to MH i2c: F0 00 00 80 2B 9A [12:01:58]Write i2c OK [12:01:58]MH_I2C_Read... [12:01:58]Read from MH i2c: F0 [12:01:58]MH_I2C_Read... [12:01:58]Read from MH i2c: F0 09 00 [12:01:58]MH_I2C_Read... [12:01:58]Read from MH i2c: F0 09 00 80 2B 00 3D 07 F0 66 CE CC 0E 66 4B [12:01:58]GetLastDocTimeStamp 1727006176 [12:01:58]current date 1727006525 [12:01:58]FM_GetShiftState [12:01:58]SAM_PROTO_GetShiftState [12:01:58]wFMCommunicate request_size=4 [12:01:58]MH_SAM_APDU [12:01:58]CAPDU: 80 13 01 00 [12:01:58]Write to MH i2c: E2 08 00 81 2B 80 13 01 00 00 00 00 00 29 [12:01:58]Write i2c OK [12:01:58]MH_I2C_Read... [12:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:58]Read from MH i2c: E2 [12:01:58]MH_I2C_Read... [12:01:58]Read from MH i2c: E2 0E 00 [12:01:58]MH_I2C_Read... [12:01:58]Read from MH i2c: E2 0E 00 81 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E9 [12:01:58]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:01:58]wFMCommunicate OK [12:01:58]SAM_PROTO_GetShiftState done [12:01:58]FM_GetShiftState done [12:01:58]opened in 1726963967 [12:01:58]opened+sec_in_day 1727050367 [12:01:58]quantity*price = 13400 [12:01:58]sum+1 = 13401 [12:01:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 40 22.09.2024 12:02 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18644 ФПД: 143459989127072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T120205&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18644&fm=143459989127072&tin=02508201610067®Number=0000000000152968&sum=13400 0 [12:02:00]StoreToDocumentArchive [12:02:00]shift 180 fd 18644 [12:02:00]save to /storage/0180/doc_00018644 [12:02:00]save last doc name /storage/0180/doc_00018644 to /storage/kkm_last_doc_name [12:02:00]save OK [12:02:00]Clear old archive folders... [12:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:02:00]tlvbuf is 019B4DF0 [12:02:00]SAM_PROTO_ClearQueue [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 09 00 00 [12:02:00]Write to MH i2c: E2 08 00 8E 2B 80 09 00 00 00 00 00 00 2B [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]SAM_PROTO_ClearQueue done [12:02:00]KKMCreateOFDPacket [12:02:00]OFDProtocolAddRootSTLVToBuf [12:02:00]FM_MakeSignedData [12:02:00]FM_MakeSignedData [12:02:00]SAM_PROTO_SignData [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 01 02 [12:02:00]Write to MH i2c: E2 08 00 8F 2B 80 0D 01 02 00 00 00 00 33 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=255 [12:02:00]MH_SAM_APDU [12:02:00]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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 28 00 00 00 F4 03 04 00 3D 07 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D4 48 00 00 35 04 06 00 [12:02:00]Write to MH i2c: E2 02 01 90 2B 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 28 00 00 00 F4 03 04 00 3D 07 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D4 48 00 00 35 04 06 00 00 00 61 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=11 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 02 02 06 82 79 E1 B0 FF A0 [12:02:00]Write to MH i2c: E2 0E 00 91 2B 80 0D 02 02 06 00 82 79 E1 B0 FF A0 00 00 6D [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [12:02:00]RAPDU: 90 00 [12:02:00]wFMCommunicate OK [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 0D 03 02 [12:02:00]Write to MH i2c: E2 08 00 92 2B 80 0D 03 02 00 00 00 00 38 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 0B 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 0B 00 92 2B 00 AB 24 AC 58 62 D5 22 37 90 00 9C [12:02:00]RAPDU: AB 24 AC 58 62 D5 22 37 90 00 [12:02:00]wFMCommunicate OK [12:02:00]SAM_PROTO_SignData done [12:02:00]FM_MakeSignedData done [12:02:00]CreateOFDProtocolMessage [12:02:00]wFMCommunicate request_size=4 [12:02:00]MH_SAM_APDU [12:02:00]CAPDU: 80 11 00 00 [12:02:00]Write to MH i2c: E2 08 00 93 2B 80 11 00 00 00 00 00 00 38 [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:00]Read from MH i2c: E2 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 17 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: E2 17 00 93 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 91 [12:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:02:00]wFMCommunicate OK [12:02:00]CreateOFDProtocolMessage done [12:02:00]OFDSenderStorePacket 18644 [12:02:00]StoreOFDPacket docnum=18644 [12:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 16 3D 08 01 BE 0F 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 28 00 00 00 F4 03 04 00 3D 07 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D4 48 00 00 35 04 06 00 82 79 E1 B0 FF A0 AB 24 AC 58 62 D5 22 37 [12:02:00]CheckFolder [12:02:00]dirname=/storage/ofd_packets [12:02:00]CheckFolder done [12:02:00]ProducePacketName [12:02:00]name=ofd_packets/00018644 [12:02:00]NVStorageSaveData ofd_packets/00018644 [12:02:00]File name is /storage/ofd_packets/00018644 [12:02:00]Write 302 bytes [12:02:00]NVStorageSaveData done [12:02:00]OFDSenderStorePacket done [12:02:00]KKMCreateOFDPacket done [12:02:00]NVStorageSaveData kkm_last_timestamp [12:02:00]File name is /storage/kkm_last_timestamp [12:02:00]Write 4 bytes [12:02:00]NVStorageSaveData done [12:02:00]ExternCall_PrintAddStr [12:02:00]wPrintStart [12:02:00]Write to MH i2c: 01 00 00 94 2B BF [12:02:00]Write i2c OK [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 07 00 [12:02:00]MH_I2C_Read... [12:02:00]Read from MH i2c: 01 07 00 94 2B 00 00 00 00 00 FF 0F D4 [12:02:00]RasterBufferAndPrint [12:02:00]line Счет N : (3)16568 [12:02:00]line ИНН: 02508201610067 [12:02:00]line Контрольно-Кассовый Чек [12:02:00]line ПРОДАЖА [12:02:00]line Товар: 48744539 [12:02:00]line LD Compact Blue [12:02:00]line 1.000 * 134.00 [12:02:00]line = 134.00 [12:02:00]line НДС 12% НСП 1% [12:02:00]line > о реализуемом товаре [12:02:00]line ИТОГО: 134.00 [12:02:00]line НСП 1% : 1.19 [12:02:00]line НДС 12% : 14.23 [12:02:00]line Наличными: 134.00 [12:02:00]line Безнал.: 0.00 [12:02:00]line Место: АЗС № 176 "Партнер Нефть" [12:02:00]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:02:00]line СНО: Общий режим [12:02:00]line Чек 40 22.09.2024 12:02 [12:02:00]line Смена: 180 ФФД: 1.0 [12:02:00]line ЗНМ: 0300000010 [12:02:00]line РНМ: 0000000000152968 [12:02:00]line Версия ККМ: v1.0 [12:02:00]line ФМ: 0000000000959456 [12:02:00]line ФД: 18644 [12:02:00]line ФПД: 143459989127072 [12:02:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T120205&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18644&fm=143459989127072&tin=02508201610067®Number=0000000000152968&sum=13400 [12:02:00]line 0 [12:02:00]written 0, free lines is 4095 [12:02:00]OFD Sender: Processing packet 18644 [packets to send 7, broken 6] [12:02:00]ProducePacketName [12:02:00]name=ofd_packets/00018644 [12:02:00]OFD Sender: To server: pG, [12:02:00]CommunicateWithHost lk.salyk.kg:30040 [12:02:00]ConnectInit lk.salyk.kg [12:02:01]Connected sock=10 [12:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 16 3D 08 01 BE 0F 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 28 00 00 00 F4 03 04 00 3D 07 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D4 48 00 00 35 04 06 00 82 79 E1 B0 FF A0 AB 24 AC 58 62 D5 22 37 [12:02:01]Write to MH i2c: 01 00 00 BC 2B E7 [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 07 00 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 08 0D 03 [12:02:01]RasterBufferAndPrint [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]line [12:02:01]written 0, free lines is 3343 [12:02:01]MH_Cut [12:02:01]Write to MH i2c: D1 01 00 C3 2B 01 C0 [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 01 00 [12:02:01]MH_I2C_Read... [12:02:01]Read from MH i2c: D1 01 00 C3 2B 00 BF [12:02:01]Write to MH i2c: 01 00 00 C4 2B EF [12:02:01]Write i2c OK [12:02:01]MH_I2C_Read... [12:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 94 78 47 00 C9 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D4 48 00 00 F4 03 04 00 A5 B0 EF 66 B6 04 01 00 00 D7 ED 3A 05 8F 24 8D 70 [12:02:01]CommunicateWithHost err = 0 [12:02:01]CheckOFDResponse [12:02:01]1017 (14) - 77093643461234 [12:02:01]1041 (16) - 0000000000959456 [12:02:01]1040 (4) - 18644 [12:02:01]1012 (4) - 22.09.2024 05:52 [12:02:01]1206 (1) - 0 [12:02:01]OFD Sender: Remove packet 18644 [12:02:01]ProducePacketName [12:02:01]name=ofd_packets/00018644 [12:02:01]NVStorageDeleteData [12:02:01]OFD Sender: No OFD packet to send [12:02:02]*** Cut start [12:02:02]*** Partial cut [12:02:02]*** CUTSNS_PIN = 1 [12:02:02]*** CUTSNS_PIN = 0 [12:02:02]*** Brake cut motor [12:02:02]Read from MH i2c: 01 [12:02:02]MH_I2C_Read... [12:02:02]*** Stop cut motor [12:02:02]*** Cut end [12:02:02]Read from MH i2c: 01 07 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 FF 0F 04 [12:02:02]process_action close_receipt done [12:02:02]requested_data is exist [12:02:02]produce_requested_data [12:02:02]requested_item fm.sn is exist - process it [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 11 00 00 [12:02:02]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 17 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C3 [12:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:02:02]wFMCommunicate OK [12:02:02]requested_item fd.num is exist - process it [12:02:02]SAM_PROTO_GetFieldsCounters [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 00 00 [12:02:02]Write to MH i2c: E2 08 00 C6 2B 80 13 00 00 00 00 00 00 6D [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 62 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 62 00 C6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D4 48 00 00 0E 04 04 00 B4 00 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 E2 [12:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D4 48 00 00 0E 04 04 00 B4 00 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 [12:02:02]wFMCommunicate OK [12:02:02]SAM_PROTO_GetFieldsCounters done [12:02:02]requested_item shift.num is exist - process it [12:02:02]requested_item shift.opened is exist - process it [12:02:02]req_shift_opened [12:02:02]FM_GetShiftState [12:02:02]SAM_PROTO_GetShiftState [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 01 00 [12:02:02]Write to MH i2c: E2 08 00 C7 2B 80 13 01 00 00 00 00 00 6F [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 C7 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 2F [12:02:02]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:02:02]wFMCommunicate OK [12:02:02]SAM_PROTO_GetShiftState done [12:02:02]FM_GetShiftState done [12:02:02]req_shift_opened done [12:02:02]requested_item shift.open_date is exist - process it [12:02:02]req_shift_open_date [12:02:02]req_shift_open_date done [12:02:02]produce_requested_data done [12:02:02]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18644,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:02:02]process_action_free close_receipt [12:02:02]json_value_free [12:02:02]json_value_free done [12:02:02]process_json_proto returns [12:02:02]Send response to host [12:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18644,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:02:02]free response buf [12:02:02]execute_script done [12:02:02]execute_script returns [12:02:02]free content buf [12:02:02]Sock 9.Close socket [12:02:02]Sock 9.Thread stoped [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:50]accept exits with 7 [12:22:50]New connection [12:22:50]New thread 3066666340 created [12:22:50]Thread 3066522980 joined [12:22:50]Waiting for new connection... [12:22:50] Sock 7.Parse request [12:22:50]Sock 7.Check first char [12:22:50]Sock 7.First char is OK [12:22:50]request: POST /json_proto HTTP/1.0 [12:22:50]Method: POST [12:22:50]URL: /json_proto [12:22:50]Method is POST - this is cgi request [12:22:50]url: /json_proto [12:22:50]query_string will be loaded in cgi processing [12:22:50]execute_cgi json_proto POST (null) [12:22:50]execute_cgi path=json_proto method=POST [12:22:50]POST find Content-Length [12:22:50]Host: 172.17.62.196:8080 [12:22:50]Content-Length: 653 [12:22:50]Content-Type: application/json [12:22:50] [12:22:50]POST finish read [12:22:50]Found Content-Length = 653 [12:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16569", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]execute_script... [12:22: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)16569", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]POST & json_proto [12:22:50]process_json_proto [12:22:50]json parsed OK: [12:22:50]protocol is kg_v1.0 [12:22:50]action value=close_receipt [12:22:50]process_action close_receipt [12:22:50]cmd_close_receipt [12:22:50]MH_GetDate [12:22:50]Write to MH i2c: F0 00 00 C8 2B E2 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 C8 2B 00 21 0C F0 66 CE CC 0E 66 7C [12:22:50]GetLastDocTimeStamp 1727006525 [12:22:50]current date 1727007777 [12:22:50]FM_GetShiftState [12:22:50]SAM_PROTO_GetShiftState [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 13 01 00 [12:22:50]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 31 [12:22:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:22:50]wFMCommunicate OK [12:22:50]SAM_PROTO_GetShiftState done [12:22:50]FM_GetShiftState done [12:22:50]opened in 1726963967 [12:22:50]opened+sec_in_day 1727050367 [12:22:50]quantity*price = 7700 [12:22:50]sum+1 = 7701 [12:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 41 22.09.2024 12:22 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18645 ФПД: 209242004146430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122257&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18645&fm=209242004146430&tin=02508201610067®Number=0000000000152968&sum=7700 0 [12:22:51]StoreToDocumentArchive [12:22:51]shift 180 fd 18645 [12:22:51]save to /storage/0180/doc_00018645 [12:22:51]save last doc name /storage/0180/doc_00018645 to /storage/kkm_last_doc_name [12:22:51]save OK [12:22:51]Clear old archive folders... [12:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:22:51]tlvbuf is 019D3760 [12:22:51]SAM_PROTO_ClearQueue [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 09 00 00 [12:22:51]Write to MH i2c: E2 08 00 D6 2B 80 09 00 00 00 00 00 00 73 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_ClearQueue done [12:22:51]KKMCreateOFDPacket [12:22:51]OFDProtocolAddRootSTLVToBuf [12:22:51]FM_MakeSignedData [12:22:51]FM_MakeSignedData [12:22:51]SAM_PROTO_SignData [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 0D 01 02 [12:22:51]Write to MH i2c: E2 08 00 D7 2B 80 0D 01 02 00 00 00 00 7B [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]wFMCommunicate request_size=255 [12:22:51]MH_SAM_APDU [12:22:51]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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 21 0C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:22:51]Write to MH i2c: E2 02 01 D8 2B 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 21 0C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 70 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]wFMCommunicate request_size=52 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D5 48 00 00 35 04 06 00 BE 4D F3 54 48 FE [12:22:51]Write to MH i2c: E2 37 00 D9 2B 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D5 48 00 00 35 04 06 00 BE 4D F3 54 48 FE 00 00 02 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [12:22:51]RAPDU: 90 00 [12:22:51]wFMCommunicate OK [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 0D 03 02 [12:22:51]Write to MH i2c: E2 08 00 DA 2B 80 0D 03 02 00 00 00 00 80 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0B 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 0B 00 DA 2B 00 9A 56 50 D9 D0 32 3D A4 90 00 7D [12:22:51]RAPDU: 9A 56 50 D9 D0 32 3D A4 90 00 [12:22:51]wFMCommunicate OK [12:22:51]SAM_PROTO_SignData done [12:22:51]FM_MakeSignedData done [12:22:51]CreateOFDProtocolMessage [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 11 00 00 [12:22:51]Write to MH i2c: E2 08 00 DB 2B 80 11 00 00 00 00 00 00 80 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 DB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D9 [12:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:22:51]wFMCommunicate OK [12:22:51]CreateOFDProtocolMessage done [12:22:51]OFDSenderStorePacket 18645 [12:22:51]StoreOFDPacket docnum=18645 [12:22:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 C0 5D 31 01 31 B2 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 21 0C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D5 48 00 00 35 04 06 00 BE 4D F3 54 48 FE 9A 56 50 D9 D0 32 3D A4 [12:22:51]CheckFolder [12:22:51]dirname=/storage/ofd_packets [12:22:51]CheckFolder done [12:22:51]ProducePacketName [12:22:51]name=ofd_packets/00018645 [12:22:51]NVStorageSaveData ofd_packets/00018645 [12:22:51]File name is /storage/ofd_packets/00018645 [12:22:51]Write 343 bytes [12:22:51]NVStorageSaveData done [12:22:51]OFDSenderStorePacket done [12:22:51]KKMCreateOFDPacket done [12:22:51]NVStorageSaveData kkm_last_timestamp [12:22:51]File name is /storage/kkm_last_timestamp [12:22:51]Write 4 bytes [12:22:51]NVStorageSaveData done [12:22:51]ExternCall_PrintAddStr [12:22:51]wPrintStart [12:22:51]Write to MH i2c: 01 00 00 DC 2B 07 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 FF 0F 1C [12:22:51]RasterBufferAndPrint [12:22:51]line Счет N : (3)16569 [12:22:51]line ИНН: 02508201610067 [12:22:51]line Контрольно-Кассовый Чек [12:22:51]line ПРОДАЖА [12:22:51]line Товар: 4700000480050 [12:22:51]line Напиток Nitro Energy эн green ж/б 0,45л [12:22:51]line 1.000 * 77.00 [12:22:51]line = 77.00 [12:22:51]line НДС 12% НСП 1% [12:22:51]line > о реализуемом товаре [12:22:51]line ИТОГО: 77.00 [12:22:51]line НСП 1% : 0.68 [12:22:51]line НДС 12% : 8.18 [12:22:51]line Наличными: 77.00 [12:22:51]line Безнал.: 0.00 [12:22:51]line Место: АЗС № 176 "Партнер Нефть" [12:22:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:22:51]line СНО: Общий режим [12:22:51]line Чек 41 22.09.2024 12:22 [12:22:51]line Смена: 180 ФФД: 1.0 [12:22:51]line ЗНМ: 0300000010 [12:22:51]line РНМ: 0000000000152968 [12:22:51]line Версия ККМ: v1.0 [12:22:51]line ФМ: 0000000000959456 [12:22:51]line ФД: 18645 [12:22:51]line ФПД: 209242004146430 [12:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122257&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18645&fm=209242004146430&tin=02508201610067®Number=0000000000152968&sum=7700 [12:22:52]line 0 [12:22:52]OFD Sender: Processing packet 18645 [packets to send 7, broken 6] [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00018645 [12:22:52]OFD Sender: To server: pG, [12:22:52]CommunicateWithHost lk.salyk.kg:30040 [12:22:52]ConnectInit lk.salyk.kg [12:22:52]written 0, free lines is 4095 [12:22:52]Connected sock=10 [12:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 C0 5D 31 01 31 B2 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 21 0C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D5 48 00 00 35 04 06 00 BE 4D F3 54 48 FE 9A 56 50 D9 D0 32 3D A4 [12:22:52]Write to MH i2c: 01 00 00 05 2C 31 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 05 2C 00 00 00 00 00 03 0D 48 [12:22:52]RasterBufferAndPrint [12:22:52]line [12:22:52]line [12:22:52]line [12:22:52]line [12:22:52]line [12:22:52]written 0, free lines is 3337 [12:22:52]MH_Cut [12:22:52]Write to MH i2c: D1 01 00 0C 2C 01 0A [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: D1 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: D1 01 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: D1 01 00 0C 2C 00 09 [12:22:52]Write to MH i2c: 01 00 00 0D 2C 39 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 CB 56 47 00 C8 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 39 35 39 34 35 36 10 04 04 00 D5 48 00 00 F4 03 04 00 88 B5 EF 66 B6 04 01 00 00 E4 92 47 FC DB D2 FF 1A [12:22:52]CommunicateWithHost err = 0 [12:22:52]CheckOFDResponse [12:22:52]1017 (14) - 77093643461234 [12:22:52]1041 (16) - 0000000000959456 [12:22:52]1040 (4) - 18645 [12:22:52]1012 (4) - 22.09.2024 06:13 [12:22:52]1206 (1) - 0 [12:22:52]OFD Sender: Remove packet 18645 [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00018645 [12:22:52]NVStorageDeleteData [12:22:53]OFD Sender: No OFD packet to send [12:22:53]*** Cut start [12:22:53]*** Partial cut [12:22:53]*** CUTSNS_PIN = 1 [12:22:53]*** CUTSNS_PIN = 0 [12:22:53]*** Brake cut motor [12:22:53]Read from MH i2c: 01 [12:22:53]MH_I2C_Read... [12:22:53]*** Stop cut motor [12:22:53]*** Cut end [12:22:53]Read from MH i2c: 01 07 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 07 00 0D 2C 00 00 00 00 00 FF 0F 4E [12:22:53]process_action close_receipt done [12:22:53]requested_data is exist [12:22:53]produce_requested_data [12:22:53]requested_item fm.sn is exist - process it [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 11 00 00 [12:22:53]Write to MH i2c: E2 08 00 0E 2C 80 11 00 00 00 00 00 00 B4 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:53]Read from MH i2c: E2 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 17 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 17 00 0E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0D [12:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:22:53]wFMCommunicate OK [12:22:53]requested_item fd.num is exist - process it [12:22:53]SAM_PROTO_GetFieldsCounters [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 13 00 00 [12:22:53]Write to MH i2c: E2 08 00 0F 2C 80 13 00 00 00 00 00 00 B7 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:53]Read from MH i2c: E2 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 62 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 62 00 0F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D5 48 00 00 0E 04 04 00 B4 00 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 30 [12:22:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D5 48 00 00 0E 04 04 00 B4 00 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 [12:22:53]wFMCommunicate OK [12:22:53]SAM_PROTO_GetFieldsCounters done [12:22:53]requested_item shift.num is exist - process it [12:22:53]requested_item shift.opened is exist - process it [12:22:53]req_shift_opened [12:22:53]FM_GetShiftState [12:22:53]SAM_PROTO_GetShiftState [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 13 01 00 [12:22:53]Write to MH i2c: E2 08 00 10 2C 80 13 01 00 00 00 00 00 B9 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 0E 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 0E 00 10 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 79 [12:22:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:22:54]wFMCommunicate OK [12:22:54]SAM_PROTO_GetShiftState done [12:22:54]FM_GetShiftState done [12:22:54]req_shift_opened done [12:22:54]requested_item shift.open_date is exist - process it [12:22:54]req_shift_open_date [12:22:54]req_shift_open_date done [12:22:54]produce_requested_data done [12:22:54]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18645,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:22:54]process_action_free close_receipt [12:22:54]json_value_free [12:22:54]json_value_free done [12:22:54]process_json_proto returns [12:22:54]Send response to host [12:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18645,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:22:54]free response buf [12:22:54]execute_script done [12:22:54]execute_script returns [12:22:54]free content buf [12:22:54]Sock 7.Close socket [12:22:54]Sock 7.Thread stoped [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:36]accept exits with 9 [12:26:36]New connection [12:26:36]New thread 3066522980 created [12:26:36]Thread 3066666340 joined [12:26:36]Waiting for new connection... [12:26:36] Sock 9.Parse request [12:26:36]Sock 9.Check first char [12:26:36]Sock 9.First char is OK [12:26:36]request: POST /json_proto HTTP/1.0 [12:26:36]Method: POST [12:26:36]URL: /json_proto [12:26:36]Method is POST - this is cgi request [12:26:36]url: /json_proto [12:26:36]query_string will be loaded in cgi processing [12:26:36]execute_cgi json_proto POST (null) [12:26:36]execute_cgi path=json_proto method=POST [12:26:36]POST find Content-Length [12:26:36]Host: 172.17.62.196:8080 [12:26:36]Content-Length: 668 [12:26:36]Content-Type: application/json [12:26:36] [12:26:36]POST finish read [12:26:36]Found Content-Length = 668 [12:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16570", "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" ] } } [12:26:36]execute_script... [12:26: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)16570", "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" ] } } [12:26:36]POST & json_proto [12:26:36]process_json_proto [12:26:36]json parsed OK: [12:26:36]protocol is kg_v1.0 [12:26:36]action value=close_receipt [12:26:36]process_action close_receipt [12:26:36]cmd_close_receipt [12:26:36]MH_GetDate [12:26:36]Write to MH i2c: F0 00 00 11 2C 2C [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: F0 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: F0 09 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: F0 09 00 11 2C 00 04 0D F0 66 CE CC 0E 66 AA [12:26:36]GetLastDocTimeStamp 1727007777 [12:26:36]current date 1727008004 [12:26:36]FM_GetShiftState [12:26:36]SAM_PROTO_GetShiftState [12:26:36]wFMCommunicate request_size=4 [12:26:36]MH_SAM_APDU [12:26:36]CAPDU: 80 13 01 00 [12:26:36]Write to MH i2c: E2 08 00 12 2C 80 13 01 00 00 00 00 00 BB [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:36]Read from MH i2c: E2 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: E2 0E 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: E2 0E 00 12 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7B [12:26:36]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:26:36]wFMCommunicate OK [12:26:36]SAM_PROTO_GetShiftState done [12:26:36]FM_GetShiftState done [12:26:36]opened in 1726963967 [12:26:36]opened+sec_in_day 1727050367 [12:26:36]quantity*price = 6500 [12:26:36]sum+1 = 6501 [12:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 42 22.09.2024 12:26 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18646 ФПД: 280546036834484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122644&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18646&fm=280546036834484&tin=02508201610067®Number=0000000000152968&sum=6500 0 [12:26:38]StoreToDocumentArchive [12:26:38]shift 180 fd 18646 [12:26:38]save to /storage/0180/doc_00018646 [12:26:38]save last doc name /storage/0180/doc_00018646 to /storage/kkm_last_doc_name [12:26:38]save OK [12:26:38]Clear old archive folders... [12:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:26:38]tlvbuf is 01A3D610 [12:26:38]SAM_PROTO_ClearQueue [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 09 00 00 [12:26:38]Write to MH i2c: E2 08 00 1F 2C 80 09 00 00 00 00 00 00 BD [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 1F 2C 00 90 00 BF [12:26:38]RAPDU: 90 00 [12:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_ClearQueue done [12:26:38]KKMCreateOFDPacket [12:26:38]OFDProtocolAddRootSTLVToBuf [12:26:38]FM_MakeSignedData [12:26:38]FM_MakeSignedData [12:26:38]SAM_PROTO_SignData [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 0D 01 02 [12:26:38]Write to MH i2c: E2 08 00 20 2C 80 0D 01 02 00 00 00 00 C5 [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 20 2C 00 90 00 C0 [12:26:38]RAPDU: 90 00 [12:26:38]wFMCommunicate OK [12:26:38]wFMCommunicate request_size=255 [12:26:38]MH_SAM_APDU [12:26:38]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 2A 00 00 00 F4 03 04 00 04 0D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [12:26:38]Write to MH i2c: E2 02 01 21 2C 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 2A 00 00 00 F4 03 04 00 04 0D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 9C [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]OFD Sender: No OFD packet to send [12:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [12:26:38]RAPDU: 90 00 [12:26:38]wFMCommunicate OK [12:26:38]wFMCommunicate request_size=43 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D6 48 00 00 35 04 06 00 FF 27 B6 DE 60 B4 [12:26:38]Write to MH i2c: E2 2E 00 22 2C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D6 48 00 00 35 04 06 00 FF 27 B6 DE 60 B4 00 00 A2 [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [12:26:38]RAPDU: 90 00 [12:26:38]wFMCommunicate OK [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 0D 03 02 [12:26:38]Write to MH i2c: E2 08 00 23 2C 80 0D 03 02 00 00 00 00 CA [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0B 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0B 00 23 2C 00 86 97 27 67 96 90 FA 52 90 00 E8 [12:26:38]RAPDU: 86 97 27 67 96 90 FA 52 90 00 [12:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_SignData done [12:26:38]FM_MakeSignedData done [12:26:38]CreateOFDProtocolMessage [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 11 00 00 [12:26:38]Write to MH i2c: E2 08 00 24 2C 80 11 00 00 00 00 00 00 CA [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 17 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 17 00 24 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 23 [12:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:26:38]wFMCommunicate OK [12:26:38]CreateOFDProtocolMessage done [12:26:38]OFDSenderStorePacket 18646 [12:26:38]StoreOFDPacket docnum=18646 [12:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 72 25 28 01 95 CE 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 2A 00 00 00 F4 03 04 00 04 0D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D6 48 00 00 35 04 06 00 FF 27 B6 DE 60 B4 86 97 27 67 96 90 FA 52 [12:26:38]CheckFolder [12:26:38]dirname=/storage/ofd_packets [12:26:38]CheckFolder done [12:26:38]ProducePacketName [12:26:38]name=ofd_packets/00018646 [12:26:38]NVStorageSaveData ofd_packets/00018646 [12:26:38]File name is /storage/ofd_packets/00018646 [12:26:38]Write 334 bytes [12:26:38]NVStorageSaveData done [12:26:38]OFDSenderStorePacket done [12:26:38]KKMCreateOFDPacket done [12:26:38]NVStorageSaveData kkm_last_timestamp [12:26:38]File name is /storage/kkm_last_timestamp [12:26:38]Write 4 bytes [12:26:38]NVStorageSaveData done [12:26:38]ExternCall_PrintAddStr [12:26:38]wPrintStart [12:26:38]Write to MH i2c: 01 00 00 25 2C 51 [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: 01 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: 01 07 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: 01 07 00 25 2C 00 00 00 00 00 FF 0F 66 [12:26:38]RasterBufferAndPrint [12:26:38]line Счет N : (3)16570 [12:26:38]line ИНН: 02508201610067 [12:26:38]line Контрольно-Кассовый Чек [12:26:38]line ПРОДАЖА [12:26:38]line Товар: 4700040114137 [12:26:38]line Султан чай 1л. зел лимон [12:26:38]line 1.000 * 65.00 [12:26:38]line = 65.00 [12:26:38]line НДС 12% НСП 1% [12:26:38]line > о реализуемом товаре [12:26:38]line ИТОГО: 65.00 [12:26:38]line НСП 1% : 0.57 [12:26:38]line НДС 12% : 6.90 [12:26:38]line Наличными: 65.00 [12:26:38]line Безнал.: 0.00 [12:26:38]line Место: АЗС № 176 "Партнер Нефть" [12:26:38]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:26:38]line СНО: Общий режим [12:26:38]line Чек 42 22.09.2024 12:26 [12:26:38]line Смена: 180 ФФД: 1.0 [12:26:38]line ЗНМ: 0300000010 [12:26:38]line РНМ: 0000000000152968 [12:26:38]line Версия ККМ: v1.0 [12:26:38]line ФМ: 0000000000959456 [12:26:38]line ФД: 18646 [12:26:38]line ФПД: 280546036834484 [12:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T122644&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18646&fm=280546036834484&tin=02508201610067®Number=0000000000152968&sum=6500 [12:26:38]line 0 [12:26:38]OFD Sender: Processing packet 18646 [packets to send 7, broken 6] [12:26:38]ProducePacketName [12:26:38]name=ofd_packets/00018646 [12:26:38]OFD Sender: To server: pG, [12:26:38]CommunicateWithHost lk.salyk.kg:30040 [12:26:38]ConnectInit lk.salyk.kg [12:26:38]written 0, free lines is 4095 [12:26:39]Connected sock=10 [12:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 72 25 28 01 95 CE 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 2A 00 00 00 F4 03 04 00 04 0D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D6 48 00 00 35 04 06 00 FF 27 B6 DE 60 B4 86 97 27 67 96 90 FA 52 [12:26:39]Write to MH i2c: 01 00 00 4D 2C 79 [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: 01 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: 01 07 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: 01 07 00 4D 2C 00 00 00 00 00 12 0D 9F [12:26:39]RasterBufferAndPrint [12:26:39]line [12:26:39]line [12:26:39]line [12:26:39]line [12:26:39]line [12:26:39]written 0, free lines is 3353 [12:26:39]MH_Cut [12:26:39]Write to MH i2c: D1 01 00 54 2C 01 52 [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: D1 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: D1 01 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: D1 01 00 54 2C 00 51 [12:26:39]Write to MH i2c: 01 00 00 55 2C 81 [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 2A 9A 47 00 D2 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 39 35 39 34 35 36 10 04 04 00 D6 48 00 00 F4 03 04 00 6B B6 EF 66 B6 04 01 00 00 E6 BB C8 46 7F BA 83 4A [12:26:39]CommunicateWithHost err = 0 [12:26:39]CheckOFDResponse [12:26:39]1017 (14) - 77093643461234 [12:26:39]1041 (16) - 0000000000959456 [12:26:39]1040 (4) - 18646 [12:26:39]1012 (4) - 22.09.2024 06:17 [12:26:39]1206 (1) - 0 [12:26:39]OFD Sender: Remove packet 18646 [12:26:39]ProducePacketName [12:26:39]name=ofd_packets/00018646 [12:26:39]NVStorageDeleteData [12:26:39]OFD Sender: No OFD packet to send [12:26:40]*** Cut start [12:26:40]*** Partial cut [12:26:40]*** CUTSNS_PIN = 1 [12:26:40]*** CUTSNS_PIN = 0 [12:26:40]*** Brake cut motor [12:26:40]Read from MH i2c: 01 [12:26:40]MH_I2C_Read... [12:26:40]*** Stop cut motor [12:26:40]*** Cut end [12:26:40]Read from MH i2c: 01 07 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 FF 0F 96 [12:26:40]process_action close_receipt done [12:26:40]requested_data is exist [12:26:40]produce_requested_data [12:26:40]requested_item fm.sn is exist - process it [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 11 00 00 [12:26:40]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 17 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 55 [12:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:26:40]wFMCommunicate OK [12:26:40]requested_item fd.num is exist - process it [12:26:40]SAM_PROTO_GetFieldsCounters [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 13 00 00 [12:26:40]Write to MH i2c: E2 08 00 57 2C 80 13 00 00 00 00 00 00 FF [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 62 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 62 00 57 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D6 48 00 00 0E 04 04 00 B4 00 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 7C [12:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D6 48 00 00 0E 04 04 00 B4 00 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 [12:26:40]wFMCommunicate OK [12:26:40]SAM_PROTO_GetFieldsCounters done [12:26:40]requested_item shift.num is exist - process it [12:26:40]requested_item shift.opened is exist - process it [12:26:40]req_shift_opened [12:26:40]FM_GetShiftState [12:26:40]SAM_PROTO_GetShiftState [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 13 01 00 [12:26:40]Write to MH i2c: E2 08 00 58 2C 80 13 01 00 00 00 00 00 01 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 0E 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 0E 00 58 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C1 [12:26:40]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:26:40]wFMCommunicate OK [12:26:40]SAM_PROTO_GetShiftState done [12:26:40]FM_GetShiftState done [12:26:40]req_shift_opened done [12:26:40]requested_item shift.open_date is exist - process it [12:26:40]req_shift_open_date [12:26:40]req_shift_open_date done [12:26:40]produce_requested_data done [12:26:40]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18646,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:26:40]process_action_free close_receipt [12:26:40]json_value_free [12:26:40]json_value_free done [12:26:40]process_json_proto returns [12:26:40]Send response to host [12:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18646,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:26:40]free response buf [12:26:40]execute_script done [12:26:40]execute_script returns [12:26:40]free content buf [12:26:40]Sock 9.Close socket [12:26:40]Sock 9.Thread stoped [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:07]accept exits with 7 [12:48:07]New connection [12:48:07]New thread 3066666340 created [12:48:07]Thread 3066522980 joined [12:48:07]Waiting for new connection... [12:48:07] Sock 7.Parse request [12:48:07]Sock 7.Check first char [12:48:07]Sock 7.First char is OK [12:48:07]request: POST /json_proto HTTP/1.0 [12:48:07]Method: POST [12:48:07]URL: /json_proto [12:48:07]Method is POST - this is cgi request [12:48:07]url: /json_proto [12:48:07]query_string will be loaded in cgi processing [12:48:07]execute_cgi json_proto POST (null) [12:48:07]execute_cgi path=json_proto method=POST [12:48:07]POST find Content-Length [12:48:07]Host: 172.17.62.196:8080 [12:48:07]Content-Length: 1142 [12:48:07]Content-Type: application/json [12:48:07] [12:48:07]POST finish read [12:48:07]Found Content-Length = 1142 [12:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16571", "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": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:07]execute_script... [12:48: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)16571", "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": "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:07]POST & json_proto [12:48:07]process_json_proto [12:48:07]json parsed OK: [12:48:07]protocol is kg_v1.0 [12:48:07]action value=close_receipt [12:48:07]process_action close_receipt [12:48:07]cmd_close_receipt [12:48:07]MH_GetDate [12:48:07]Write to MH i2c: F0 00 00 59 2C 74 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: F0 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: F0 09 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: F0 09 00 59 2C 00 0E 12 F0 66 CE CC 0E 66 01 [12:48:07]GetLastDocTimeStamp 1727008004 [12:48:07]current date 1727009294 [12:48:07]FM_GetShiftState [12:48:07]SAM_PROTO_GetShiftState [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 13 01 00 [12:48:07]Write to MH i2c: E2 08 00 5A 2C 80 13 01 00 00 00 00 00 03 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0E 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0E 00 5A 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C3 [12:48:07]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_GetShiftState done [12:48:07]FM_GetShiftState done [12:48:07]opened in 1726963967 [12:48:07]opened+sec_in_day 1727050367 [12:48:07]quantity*price = 10500 [12:48:07]sum+1 = 10501 [12:48:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 43 22.09.2024 12:48 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18647 ФПД: 68069402996106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124814&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18647&fm=68069402996106&tin=02508201610067®Number=0000000000152968&sum=31500 0 [12:48:08]StoreToDocumentArchive [12:48:08]shift 180 fd 18647 [12:48:08]save to /storage/0180/doc_00018647 [12:48:08]save last doc name /storage/0180/doc_00018647 to /storage/kkm_last_doc_name [12:48:08]save OK [12:48:08]Clear old archive folders... [12:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=489 [12:48:08]tlvbuf is B6D62060 [12:48:08]SAM_PROTO_ClearQueue [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 09 00 00 [12:48:08]Write to MH i2c: E2 08 00 67 2C 80 09 00 00 00 00 00 00 05 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]SAM_PROTO_ClearQueue done [12:48:08]KKMCreateOFDPacket [12:48:08]OFDProtocolAddRootSTLVToBuf [12:48:08]FM_MakeSignedData [12:48:08]FM_MakeSignedData [12:48:08]SAM_PROTO_SignData [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 0D 01 02 [12:48:08]Write to MH i2c: E2 08 00 68 2C 80 0D 01 02 00 00 00 00 0D [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 68 2C 00 90 00 08 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=255 [12:48:08]MH_SAM_APDU [12:48:08]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 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 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 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 [12:48:08]Write to MH i2c: E2 02 01 69 2C 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 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 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 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 00 00 13 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 69 2C 00 90 00 09 [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]wFMCommunicate request_size=248 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 02 02 F3 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 0E 12 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D7 48 00 00 35 04 06 00 3D E8 A4 95 ED 8A [12:48:09]Write to MH i2c: E2 FB 00 6A 2C 80 0D 02 02 F3 00 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 0E 12 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D7 48 00 00 35 04 06 00 3D E8 A4 95 ED 8A 00 00 CB [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 03 00 6A 2C 00 90 00 0A [12:48:09]RAPDU: 90 00 [12:48:09]wFMCommunicate OK [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 0D 03 02 [12:48:09]Write to MH i2c: E2 08 00 6B 2C 80 0D 03 02 00 00 00 00 12 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0B 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0B 00 6B 2C 00 E5 91 03 F5 09 46 7C 79 90 00 C5 [12:48:09]RAPDU: E5 91 03 F5 09 46 7C 79 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_SignData done [12:48:09]FM_MakeSignedData done [12:48:09]CreateOFDProtocolMessage [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 11 00 00 [12:48:09]Write to MH i2c: E2 08 00 6C 2C 80 11 00 00 00 00 00 00 12 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 17 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 17 00 6C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6B [12:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:48:09]wFMCommunicate OK [12:48:09]CreateOFDProtocolMessage done [12:48:09]OFDSenderStorePacket 18647 [12:48:09]StoreOFDPacket docnum=18647 [12:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 FD 01 00 00 C4 A4 F5 01 19 A2 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 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 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 0E 12 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D7 48 00 00 35 04 06 00 3D E8 A4 95 ED 8A E5 91 03 F5 09 46 7C 79 [12:48:09]CheckFolder [12:48:09]dirname=/storage/ofd_packets [12:48:09]CheckFolder done [12:48:09]ProducePacketName [12:48:09]name=ofd_packets/00018647 [12:48:09]NVStorageSaveData ofd_packets/00018647 [12:48:09]File name is /storage/ofd_packets/00018647 [12:48:09]Write 539 bytes [12:48:09]NVStorageSaveData done [12:48:09]OFDSenderStorePacket done [12:48:09]KKMCreateOFDPacket done [12:48:09]NVStorageSaveData kkm_last_timestamp [12:48:09]File name is /storage/kkm_last_timestamp [12:48:09]Write 4 bytes [12:48:09]NVStorageSaveData done [12:48:09]ExternCall_PrintAddStr [12:48:09]wPrintStart [12:48:09]Write to MH i2c: 01 00 00 6D 2C 99 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 6D 2C 00 00 00 00 00 FF 0F AE [12:48:09]RasterBufferAndPrint [12:48:09]line Счет N : (3)16571 [12:48:09]line ИНН: 02508201610067 [12:48:09]line Контрольно-Кассовый Чек [12:48:09]line ПРОДАЖА [12:48:09]line Товар: 2000034730018 [12:48:09]line Кофе Американо (GABB TRADE) [12:48:09]line 1.000 * 105.00 [12:48:09]line = 105.00 [12:48:09]line НДС 12% НСП 1% [12:48:09]line > о реализуемом товаре [12:48:09]line Товар: 2000036230011 [12:48:09]line Кофе Латте XL(GABB TRADE) [12:48:09]line 1.000 * 130.00 [12:48:09]line = 130.00 [12:48:09]line НДС 12% НСП 1% [12:48:09]line > о реализуемом товаре [12:48:09]line Товар: 4700000160211 [12:48:09]line Вода Легенда 0,5л [12:48:09]line 2.000 * 40.00 [12:48:09]line = 80.00 [12:48:09]line НДС 12% НСП 1% [12:48:09]line > о реализуемом товаре [12:48:09]line ИТОГО: 315.00 [12:48:09]line НСП 1% : 2.79 [12:48:09]line НДС 12% : 33.45 [12:48:09]line Наличными: 315.00 [12:48:09]line Безнал.: 0.00 [12:48:09]line Место: АЗС № 176 "Партнер Нефть" [12:48:09]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:48:09]line СНО: Общий режим [12:48:09]line Чек 43 22.09.2024 12:48 [12:48:09]line Смена: 180 ФФД: 1.0 [12:48:09]line ЗНМ: 0300000010 [12:48:09]line РНМ: 0000000000152968 [12:48:09]line Версия ККМ: v1.0 [12:48:09]line ФМ: 0000000000959456 [12:48:09]line ФД: 18647 [12:48:09]line ФПД: 68069402996106 [12:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T124814&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18647&fm=68069402996106&tin=02508201610067®Number=0000000000152968&sum=31500 [12:48:09]line 0 [12:48:09]OFD Sender: Processing packet 18647 [packets to send 7, broken 6] [12:48:09]ProducePacketName [12:48:09]name=ofd_packets/00018647 [12:48:09]written 0, free lines is 4095 [12:48:09]OFD Sender: To server: pG, [12:48:09]CommunicateWithHost lk.salyk.kg:30040 [12:48:09]ConnectInit lk.salyk.kg [12:48:10]Connected sock=10 [12:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 FD 01 00 00 C4 A4 F5 01 19 A2 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 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 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 0E 12 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D7 48 00 00 35 04 06 00 3D E8 A4 95 ED 8A E5 91 03 F5 09 46 7C 79 [12:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FB FA 47 00 A3 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 39 35 39 34 35 36 10 04 04 00 D7 48 00 00 F4 03 04 00 76 BB EF 66 B6 04 01 00 00 2A BE 9E 7B 33 EE 9A A2 [12:48:10]CommunicateWithHost err = 0 [12:48:10]CheckOFDResponse [12:48:10]1017 (14) - 77093643461234 [12:48:10]1041 (16) - 0000000000959456 [12:48:10]1040 (4) - 18647 [12:48:10]1012 (4) - 22.09.2024 06:38 [12:48:10]1206 (1) - 0 [12:48:10]OFD Sender: Remove packet 18647 [12:48:10]ProducePacketName [12:48:10]name=ofd_packets/00018647 [12:48:10]NVStorageDeleteData [12:48:10]Write to MH i2c: 01 00 00 A2 2C CE [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 A2 2C 00 00 00 00 00 89 0C 6A [12:48:10]RasterBufferAndPrint [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]line [12:48:10]written 0, free lines is 3218 [12:48:10]MH_Cut [12:48:10]Write to MH i2c: D1 01 00 A9 2C 01 A7 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 01 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: D1 01 00 A9 2C 00 A6 [12:48:10]Write to MH i2c: 01 00 00 AA 2C D6 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]OFD Sender: No OFD packet to send [12:48:11]*** Cut start [12:48:11]*** Partial cut [12:48:11]*** CUTSNS_PIN = 1 [12:48:11]*** CUTSNS_PIN = 0 [12:48:11]*** Brake cut motor [12:48:11]Read from MH i2c: 01 [12:48:11]MH_I2C_Read... [12:48:11]*** Stop cut motor [12:48:11]*** Cut end [12:48:11]Read from MH i2c: 01 07 00 [12:48:11]MH_I2C_Read... [12:48:11]Read from MH i2c: 01 07 00 AA 2C 00 00 00 00 00 FF 0F EB [12:48:11]process_action close_receipt done [12:48:11]requested_data is exist [12:48:11]produce_requested_data [12:48:11]requested_item fm.sn is exist - process it [12:48:11]wFMCommunicate request_size=4 [12:48:11]MH_SAM_APDU [12:48:11]CAPDU: 80 11 00 00 [12:48:11]Write to MH i2c: E2 08 00 AB 2C 80 11 00 00 00 00 00 00 51 [12:48:11]Write i2c OK [12:48:11]MH_I2C_Read... [12:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:11]Read from MH i2c: E2 [12:48:11]MH_I2C_Read... [12:48:11]Read from MH i2c: E2 17 00 [12:48:11]MH_I2C_Read... [12:48:11]Read from MH i2c: E2 17 00 AB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AA [12:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:48:11]wFMCommunicate OK [12:48:11]requested_item fd.num is exist - process it [12:48:11]SAM_PROTO_GetFieldsCounters [12:48:11]wFMCommunicate request_size=4 [12:48:11]MH_SAM_APDU [12:48:11]CAPDU: 80 13 00 00 [12:48:11]Write to MH i2c: E2 08 00 AC 2C 80 13 00 00 00 00 00 00 54 [12:48:11]Write i2c OK [12:48:11]MH_I2C_Read... [12:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:12]Read from MH i2c: E2 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 62 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 62 00 AC 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D7 48 00 00 0E 04 04 00 B4 00 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 D5 [12:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D7 48 00 00 0E 04 04 00 B4 00 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 [12:48:12]wFMCommunicate OK [12:48:12]SAM_PROTO_GetFieldsCounters done [12:48:12]requested_item shift.num is exist - process it [12:48:12]requested_item shift.opened is exist - process it [12:48:12]req_shift_opened [12:48:12]FM_GetShiftState [12:48:12]SAM_PROTO_GetShiftState [12:48:12]wFMCommunicate request_size=4 [12:48:12]MH_SAM_APDU [12:48:12]CAPDU: 80 13 01 00 [12:48:12]Write to MH i2c: E2 08 00 AD 2C 80 13 01 00 00 00 00 00 56 [12:48:12]Write i2c OK [12:48:12]MH_I2C_Read... [12:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:12]Read from MH i2c: E2 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 0E 00 [12:48:12]MH_I2C_Read... [12:48:12]Read from MH i2c: E2 0E 00 AD 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 16 [12:48:12]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:48:12]wFMCommunicate OK [12:48:12]SAM_PROTO_GetShiftState done [12:48:12]FM_GetShiftState done [12:48:12]req_shift_opened done [12:48:12]requested_item shift.open_date is exist - process it [12:48:12]req_shift_open_date [12:48:12]req_shift_open_date done [12:48:12]produce_requested_data done [12:48:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18647,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:48:12]process_action_free close_receipt [12:48:12]json_value_free [12:48:12]json_value_free done [12:48:12]process_json_proto returns [12:48:12]Send response to host [12:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18647,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:48:12]free response buf [12:48:12]execute_script done [12:48:12]execute_script returns [12:48:12]free content buf [12:48:12]Sock 7.Close socket [12:48:12]Sock 7.Thread stoped [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:06]accept exits with 9 [12:53:06]New connection [12:53:06]New thread 3066522980 created [12:53:06]Thread 3066666340 joined [12:53:06]Waiting for new connection... [12:53:06] Sock 9.Parse request [12:53:06]Sock 9.Check first char [12:53:06]Sock 9.First char is OK [12:53:06]request: POST /json_proto HTTP/1.0 [12:53:06]Method: POST [12:53:06]URL: /json_proto [12:53:06]Method is POST - this is cgi request [12:53:06]url: /json_proto [12:53:06]query_string will be loaded in cgi processing [12:53:06]execute_cgi json_proto POST (null) [12:53:06]execute_cgi path=json_proto method=POST [12:53:06]POST find Content-Length [12:53:06]Host: 172.17.62.196:8080 [12:53:06]Content-Length: 1028 [12:53:06]Content-Type: application/json [12:53:06] [12:53:06]POST finish read [12:53:06]Found Content-Length = 1028 [12:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16572", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 2.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" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:06]execute_script... [12: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)16572", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 2.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" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:06]POST & json_proto [12:53:06]process_json_proto [12:53:06]json parsed OK: [12:53:06]protocol is kg_v1.0 [12:53:06]action value=close_receipt [12:53:06]process_action close_receipt [12:53:06]cmd_close_receipt [12:53:06]MH_GetDate [12:53:06]Write to MH i2c: F0 00 00 AE 2C C9 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: F0 09 00 AE 2C 00 39 13 F0 66 CE CC 0E 66 82 [12:53:06]GetLastDocTimeStamp 1727009294 [12:53:06]current date 1727009593 [12:53:06]FM_GetShiftState [12:53:06]SAM_PROTO_GetShiftState [12:53:06]wFMCommunicate request_size=4 [12:53:06]MH_SAM_APDU [12:53:06]CAPDU: 80 13 01 00 [12:53:06]Write to MH i2c: E2 08 00 AF 2C 80 13 01 00 00 00 00 00 58 [12:53:06]Write i2c OK [12:53:06]MH_I2C_Read... [12:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:06]Read from MH i2c: E2 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 [12:53:06]MH_I2C_Read... [12:53:06]Read from MH i2c: E2 0E 00 AF 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 18 [12:53:06]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:53:06]wFMCommunicate OK [12:53:06]SAM_PROTO_GetShiftState done [12:53:06]FM_GetShiftState done [12:53:06]opened in 1726963967 [12:53:06]opened+sec_in_day 1727050367 [12:53:06]quantity*price = 26000 [12:53:06]sum+1 = 26001 [12:53:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.41 Наличными: 0.00 Безнал.: 390.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 44 22.09.2024 12:53 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18648 ФПД: 92631161214282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125313&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18648&fm=92631161214282&tin=02508201610067®Number=0000000000152968&sum=39000 0 [12:53:07]StoreToDocumentArchive [12:53:07]shift 180 fd 18648 [12:53:07]save to /storage/0180/doc_00018648 [12:53:07]save last doc name /storage/0180/doc_00018648 to /storage/kkm_last_doc_name [12:53:07]save OK [12:53:07]Clear old archive folders... [12:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=377 [12:53:07]tlvbuf is 01A652C0 [12:53:07]SAM_PROTO_ClearQueue [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 09 00 00 [12:53:07]Write to MH i2c: E2 08 00 BC 2C 80 09 00 00 00 00 00 00 5A [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 BC 2C 00 90 00 5C [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_ClearQueue done [12:53:07]KKMCreateOFDPacket [12:53:07]OFDProtocolAddRootSTLVToBuf [12:53:07]FM_MakeSignedData [12:53:07]FM_MakeSignedData [12:53:07]SAM_PROTO_SignData [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 01 02 [12:53:07]Write to MH i2c: E2 08 00 BD 2C 80 0D 01 02 00 00 00 00 62 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 BD 2C 00 90 00 5D [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=255 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 02 02 FA 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE [12:53:07]Write to MH i2c: E2 02 01 BE 2C 80 0D 02 02 FA 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 00 00 6C [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 BE 2C 00 90 00 5E [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=136 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 39 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D8 48 00 00 35 04 06 00 54 3F 5F 75 95 4A [12:53:07]Write to MH i2c: E2 8B 00 BF 2C 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 39 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D8 48 00 00 35 04 06 00 54 3F 5F 75 95 4A 00 00 CB [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 03 00 BF 2C 00 90 00 5F [12:53:07]RAPDU: 90 00 [12:53:07]wFMCommunicate OK [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 0D 03 02 [12:53:07]Write to MH i2c: E2 08 00 C0 2C 80 0D 03 02 00 00 00 00 67 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0B 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 0B 00 C0 2C 00 2F 72 6E B3 04 12 FC 39 90 00 75 [12:53:07]RAPDU: 2F 72 6E B3 04 12 FC 39 90 00 [12:53:07]wFMCommunicate OK [12:53:07]SAM_PROTO_SignData done [12:53:07]FM_MakeSignedData done [12:53:07]CreateOFDProtocolMessage [12:53:07]wFMCommunicate request_size=4 [12:53:07]MH_SAM_APDU [12:53:07]CAPDU: 80 11 00 00 [12:53:07]Write to MH i2c: E2 08 00 C1 2C 80 11 00 00 00 00 00 00 67 [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:07]Read from MH i2c: E2 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 17 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: E2 17 00 C1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C0 [12:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:53:07]wFMCommunicate OK [12:53:07]CreateOFDProtocolMessage done [12:53:07]OFDSenderStorePacket 18648 [12:53:07]StoreOFDPacket docnum=18648 [12:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8D 01 00 00 DC 44 85 01 19 3F 5A 03 01 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 39 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D8 48 00 00 35 04 06 00 54 3F 5F 75 95 4A 2F 72 6E B3 04 12 FC 39 [12:53:07]CheckFolder [12:53:07]dirname=/storage/ofd_packets [12:53:07]CheckFolder done [12:53:07]ProducePacketName [12:53:07]name=ofd_packets/00018648 [12:53:07]NVStorageSaveData ofd_packets/00018648 [12:53:07]File name is /storage/ofd_packets/00018648 [12:53:07]Write 427 bytes [12:53:07]NVStorageSaveData done [12:53:07]OFDSenderStorePacket done [12:53:07]KKMCreateOFDPacket done [12:53:07]NVStorageSaveData kkm_last_timestamp [12:53:07]File name is /storage/kkm_last_timestamp [12:53:07]Write 4 bytes [12:53:07]NVStorageSaveData done [12:53:07]ExternCall_PrintAddStr [12:53:07]wPrintStart [12:53:07]Write to MH i2c: 01 00 00 C2 2C EE [12:53:07]Write i2c OK [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 07 00 [12:53:07]MH_I2C_Read... [12:53:07]Read from MH i2c: 01 07 00 C2 2C 00 00 00 00 00 FF 0F 03 [12:53:07]RasterBufferAndPrint [12:53:07]line Счет N : (3)16572 [12:53:07]line ИНН: 02508201610067 [12:53:08]line Контрольно-Кассовый Чек [12:53:08]line ПРОДАЖА [12:53:08]line Товар: 2000036230011 [12:53:08]line Кофе Латте XL(GABB TRADE) [12:53:08]line 2.000 * 130.00 [12:53:08]line = 260.00 [12:53:08]line НДС 12% НСП 1% [12:53:08]line > о реализуемом товаре [12:53:08]line Товар: 7622210309396 [12:53:08]line Печенье "OREO" 38 гр [12:53:08]line 2.000 * 65.00 [12:53:08]line = 130.00 [12:53:08]line НДС 12% НСП 1% [12:53:08]line > о реализуемом товаре [12:53:08]line ИТОГО: 390.00 [12:53:08]line НСП 1% : 3.45 [12:53:08]line НДС 12% : 41.41 [12:53:08]line Наличными: 0.00 [12:53:08]line Безнал.: 390.00 [12:53:08]line Место: АЗС № 176 "Партнер Нефть" [12:53:08]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:53:08]line СНО: Общий режим [12:53:08]line Чек 44 22.09.2024 12:53 [12:53:08]line Смена: 180 ФФД: 1.0 [12:53:08]line ЗНМ: 0300000010 [12:53:08]line РНМ: 0000000000152968 [12:53:08]line Версия ККМ: v1.0 [12:53:08]line Платежная система: O! деньги [12:53:08]line ФМ: 0000000000959456 [12:53:08]line ФД: 18648 [12:53:08]line ФПД: 92631161214282 [12:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125313&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18648&fm=92631161214282&tin=02508201610067®Number=0000000000152968&sum=39000 [12:53:08]line 0 [12:53:08]OFD Sender: Processing packet 18648 [packets to send 7, broken 6] [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00018648 [12:53:08]OFD Sender: To server: pG, [12:53:08]CommunicateWithHost lk.salyk.kg:30040 [12:53:08]ConnectInit lk.salyk.kg [12:53:08]written 0, free lines is 4095 [12:53:08]Connected sock=10 [12:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8D 01 00 00 DC 44 85 01 19 3F 5A 03 01 00 03 00 79 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 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 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 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 98 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 39 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D8 48 00 00 35 04 06 00 54 3F 5F 75 95 4A 2F 72 6E B3 04 12 FC 39 [12:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 77 7F 47 00 61 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D8 48 00 00 F4 03 04 00 A1 BC EF 66 B6 04 01 00 00 0D AE 7E 39 5E 27 02 10 [12:53:08]CommunicateWithHost err = 0 [12:53:08]CheckOFDResponse [12:53:08]1017 (14) - 77093643461234 [12:53:08]1041 (16) - 0000000000959456 [12:53:08]1040 (4) - 18648 [12:53:08]1012 (4) - 22.09.2024 06:43 [12:53:08]1206 (1) - 0 [12:53:08]OFD Sender: Remove packet 18648 [12:53:08]ProducePacketName [12:53:08]name=ofd_packets/00018648 [12:53:08]NVStorageDeleteData [12:53:08]Write to MH i2c: 01 00 00 F2 2C 1E [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 F2 2C 00 00 00 00 00 CD 0C FE [12:53:08]RasterBufferAndPrint [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]line [12:53:08]written 0, free lines is 3284 [12:53:08]MH_Cut [12:53:08]Write to MH i2c: D1 01 00 F9 2C 01 F7 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: D1 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: D1 01 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: D1 01 00 F9 2C 00 F6 [12:53:08]Write to MH i2c: 01 00 00 FA 2C 26 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:09]OFD Sender: No OFD packet to send [12:53:09]*** Cut start [12:53:09]*** Partial cut [12:53:09]*** CUTSNS_PIN = 1 [12:53:09]*** CUTSNS_PIN = 0 [12:53:09]*** Brake cut motor [12:53:10]Read from MH i2c: 01 [12:53:10]MH_I2C_Read... [12:53:10]*** Stop cut motor [12:53:10]*** Cut end [12:53:10]Read from MH i2c: 01 07 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 FF 0F 3B [12:53:10]process_action close_receipt done [12:53:10]requested_data is exist [12:53:10]produce_requested_data [12:53:10]requested_item fm.sn is exist - process it [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 11 00 00 [12:53:10]Write to MH i2c: E2 08 00 FB 2C 80 11 00 00 00 00 00 00 A1 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 17 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 17 00 FB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FA [12:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:53:10]wFMCommunicate OK [12:53:10]requested_item fd.num is exist - process it [12:53:10]SAM_PROTO_GetFieldsCounters [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 13 00 00 [12:53:10]Write to MH i2c: E2 08 00 FC 2C 80 13 00 00 00 00 00 00 A4 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 62 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 62 00 FC 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D8 48 00 00 0E 04 04 00 B4 00 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 29 [12:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D8 48 00 00 0E 04 04 00 B4 00 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 [12:53:10]wFMCommunicate OK [12:53:10]SAM_PROTO_GetFieldsCounters done [12:53:10]requested_item shift.num is exist - process it [12:53:10]requested_item shift.opened is exist - process it [12:53:10]req_shift_opened [12:53:10]FM_GetShiftState [12:53:10]SAM_PROTO_GetShiftState [12:53:10]wFMCommunicate request_size=4 [12:53:10]MH_SAM_APDU [12:53:10]CAPDU: 80 13 01 00 [12:53:10]Write to MH i2c: E2 08 00 FD 2C 80 13 01 00 00 00 00 00 A6 [12:53:10]Write i2c OK [12:53:10]MH_I2C_Read... [12:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:10]Read from MH i2c: E2 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 0E 00 [12:53:10]MH_I2C_Read... [12:53:10]Read from MH i2c: E2 0E 00 FD 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 66 [12:53:10]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:53:10]wFMCommunicate OK [12:53:10]SAM_PROTO_GetShiftState done [12:53:10]FM_GetShiftState done [12:53:10]req_shift_opened done [12:53:10]requested_item shift.open_date is exist - process it [12:53:10]req_shift_open_date [12:53:10]req_shift_open_date done [12:53:10]produce_requested_data done [12:53:10]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18648,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:53:10]process_action_free close_receipt [12:53:10]json_value_free [12:53:10]json_value_free done [12:53:10]process_json_proto returns [12:53:10]Send response to host [12:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18648,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:53:10]free response buf [12:53:10]execute_script done [12:53:10]execute_script returns [12:53:10]free content buf [12:53:10]Sock 9.Close socket [12:53:10]Sock 9.Thread stoped [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]accept exits with 7 [12:54:49]New connection [12:54:49]New thread 3066666340 created [12:54:49]Thread 3066522980 joined [12:54:49]Waiting for new connection... [12:54:49] Sock 7.Parse request [12:54:49]Sock 7.Check first char [12:54:49]Sock 7.First char is OK [12:54:49]request: POST /json_proto HTTP/1.0 [12:54:49]Method: POST [12:54:49]URL: /json_proto [12:54:49]Method is POST - this is cgi request [12:54:49]url: /json_proto [12:54:49]query_string will be loaded in cgi processing [12:54:49]execute_cgi json_proto POST (null) [12:54:49]execute_cgi path=json_proto method=POST [12:54:49]POST find Content-Length [12:54:49]Host: 172.17.62.196:8080 [12:54:49]Content-Length: 658 [12:54:49]Content-Type: application/json [12:54:49] [12:54:49]POST finish read [12:54:49]Found Content-Length = 658 [12:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16573", "tax_sys" : 0, "items" : [ { "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:49]execute_script... [12:54: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)16573", "tax_sys" : 0, "items" : [ { "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:49]POST & json_proto [12:54:49]process_json_proto [12:54:49]json parsed OK: [12:54:49]protocol is kg_v1.0 [12:54:49]action value=close_receipt [12:54:49]process_action close_receipt [12:54:49]cmd_close_receipt [12:54:49]MH_GetDate [12:54:49]Write to MH i2c: F0 00 00 FE 2C 19 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 09 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: F0 09 00 FE 2C 00 A0 13 F0 66 CE CC 0E 66 39 [12:54:49]GetLastDocTimeStamp 1727009593 [12:54:49]current date 1727009696 [12:54:49]FM_GetShiftState [12:54:49]SAM_PROTO_GetShiftState [12:54:49]wFMCommunicate request_size=4 [12:54:49]MH_SAM_APDU [12:54:49]CAPDU: 80 13 01 00 [12:54:49]Write to MH i2c: E2 08 00 FF 2C 80 13 01 00 00 00 00 00 A8 [12:54:49]Write i2c OK [12:54:49]MH_I2C_Read... [12:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:49]Read from MH i2c: E2 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0E 00 [12:54:49]MH_I2C_Read... [12:54:49]Read from MH i2c: E2 0E 00 FF 2C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 68 [12:54:49]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:54:49]wFMCommunicate OK [12:54:49]SAM_PROTO_GetShiftState done [12:54:49]FM_GetShiftState done [12:54:49]opened in 1726963967 [12:54:49]opened+sec_in_day 1727050367 [12:54:49]quantity*price = 5100 [12:54:49]sum+1 = 5101 [12:54:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 45 22.09.2024 12:54 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18649 ФПД: 226578080581027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125456&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18649&fm=226578080581027&tin=02508201610067®Number=0000000000152968&sum=5100 0 [12:54:50]StoreToDocumentArchive [12:54:50]shift 180 fd 18649 [12:54:50]save to /storage/0180/doc_00018649 [12:54:50]save last doc name /storage/0180/doc_00018649 to /storage/kkm_last_doc_name [12:54:50]save OK [12:54:50]Clear old archive folders... [12:54:50]ProcessDocumentItem done err = 0, tmpTLVsize=290 [12:54:50]tlvbuf is 019DAB70 [12:54:50]SAM_PROTO_ClearQueue [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 09 00 00 [12:54:50]Write to MH i2c: E2 08 00 0C 2D 80 09 00 00 00 00 00 00 AB [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_ClearQueue done [12:54:50]KKMCreateOFDPacket [12:54:50]OFDProtocolAddRootSTLVToBuf [12:54:50]FM_MakeSignedData [12:54:50]FM_MakeSignedData [12:54:50]SAM_PROTO_SignData [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 01 02 [12:54:50]Write to MH i2c: E2 08 00 0D 2D 80 0D 01 02 00 00 00 00 B3 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 0D 2D 00 90 00 AE [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]wFMCommunicate request_size=255 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 2D 00 00 00 F4 03 04 00 A0 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:54:50]Write to MH i2c: E2 02 01 0E 2D 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 2D 00 00 00 F4 03 04 00 A0 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F4 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 0E 2D 00 90 00 AF [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]wFMCommunicate request_size=49 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 02 02 2C 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D9 48 00 00 35 04 06 00 CE 12 52 01 C5 A3 [12:54:50]Write to MH i2c: E2 34 00 0F 2D 80 0D 02 02 2C 00 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D9 48 00 00 35 04 06 00 CE 12 52 01 C5 A3 00 00 AB [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 03 00 0F 2D 00 90 00 B0 [12:54:50]RAPDU: 90 00 [12:54:50]wFMCommunicate OK [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 0D 03 02 [12:54:50]Write to MH i2c: E2 08 00 10 2D 80 0D 03 02 00 00 00 00 B8 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0B 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 0B 00 10 2D 00 1F 8D FA 36 B4 ED 18 77 90 00 C5 [12:54:50]RAPDU: 1F 8D FA 36 B4 ED 18 77 90 00 [12:54:50]wFMCommunicate OK [12:54:50]SAM_PROTO_SignData done [12:54:50]FM_MakeSignedData done [12:54:50]CreateOFDProtocolMessage [12:54:50]wFMCommunicate request_size=4 [12:54:50]MH_SAM_APDU [12:54:50]CAPDU: 80 11 00 00 [12:54:50]Write to MH i2c: E2 08 00 11 2D 80 11 00 00 00 00 00 00 B8 [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:50]Read from MH i2c: E2 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 17 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: E2 17 00 11 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 11 [12:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:54:50]wFMCommunicate OK [12:54:50]CreateOFDProtocolMessage done [12:54:50]OFDSenderStorePacket 18649 [12:54:50]StoreOFDPacket docnum=18649 [12:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 36 01 00 00 94 2E 2E 01 CF 6A 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 2D 00 00 00 F4 03 04 00 A0 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D9 48 00 00 35 04 06 00 CE 12 52 01 C5 A3 1F 8D FA 36 B4 ED 18 77 [12:54:50]CheckFolder [12:54:50]dirname=/storage/ofd_packets [12:54:50]CheckFolder done [12:54:50]ProducePacketName [12:54:50]name=ofd_packets/00018649 [12:54:50]NVStorageSaveData ofd_packets/00018649 [12:54:50]File name is /storage/ofd_packets/00018649 [12:54:50]Write 340 bytes [12:54:50]NVStorageSaveData done [12:54:50]OFDSenderStorePacket done [12:54:50]KKMCreateOFDPacket done [12:54:50]NVStorageSaveData kkm_last_timestamp [12:54:50]File name is /storage/kkm_last_timestamp [12:54:50]Write 4 bytes [12:54:50]NVStorageSaveData done [12:54:50]ExternCall_PrintAddStr [12:54:50]wPrintStart [12:54:50]Write to MH i2c: 01 00 00 12 2D 3F [12:54:50]Write i2c OK [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 07 00 [12:54:50]MH_I2C_Read... [12:54:50]Read from MH i2c: 01 07 00 12 2D 00 00 00 00 00 FF 0F 54 [12:54:50]RasterBufferAndPrint [12:54:50]line Счет N : (3)16573 [12:54:50]line ИНН: 02508201610067 [12:54:50]line Контрольно-Кассовый Чек [12:54:50]line ПРОДАЖА [12:54:50]line Товар: 46196613 [12:54:50]line Р/ж Orbit XXL white cочное яблоко 20,4г [12:54:50]line 1.000 * 51.00 [12:54:50]line = 51.00 [12:54:50]line НДС 12% НСП 1% [12:54:50]line > о реализуемом товаре [12:54:50]line ИТОГО: 51.00 [12:54:50]line НСП 1% : 0.45 [12:54:50]line НДС 12% : 5.42 [12:54:50]line Наличными: 51.00 [12:54:50]line Безнал.: 0.00 [12:54:50]line Место: АЗС № 176 "Партнер Нефть" [12:54:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:54:50]line СНО: Общий режим [12:54:50]line Чек 45 22.09.2024 12:54 [12:54:50]line Смена: 180 ФФД: 1.0 [12:54:50]line ЗНМ: 0300000010 [12:54:50]line РНМ: 0000000000152968 [12:54:50]line Версия ККМ: v1.0 [12:54:50]line ФМ: 0000000000959456 [12:54:50]line ФД: 18649 [12:54:50]line ФПД: 226578080581027 [12:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125456&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18649&fm=226578080581027&tin=02508201610067®Number=0000000000152968&sum=5100 [12:54:51]line 0 [12:54:51]OFD Sender: Processing packet 18649 [packets to send 7, broken 6] [12:54:51]ProducePacketName [12:54:51]name=ofd_packets/00018649 [12:54:51]OFD Sender: To server: pG, [12:54:51]CommunicateWithHost lk.salyk.kg:30040 [12:54:51]ConnectInit lk.salyk.kg [12:54:51]written 0, free lines is 4095 [12:54:51]Connected sock=10 [12:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 36 01 00 00 94 2E 2E 01 CF 6A 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 2D 00 00 00 F4 03 04 00 A0 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 D9 48 00 00 35 04 06 00 CE 12 52 01 C5 A3 1F 8D FA 36 B4 ED 18 77 [12:54:51]Write to MH i2c: 01 00 00 3B 2D 68 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: 01 07 00 3B 2D 00 00 00 00 00 01 0D 7D [12:54:51]RasterBufferAndPrint [12:54:51]line [12:54:51]line [12:54:51]line [12:54:51]line [12:54:51]line [12:54:51]written 0, free lines is 3335 [12:54:51]MH_Cut [12:54:51]Write to MH i2c: D1 01 00 42 2D 01 41 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: D1 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: D1 01 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: D1 01 00 42 2D 00 40 [12:54:51]Write to MH i2c: 01 00 00 43 2D 70 [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 87 D3 47 00 71 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 39 35 39 34 35 36 10 04 04 00 D9 48 00 00 F4 03 04 00 07 BD EF 66 B6 04 01 00 00 57 CD 6B 97 3D 86 98 3F [12:54:51]CommunicateWithHost err = 0 [12:54:51]CheckOFDResponse [12:54:51]1017 (14) - 77093643461234 [12:54:51]1041 (16) - 0000000000959456 [12:54:51]1040 (4) - 18649 [12:54:51]1012 (4) - 22.09.2024 06:45 [12:54:51]1206 (1) - 0 [12:54:51]OFD Sender: Remove packet 18649 [12:54:51]ProducePacketName [12:54:51]name=ofd_packets/00018649 [12:54:51]NVStorageDeleteData [12:54:52]OFD Sender: No OFD packet to send [12:54:52]*** Cut start [12:54:52]*** Partial cut [12:54:52]*** CUTSNS_PIN = 1 [12:54:52]*** CUTSNS_PIN = 0 [12:54:52]*** Brake cut motor [12:54:52]Read from MH i2c: 01 [12:54:52]MH_I2C_Read... [12:54:52]*** Stop cut motor [12:54:52]*** Cut end [12:54:52]Read from MH i2c: 01 07 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: 01 07 00 43 2D 00 00 00 00 00 FF 0F 85 [12:54:52]process_action close_receipt done [12:54:52]requested_data is exist [12:54:52]produce_requested_data [12:54:52]requested_item fm.sn is exist - process it [12:54:52]wFMCommunicate request_size=4 [12:54:52]MH_SAM_APDU [12:54:52]CAPDU: 80 11 00 00 [12:54:52]Write to MH i2c: E2 08 00 44 2D 80 11 00 00 00 00 00 00 EB [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:52]Read from MH i2c: E2 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 17 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 17 00 44 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 44 [12:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:54:52]wFMCommunicate OK [12:54:52]requested_item fd.num is exist - process it [12:54:52]SAM_PROTO_GetFieldsCounters [12:54:52]wFMCommunicate request_size=4 [12:54:52]MH_SAM_APDU [12:54:52]CAPDU: 80 13 00 00 [12:54:52]Write to MH i2c: E2 08 00 45 2D 80 13 00 00 00 00 00 00 EE [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 62 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 62 00 45 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D9 48 00 00 0E 04 04 00 B4 00 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 77 [12:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 D9 48 00 00 0E 04 04 00 B4 00 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 [12:54:53]wFMCommunicate OK [12:54:53]SAM_PROTO_GetFieldsCounters done [12:54:53]requested_item shift.num is exist - process it [12:54:53]requested_item shift.opened is exist - process it [12:54:53]req_shift_opened [12:54:53]FM_GetShiftState [12:54:53]SAM_PROTO_GetShiftState [12:54:53]wFMCommunicate request_size=4 [12:54:53]MH_SAM_APDU [12:54:53]CAPDU: 80 13 01 00 [12:54:53]Write to MH i2c: E2 08 00 46 2D 80 13 01 00 00 00 00 00 F0 [12:54:53]Write i2c OK [12:54:53]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 0E 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 0E 00 46 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B0 [12:54:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:54:53]wFMCommunicate OK [12:54:53]SAM_PROTO_GetShiftState done [12:54:53]FM_GetShiftState done [12:54:53]req_shift_opened done [12:54:53]requested_item shift.open_date is exist - process it [12:54:53]req_shift_open_date [12:54:53]req_shift_open_date done [12:54:53]produce_requested_data done [12:54:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18649,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:54:53]process_action_free close_receipt [12:54:53]json_value_free [12:54:53]json_value_free done [12:54:53]process_json_proto returns [12:54:53]Send response to host [12:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18649,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:54:53]free response buf [12:54:53]execute_script done [12:54:53]execute_script returns [12:54:53]free content buf [12:54:53]Sock 7.Close socket [12:54:53]Sock 7.Thread stoped [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]accept exits with 9 [12:56:02]New connection [12:56:02]New thread 3066522980 created [12:56:02]Thread 3066666340 joined [12:56:02]Waiting for new connection... [12:56:02] Sock 9.Parse request [12:56:02]Sock 9.Check first char [12:56:02]Sock 9.First char is OK [12:56:02]request: POST /json_proto HTTP/1.0 [12:56:02]Method: POST [12:56:02]URL: /json_proto [12:56:02]Method is POST - this is cgi request [12:56:02]url: /json_proto [12:56:02]query_string will be loaded in cgi processing [12:56:02]execute_cgi json_proto POST (null) [12:56:02]execute_cgi path=json_proto method=POST [12:56:02]POST find Content-Length [12:56:02]Host: 172.17.62.196:8080 [12:56:02]Content-Length: 627 [12:56:02]Content-Type: application/json [12:56:02] [12:56:02]POST finish read [12:56:02]Found Content-Length = 627 [12:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16574", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:02]execute_script... [12:56: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)16574", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:02]POST & json_proto [12:56:02]process_json_proto [12:56:02]json parsed OK: [12:56:02]protocol is kg_v1.0 [12:56:02]action value=close_receipt [12:56:02]process_action close_receipt [12:56:02]cmd_close_receipt [12:56:02]MH_GetDate [12:56:02]Write to MH i2c: F0 00 00 47 2D 63 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: F0 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: F0 09 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: F0 09 00 47 2D 00 E9 13 F0 66 CE CC 0E 66 CC [12:56:02]GetLastDocTimeStamp 1727009696 [12:56:02]current date 1727009769 [12:56:02]FM_GetShiftState [12:56:02]SAM_PROTO_GetShiftState [12:56:02]wFMCommunicate request_size=4 [12:56:02]MH_SAM_APDU [12:56:02]CAPDU: 80 13 01 00 [12:56:02]Write to MH i2c: E2 08 00 48 2D 80 13 01 00 00 00 00 00 F2 [12:56:02]Write i2c OK [12:56:02]MH_I2C_Read... [12:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:02]Read from MH i2c: E2 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0E 00 [12:56:02]MH_I2C_Read... [12:56:02]Read from MH i2c: E2 0E 00 48 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B2 [12:56:02]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:56:02]wFMCommunicate OK [12:56:02]SAM_PROTO_GetShiftState done [12:56:02]FM_GetShiftState done [12:56:02]opened in 1726963967 [12:56:02]opened+sec_in_day 1727050367 [12:56:02]quantity*price = 13000 [12:56:02]sum+1 = 13001 [12:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 46 22.09.2024 12:56 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18650 ФПД: 256755989084036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125609&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18650&fm=256755989084036&tin=02508201610067®Number=0000000000152968&sum=13000 0 [12:56:03]StoreToDocumentArchive [12:56:03]shift 180 fd 18650 [12:56:03]save to /storage/0180/doc_00018650 [12:56:03]save last doc name /storage/0180/doc_00018650 to /storage/kkm_last_doc_name [12:56:03]save OK [12:56:03]Clear old archive folders... [12:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:56:03]tlvbuf is 019A9F90 [12:56:03]SAM_PROTO_ClearQueue [12:56:03]wFMCommunicate request_size=4 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 09 00 00 [12:56:03]Write to MH i2c: E2 08 00 55 2D 80 09 00 00 00 00 00 00 F4 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 55 2D 00 90 00 F6 [12:56:03]RAPDU: 90 00 [12:56:03]wFMCommunicate OK [12:56:03]SAM_PROTO_ClearQueue done [12:56:03]KKMCreateOFDPacket [12:56:03]OFDProtocolAddRootSTLVToBuf [12:56:03]FM_MakeSignedData [12:56:03]FM_MakeSignedData [12:56:03]SAM_PROTO_SignData [12:56:03]wFMCommunicate request_size=4 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 0D 01 02 [12:56:03]Write to MH i2c: E2 08 00 56 2D 80 0D 01 02 00 00 00 00 FC [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 56 2D 00 90 00 F7 [12:56:03]RAPDU: 90 00 [12:56:03]wFMCommunicate OK [12:56:03]wFMCommunicate request_size=255 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E9 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [12:56:03]Write to MH i2c: E2 02 01 57 2D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E9 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 51 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 57 2D 00 90 00 F8 [12:56:03]RAPDU: 90 00 [12:56:03]wFMCommunicate OK [12:56:03]wFMCommunicate request_size=35 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DA 48 00 00 35 04 06 00 E9 84 A9 85 F7 84 [12:56:03]Write to MH i2c: E2 26 00 58 2D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DA 48 00 00 35 04 06 00 E9 84 A9 85 F7 84 00 00 30 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 03 00 58 2D 00 90 00 F9 [12:56:03]RAPDU: 90 00 [12:56:03]wFMCommunicate OK [12:56:03]wFMCommunicate request_size=4 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 0D 03 02 [12:56:03]Write to MH i2c: E2 08 00 59 2D 80 0D 03 02 00 00 00 00 01 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 0B 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 0B 00 59 2D 00 37 63 37 22 A2 9F D0 DA 90 00 E0 [12:56:03]RAPDU: 37 63 37 22 A2 9F D0 DA 90 00 [12:56:03]wFMCommunicate OK [12:56:03]SAM_PROTO_SignData done [12:56:03]FM_MakeSignedData done [12:56:03]CreateOFDProtocolMessage [12:56:03]wFMCommunicate request_size=4 [12:56:03]MH_SAM_APDU [12:56:03]CAPDU: 80 11 00 00 [12:56:03]Write to MH i2c: E2 08 00 5A 2D 80 11 00 00 00 00 00 00 01 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:03]Read from MH i2c: E2 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 17 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: E2 17 00 5A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5A [12:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:56:03]wFMCommunicate OK [12:56:03]CreateOFDProtocolMessage done [12:56:03]OFDSenderStorePacket 18650 [12:56:03]StoreOFDPacket docnum=18650 [12:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 E3 72 20 01 D9 64 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E9 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DA 48 00 00 35 04 06 00 E9 84 A9 85 F7 84 37 63 37 22 A2 9F D0 DA [12:56:03]CheckFolder [12:56:03]dirname=/storage/ofd_packets [12:56:03]CheckFolder done [12:56:03]ProducePacketName [12:56:03]name=ofd_packets/00018650 [12:56:03]NVStorageSaveData ofd_packets/00018650 [12:56:03]File name is /storage/ofd_packets/00018650 [12:56:03]Write 326 bytes [12:56:03]NVStorageSaveData done [12:56:03]OFDSenderStorePacket done [12:56:03]KKMCreateOFDPacket done [12:56:03]NVStorageSaveData kkm_last_timestamp [12:56:03]File name is /storage/kkm_last_timestamp [12:56:03]Write 4 bytes [12:56:03]NVStorageSaveData done [12:56:03]ExternCall_PrintAddStr [12:56:03]wPrintStart [12:56:03]Write to MH i2c: 01 00 00 5B 2D 88 [12:56:03]Write i2c OK [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 07 00 [12:56:03]MH_I2C_Read... [12:56:03]Read from MH i2c: 01 07 00 5B 2D 00 00 00 00 00 FF 0F 9D [12:56:03]RasterBufferAndPrint [12:56:03]line Счет N : (3)16574 [12:56:03]line ИНН: 02508201610067 [12:56:03]line Контрольно-Кассовый Чек [12:56:03]line ПРОДАЖА [12:56:03]line Товар: 2000036230011 [12:56:03]line Кофе Латте XL(GABB TRADE) [12:56:03]line 1.000 * 130.00 [12:56:03]line = 130.00 [12:56:03]line НДС 12% НСП 1% [12:56:03]line > о реализуемом товаре [12:56:03]line ИТОГО: 130.00 [12:56:03]line НСП 1% : 1.15 [12:56:03]line НДС 12% : 13.80 [12:56:03]line Наличными: 130.00 [12:56:03]line Безнал.: 0.00 [12:56:03]line Место: АЗС № 176 "Партнер Нефть" [12:56:03]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:56:03]line СНО: Общий режим [12:56:03]line Чек 46 22.09.2024 12:56 [12:56:03]line Смена: 180 ФФД: 1.0 [12:56:03]line ЗНМ: 0300000010 [12:56:03]line РНМ: 0000000000152968 [12:56:03]line Версия ККМ: v1.0 [12:56:03]line ФМ: 0000000000959456 [12:56:03]line ФД: 18650 [12:56:03]line ФПД: 256755989084036 [12:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125609&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18650&fm=256755989084036&tin=02508201610067®Number=0000000000152968&sum=13000 [12:56:04]line 0 [12:56:04]OFD Sender: Processing packet 18650 [packets to send 7, broken 6] [12:56:04]ProducePacketName [12:56:04]name=ofd_packets/00018650 [12:56:04]OFD Sender: To server: pG, [12:56:04]CommunicateWithHost lk.salyk.kg:30040 [12:56:04]ConnectInit lk.salyk.kg [12:56:04]written 0, free lines is 4095 [12:56:04]Connected sock=10 [12:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 E3 72 20 01 D9 64 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E9 13 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DA 48 00 00 35 04 06 00 E9 84 A9 85 F7 84 37 63 37 22 A2 9F D0 DA [12:56:04]Write to MH i2c: 01 00 00 83 2D B0 [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: 01 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: 01 07 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: 01 07 00 83 2D 00 00 00 00 00 26 0D EA [12:56:04]RasterBufferAndPrint [12:56:04]line [12:56:04]line [12:56:04]line [12:56:04]line [12:56:04]line [12:56:04]written 0, free lines is 3375 [12:56:04]MH_Cut [12:56:04]Write to MH i2c: D1 01 00 8A 2D 01 89 [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: D1 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: D1 01 00 [12:56:04]MH_I2C_Read... [12:56:04]Read from MH i2c: D1 01 00 8A 2D 00 88 [12:56:04]Write to MH i2c: 01 00 00 8B 2D B8 [12:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 41 91 47 00 56 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DA 48 00 00 F4 03 04 00 50 BD EF 66 B6 04 01 00 00 5F 57 0D 10 6C B9 EE 8B [12:56:04]CommunicateWithHost err = 0 [12:56:04]CheckOFDResponse [12:56:04]1017 (14) - 77093643461234 [12:56:04]1041 (16) - 0000000000959456 [12:56:04]1040 (4) - 18650 [12:56:04]1012 (4) - 22.09.2024 06:46 [12:56:04]1206 (1) - 0 [12:56:04]OFD Sender: Remove packet 18650 [12:56:04]ProducePacketName [12:56:04]name=ofd_packets/00018650 [12:56:04]NVStorageDeleteData [12:56:04]Write i2c OK [12:56:04]MH_I2C_Read... [12:56:05]OFD Sender: No OFD packet to send [12:56:05]*** Cut start [12:56:05]*** Partial cut [12:56:05]*** CUTSNS_PIN = 1 [12:56:05]*** CUTSNS_PIN = 0 [12:56:05]*** Brake cut motor [12:56:05]Read from MH i2c: 01 [12:56:05]MH_I2C_Read... [12:56:05]*** Stop cut motor [12:56:05]*** Cut end [12:56:05]Read from MH i2c: 01 07 00 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: 01 07 00 8B 2D 00 00 00 00 00 FF 0F CD [12:56:05]process_action close_receipt done [12:56:05]requested_data is exist [12:56:05]produce_requested_data [12:56:05]requested_item fm.sn is exist - process it [12:56:05]wFMCommunicate request_size=4 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 11 00 00 [12:56:05]Write to MH i2c: E2 08 00 8C 2D 80 11 00 00 00 00 00 00 33 [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:05]Read from MH i2c: E2 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 17 00 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 17 00 8C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8C [12:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:56:05]wFMCommunicate OK [12:56:05]requested_item fd.num is exist - process it [12:56:05]SAM_PROTO_GetFieldsCounters [12:56:05]wFMCommunicate request_size=4 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 13 00 00 [12:56:05]Write to MH i2c: E2 08 00 8D 2D 80 13 00 00 00 00 00 00 36 [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:05]Read from MH i2c: E2 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 62 00 [12:56:05]MH_I2C_Read... [12:56:05]Read from MH i2c: E2 62 00 8D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DA 48 00 00 0E 04 04 00 B4 00 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 C3 [12:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DA 48 00 00 0E 04 04 00 B4 00 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 [12:56:05]wFMCommunicate OK [12:56:05]SAM_PROTO_GetFieldsCounters done [12:56:05]requested_item shift.num is exist - process it [12:56:05]requested_item shift.opened is exist - process it [12:56:05]req_shift_opened [12:56:05]FM_GetShiftState [12:56:05]SAM_PROTO_GetShiftState [12:56:05]wFMCommunicate request_size=4 [12:56:05]MH_SAM_APDU [12:56:05]CAPDU: 80 13 01 00 [12:56:05]Write to MH i2c: E2 08 00 8E 2D 80 13 01 00 00 00 00 00 38 [12:56:05]Write i2c OK [12:56:05]MH_I2C_Read... [12:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:06]Read from MH i2c: E2 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 0E 00 [12:56:06]MH_I2C_Read... [12:56:06]Read from MH i2c: E2 0E 00 8E 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 F8 [12:56:06]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:56:06]wFMCommunicate OK [12:56:06]SAM_PROTO_GetShiftState done [12:56:06]FM_GetShiftState done [12:56:06]req_shift_opened done [12:56:06]requested_item shift.open_date is exist - process it [12:56:06]req_shift_open_date [12:56:06]req_shift_open_date done [12:56:06]produce_requested_data done [12:56:06]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18650,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:56:06]process_action_free close_receipt [12:56:06]json_value_free [12:56:06]json_value_free done [12:56:06]process_json_proto returns [12:56:06]Send response to host [12:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18650,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:56:06]free response buf [12:56:06]execute_script done [12:56:06]execute_script returns [12:56:06]free content buf [12:56:06]Sock 9.Close socket [12:56:06]Sock 9.Thread stoped [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:58:56]accept exits with 7 [12:58:56]New connection [12:58:56]New thread 3066666340 created [12:58:56]Thread 3066522980 joined [12:58:56]Waiting for new connection... [12:58:56] Sock 7.Parse request [12:58:56]Sock 7.Check first char [12:58:56]Sock 7.First char is OK [12:58:56]request: POST /json_proto HTTP/1.0 [12:58:56]Method: POST [12:58:56]URL: /json_proto [12:58:56]Method is POST - this is cgi request [12:58:56]url: /json_proto [12:58:56]query_string will be loaded in cgi processing [12:58:56]execute_cgi json_proto POST (null) [12:58:56]execute_cgi path=json_proto method=POST [12:58:56]POST find Content-Length [12:58:56]Host: 172.17.62.196:8080 [12:58:56]Content-Length: 623 [12:58:56]Content-Type: application/json [12:58:56] [12:58:56]POST finish read [12:58:56]Found Content-Length = 623 [12:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16575", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:56]execute_script... [12:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16575", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:56]POST & json_proto [12:58:56]process_json_proto [12:58:56]json parsed OK: [12:58:56]protocol is kg_v1.0 [12:58:56]action value=close_receipt [12:58:56]process_action close_receipt [12:58:56]cmd_close_receipt [12:58:56]MH_GetDate [12:58:56]Write to MH i2c: F0 00 00 8F 2D AB [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 09 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: F0 09 00 8F 2D 00 97 14 F0 66 CE CC 0E 66 C3 [12:58:56]GetLastDocTimeStamp 1727009769 [12:58:56]current date 1727009943 [12:58:56]FM_GetShiftState [12:58:56]SAM_PROTO_GetShiftState [12:58:56]wFMCommunicate request_size=4 [12:58:56]MH_SAM_APDU [12:58:56]CAPDU: 80 13 01 00 [12:58:56]Write to MH i2c: E2 08 00 90 2D 80 13 01 00 00 00 00 00 3A [12:58:56]Write i2c OK [12:58:56]MH_I2C_Read... [12:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:56]Read from MH i2c: E2 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: E2 0E 00 [12:58:56]MH_I2C_Read... [12:58:56]Read from MH i2c: E2 0E 00 90 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 FA [12:58:56]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:58:56]wFMCommunicate OK [12:58:56]SAM_PROTO_GetShiftState done [12:58:56]FM_GetShiftState done [12:58:56]opened in 1726963967 [12:58:56]opened+sec_in_day 1727050367 [12:58:56]quantity*price = 15600 [12:58:56]sum+1 = 15601 [12:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 47 22.09.2024 12:59 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18651 ФПД: 8842822843615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18651&fm=8842822843615&tin=02508201610067®Number=0000000000152968&sum=15600 0 [12:58:57]StoreToDocumentArchive [12:58:57]shift 180 fd 18651 [12:58:57]save to /storage/0180/doc_00018651 [12:58:57]save last doc name /storage/0180/doc_00018651 to /storage/kkm_last_doc_name [12:58:57]save OK [12:58:57]Clear old archive folders... [12:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:58:57]tlvbuf is 01969690 [12:58:57]SAM_PROTO_ClearQueue [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 09 00 00 [12:58:57]Write to MH i2c: E2 08 00 9D 2D 80 09 00 00 00 00 00 00 3C [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 9D 2D 00 90 00 3E [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]SAM_PROTO_ClearQueue done [12:58:57]KKMCreateOFDPacket [12:58:57]OFDProtocolAddRootSTLVToBuf [12:58:57]FM_MakeSignedData [12:58:57]FM_MakeSignedData [12:58:57]SAM_PROTO_SignData [12:58:57]wFMCommunicate request_size=4 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 0D 01 02 [12:58:57]Write to MH i2c: E2 08 00 9E 2D 80 0D 01 02 00 00 00 00 44 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 9E 2D 00 90 00 3F [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]wFMCommunicate request_size=255 [12:58:57]MH_SAM_APDU [12:58:57]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 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 F0 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 2F 00 00 00 F4 03 04 00 97 14 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [12:58:57]Write to MH i2c: E2 02 01 9F 2D 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 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 F0 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 2F 00 00 00 F4 03 04 00 97 14 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 92 [12:58:57]Write i2c OK [12:58:57]MH_I2C_Read... [12:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:57]Read from MH i2c: E2 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 [12:58:57]MH_I2C_Read... [12:58:57]Read from MH i2c: E2 03 00 9F 2D 00 90 00 40 [12:58:57]RAPDU: 90 00 [12:58:57]wFMCommunicate OK [12:58:57]wFMCommunicate request_size=35 [12:58:57]MH_SAM_APDU [12:58:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DB 48 00 00 35 04 06 00 08 0A E1 50 7C DF [12:58:57]Write to MH i2c: E2 26 00 A0 2D 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DB 48 00 00 35 04 06 00 08 0A E1 50 7C DF 00 00 01 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 03 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [12:58:58]RAPDU: 90 00 [12:58:58]wFMCommunicate OK [12:58:58]wFMCommunicate request_size=4 [12:58:58]MH_SAM_APDU [12:58:58]CAPDU: 80 0D 03 02 [12:58:58]Write to MH i2c: E2 08 00 A1 2D 80 0D 03 02 00 00 00 00 49 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 0B 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 0B 00 A1 2D 00 CE 44 B1 2C 3E 34 7A DF 90 00 04 [12:58:58]RAPDU: CE 44 B1 2C 3E 34 7A DF 90 00 [12:58:58]wFMCommunicate OK [12:58:58]SAM_PROTO_SignData done [12:58:58]FM_MakeSignedData done [12:58:58]CreateOFDProtocolMessage [12:58:58]wFMCommunicate request_size=4 [12:58:58]MH_SAM_APDU [12:58:58]CAPDU: 80 11 00 00 [12:58:58]Write to MH i2c: E2 08 00 A2 2D 80 11 00 00 00 00 00 00 49 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:58]Read from MH i2c: E2 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 17 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: E2 17 00 A2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A2 [12:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:58:58]wFMCommunicate OK [12:58:58]CreateOFDProtocolMessage done [12:58:58]OFDSenderStorePacket 18651 [12:58:58]StoreOFDPacket docnum=18651 [12:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 23 A6 20 01 1B C1 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 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 F0 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 2F 00 00 00 F4 03 04 00 97 14 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DB 48 00 00 35 04 06 00 08 0A E1 50 7C DF CE 44 B1 2C 3E 34 7A DF [12:58:58]CheckFolder [12:58:58]dirname=/storage/ofd_packets [12:58:58]CheckFolder done [12:58:58]ProducePacketName [12:58:58]name=ofd_packets/00018651 [12:58:58]NVStorageSaveData ofd_packets/00018651 [12:58:58]File name is /storage/ofd_packets/00018651 [12:58:58]Write 326 bytes [12:58:58]NVStorageSaveData done [12:58:58]OFDSenderStorePacket done [12:58:58]KKMCreateOFDPacket done [12:58:58]NVStorageSaveData kkm_last_timestamp [12:58:58]File name is /storage/kkm_last_timestamp [12:58:58]Write 4 bytes [12:58:58]NVStorageSaveData done [12:58:58]ExternCall_PrintAddStr [12:58:58]wPrintStart [12:58:58]Write to MH i2c: 01 00 00 A3 2D D0 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 A3 2D 00 00 00 00 00 FF 0F E5 [12:58:58]RasterBufferAndPrint [12:58:58]line Счет N : (3)16575 [12:58:58]line ИНН: 02508201610067 [12:58:58]line Контрольно-Кассовый Чек [12:58:58]line ПРОДАЖА [12:58:58]line Товар: 48742245 [12:58:58]line Сигареты Parliament Silver Blue [12:58:58]line 1.000 * 156.00 [12:58:58]line = 156.00 [12:58:58]line НДС 12% НСП 1% [12:58:58]line > о реализуемом товаре [12:58:58]line ИТОГО: 156.00 [12:58:58]line НСП 1% : 1.38 [12:58:58]line НДС 12% : 16.57 [12:58:58]line Наличными: 156.00 [12:58:58]line Безнал.: 0.00 [12:58:58]line Место: АЗС № 176 "Партнер Нефть" [12:58:58]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [12:58:58]line СНО: Общий режим [12:58:58]line Чек 47 22.09.2024 12:59 [12:58:58]line Смена: 180 ФФД: 1.0 [12:58:58]line ЗНМ: 0300000010 [12:58:58]line РНМ: 0000000000152968 [12:58:58]line Версия ККМ: v1.0 [12:58:58]line ФМ: 0000000000959456 [12:58:58]line ФД: 18651 [12:58:58]line ФПД: 8842822843615 [12:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18651&fm=8842822843615&tin=02508201610067®Number=0000000000152968&sum=15600 [12:58:58]line 0 [12:58:58]OFD Sender: Processing packet 18651 [packets to send 7, broken 6] [12:58:58]ProducePacketName [12:58:58]name=ofd_packets/00018651 [12:58:58]OFD Sender: To server: pG, [12:58:58]CommunicateWithHost lk.salyk.kg:30040 [12:58:58]ConnectInit lk.salyk.kg [12:58:58]written 0, free lines is 4095 [12:58:58]Connected sock=10 [12:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 23 A6 20 01 1B C1 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 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 F0 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 2F 00 00 00 F4 03 04 00 97 14 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DB 48 00 00 35 04 06 00 08 0A E1 50 7C DF CE 44 B1 2C 3E 34 7A DF [12:58:58]Write to MH i2c: 01 00 00 CC 2D F9 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: 01 07 00 CC 2D 00 00 00 00 00 10 0D 1D [12:58:58]RasterBufferAndPrint [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]line [12:58:58]written 0, free lines is 3350 [12:58:58]MH_Cut [12:58:58]Write to MH i2c: D1 01 00 D3 2D 01 D2 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 01 00 [12:58:58]MH_I2C_Read... [12:58:58]Read from MH i2c: D1 01 00 D3 2D 00 D1 [12:58:58]Write to MH i2c: 01 00 00 D4 2D 01 [12:58:58]Write i2c OK [12:58:58]MH_I2C_Read... [12:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 46 50 47 00 FB 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 39 35 39 34 35 36 10 04 04 00 DB 48 00 00 F4 03 04 00 FF BD EF 66 B6 04 01 00 00 63 B6 72 B3 62 B3 51 E8 [12:58:59]CommunicateWithHost err = 0 [12:58:59]CheckOFDResponse [12:58:59]1017 (14) - 77093643461234 [12:58:59]1041 (16) - 0000000000959456 [12:58:59]1040 (4) - 18651 [12:58:59]1012 (4) - 22.09.2024 06:49 [12:58:59]1206 (1) - 0 [12:58:59]OFD Sender: Remove packet 18651 [12:58:59]ProducePacketName [12:58:59]name=ofd_packets/00018651 [12:58:59]NVStorageDeleteData [12:58:59]OFD Sender: No OFD packet to send [12:58:59]*** Cut start [12:58:59]*** Partial cut [12:58:59]*** CUTSNS_PIN = 1 [12:58:59]*** CUTSNS_PIN = 0 [12:58:59]*** Brake cut motor [12:59:00]Read from MH i2c: 01 [12:59:00]MH_I2C_Read... [12:59:00]*** Stop cut motor [12:59:00]*** Cut end [12:59:00]Read from MH i2c: 01 07 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: 01 07 00 D4 2D 00 00 00 00 00 FF 0F 16 [12:59:00]process_action close_receipt done [12:59:00]requested_data is exist [12:59:00]produce_requested_data [12:59:00]requested_item fm.sn is exist - process it [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 11 00 00 [12:59:00]Write to MH i2c: E2 08 00 D5 2D 80 11 00 00 00 00 00 00 7C [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 17 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 17 00 D5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D5 [12:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [12:59:00]wFMCommunicate OK [12:59:00]requested_item fd.num is exist - process it [12:59:00]SAM_PROTO_GetFieldsCounters [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 13 00 00 [12:59:00]Write to MH i2c: E2 08 00 D6 2D 80 13 00 00 00 00 00 00 7F [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 62 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 62 00 D6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DB 48 00 00 0E 04 04 00 B4 00 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 [12:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DB 48 00 00 0E 04 04 00 B4 00 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 [12:59:00]wFMCommunicate OK [12:59:00]SAM_PROTO_GetFieldsCounters done [12:59:00]requested_item shift.num is exist - process it [12:59:00]requested_item shift.opened is exist - process it [12:59:00]req_shift_opened [12:59:00]FM_GetShiftState [12:59:00]SAM_PROTO_GetShiftState [12:59:00]wFMCommunicate request_size=4 [12:59:00]MH_SAM_APDU [12:59:00]CAPDU: 80 13 01 00 [12:59:00]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [12:59:00]Write i2c OK [12:59:00]MH_I2C_Read... [12:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:00]Read from MH i2c: E2 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 [12:59:00]MH_I2C_Read... [12:59:00]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 41 [12:59:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [12:59:00]wFMCommunicate OK [12:59:00]SAM_PROTO_GetShiftState done [12:59:00]FM_GetShiftState done [12:59:00]req_shift_opened done [12:59:00]requested_item shift.open_date is exist - process it [12:59:00]req_shift_open_date [12:59:00]req_shift_open_date done [12:59:00]produce_requested_data done [12:59:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18651,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [12:59:00]process_action_free close_receipt [12:59:00]json_value_free [12:59:00]json_value_free done [12:59:00]process_json_proto returns [12:59:00]Send response to host [12:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18651,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [12:59:00]free response buf [12:59:00]execute_script done [12:59:00]execute_script returns [12:59:00]free content buf [12:59:00]Sock 7.Close socket [12:59:00]Sock 7.Thread stoped [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:23]accept exits with 9 [13:13:23]New connection [13:13:23]New thread 3066522980 created [13:13:23]Thread 3066666340 joined [13:13:23]Waiting for new connection... [13:13:23] Sock 9.Parse request [13:13:23]Sock 9.Check first char [13:13:23]Sock 9.First char is OK [13:13:23]request: POST /json_proto HTTP/1.0 [13:13:23]Method: POST [13:13:23]URL: /json_proto [13:13:23]Method is POST - this is cgi request [13:13:23]url: /json_proto [13:13:23]query_string will be loaded in cgi processing [13:13:23]execute_cgi json_proto POST (null) [13:13:23]execute_cgi path=json_proto method=POST [13:13:23]POST find Content-Length [13:13:23]Host: 172.17.62.196:8080 [13:13:23]Content-Length: 629 [13:13:23]Content-Type: application/json [13:13:23] [13:13:23]POST finish read [13:13:23]Found Content-Length = 629 [13:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16576", "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" ] } } [13:13:23]execute_script... [13:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16576", "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" ] } } [13:13:23]POST & json_proto [13:13:23]process_json_proto [13:13:23]json parsed OK: [13:13:23]protocol is kg_v1.0 [13:13:23]action value=close_receipt [13:13:23]process_action close_receipt [13:13:23]cmd_close_receipt [13:13:23]MH_GetDate [13:13:23]Write to MH i2c: F0 00 00 D8 2D F4 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: F0 09 00 D8 2D 00 FA 17 F0 66 CE CC 0E 66 72 [13:13:23]GetLastDocTimeStamp 1727009943 [13:13:23]current date 1727010810 [13:13:23]FM_GetShiftState [13:13:23]SAM_PROTO_GetShiftState [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 13 01 00 [13:13:23]Write to MH i2c: E2 08 00 D9 2D 80 13 01 00 00 00 00 00 83 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 D9 2D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 43 [13:13:23]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_GetShiftState done [13:13:23]FM_GetShiftState done [13:13:23]opened in 1726963967 [13:13:23]opened+sec_in_day 1727050367 [13:13:23]quantity*price = 5000 [13:13:23]sum+1 = 5001 [13:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 48 22.09.2024 13:13 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18652 ФПД: 35945189689625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131330&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18652&fm=35945189689625&tin=02508201610067®Number=0000000000152968&sum=5000 0 [13:13:24]StoreToDocumentArchive [13:13:24]shift 180 fd 18652 [13:13:24]save to /storage/0180/doc_00018652 [13:13:24]save last doc name /storage/0180/doc_00018652 to /storage/kkm_last_doc_name [13:13:24]save OK [13:13:24]Clear old archive folders... [13:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:13:24]tlvbuf is 01968AF0 [13:13:24]SAM_PROTO_ClearQueue [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 09 00 00 [13:13:24]Write to MH i2c: E2 08 00 E6 2D 80 09 00 00 00 00 00 00 85 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_ClearQueue done [13:13:24]KKMCreateOFDPacket [13:13:24]OFDProtocolAddRootSTLVToBuf [13:13:24]FM_MakeSignedData [13:13:24]FM_MakeSignedData [13:13:24]SAM_PROTO_SignData [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 01 02 [13:13:24]Write to MH i2c: E2 08 00 E7 2D 80 0D 01 02 00 00 00 00 8D [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=255 [13:13:24]MH_SAM_APDU [13:13:24]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 30 00 00 00 F4 03 04 00 FA 17 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [13:13:24]Write to MH i2c: E2 02 01 E8 2D 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 30 00 00 00 F4 03 04 00 FA 17 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 F6 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 E8 2D 00 90 00 89 [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=28 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 DC 48 00 00 35 04 06 00 20 B1 24 43 49 19 [13:13:24]Write to MH i2c: E2 1F 00 E9 2D 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 DC 48 00 00 35 04 06 00 20 B1 24 43 49 19 00 00 E0 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 03 00 E9 2D 00 90 00 8A [13:13:24]RAPDU: 90 00 [13:13:24]wFMCommunicate OK [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 0D 03 02 [13:13:24]Write to MH i2c: E2 08 00 EA 2D 80 0D 03 02 00 00 00 00 92 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0B 00 EA 2D 00 4D B9 7B FD 7A 5D F5 A8 90 00 85 [13:13:24]RAPDU: 4D B9 7B FD 7A 5D F5 A8 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_SignData done [13:13:24]FM_MakeSignedData done [13:13:24]CreateOFDProtocolMessage [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 11 00 00 [13:13:24]Write to MH i2c: E2 08 00 EB 2D 80 11 00 00 00 00 00 00 92 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 EB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EB [13:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:13:24]wFMCommunicate OK [13:13:24]CreateOFDProtocolMessage done [13:13:24]OFDSenderStorePacket 18652 [13:13:24]StoreOFDPacket docnum=18652 [13:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 10 36 19 01 BA 2C 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 30 00 00 00 F4 03 04 00 FA 17 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DC 48 00 00 35 04 06 00 20 B1 24 43 49 19 4D B9 7B FD 7A 5D F5 A8 [13:13:24]CheckFolder [13:13:24]dirname=/storage/ofd_packets [13:13:24]CheckFolder done [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00018652 [13:13:24]NVStorageSaveData ofd_packets/00018652 [13:13:24]File name is /storage/ofd_packets/00018652 [13:13:24]Write 319 bytes [13:13:24]NVStorageSaveData done [13:13:24]OFDSenderStorePacket done [13:13:24]KKMCreateOFDPacket done [13:13:24]NVStorageSaveData kkm_last_timestamp [13:13:24]File name is /storage/kkm_last_timestamp [13:13:24]Write 4 bytes [13:13:24]NVStorageSaveData done [13:13:24]ExternCall_PrintAddStr [13:13:24]wPrintStart [13:13:24]Write to MH i2c: 01 00 00 EC 2D 19 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 EC 2D 00 00 00 00 00 FF 0F 2E [13:13:24]RasterBufferAndPrint [13:13:24]line Счет N : (3)16576 [13:13:24]line ИНН: 02508201610067 [13:13:24]line Контрольно-Кассовый Чек [13:13:24]line ПРОДАЖА [13:13:24]line Товар: 4700000160358 [13:13:24]line Вода Легенда 1л [13:13:24]line 1.000 * 50.00 [13:13:24]line = 50.00 [13:13:24]line НДС 12% НСП 1% [13:13:24]line > о реализуемом товаре [13:13:24]line ИТОГО: 50.00 [13:13:24]line НСП 1% : 0.44 [13:13:24]line НДС 12% : 5.31 [13:13:24]line Наличными: 50.00 [13:13:24]line Безнал.: 0.00 [13:13:24]line Место: АЗС № 176 "Партнер Нефть" [13:13:24]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:13:24]line СНО: Общий режим [13:13:24]line Чек 48 22.09.2024 13:13 [13:13:24]line Смена: 180 ФФД: 1.0 [13:13:24]line ЗНМ: 0300000010 [13:13:24]line РНМ: 0000000000152968 [13:13:24]line Версия ККМ: v1.0 [13:13:24]line ФМ: 0000000000959456 [13:13:24]line ФД: 18652 [13:13:24]line ФПД: 35945189689625 [13:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131330&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18652&fm=35945189689625&tin=02508201610067®Number=0000000000152968&sum=5000 [13:13:25]line 0 [13:13:25]OFD Sender: Processing packet 18652 [packets to send 7, broken 6] [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00018652 [13:13:25]OFD Sender: To server: pG, [13:13:25]CommunicateWithHost lk.salyk.kg:30040 [13:13:25]ConnectInit lk.salyk.kg [13:13:25]written 0, free lines is 4095 [13:13:25]Connected sock=10 [13:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 10 36 19 01 BA 2C 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 30 00 00 00 F4 03 04 00 FA 17 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DC 48 00 00 35 04 06 00 20 B1 24 43 49 19 4D B9 7B FD 7A 5D F5 A8 [13:13:25]Write to MH i2c: 01 00 00 14 2E 42 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 14 2E 00 00 00 00 00 24 0D 7A [13:13:25]RasterBufferAndPrint [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]line [13:13:25]written 0, free lines is 3372 [13:13:25]MH_Cut [13:13:25]Write to MH i2c: D1 01 00 1B 2E 01 1B [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 01 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: D1 01 00 1B 2E 00 1A [13:13:25]Write to MH i2c: 01 00 00 1C 2E 4A [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 32 9A 47 00 5E A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DC 48 00 00 F4 03 04 00 62 C1 EF 66 B6 04 01 00 00 4F 1D A2 1D 8B E1 48 8B [13:13:25]CommunicateWithHost err = 0 [13:13:25]CheckOFDResponse [13:13:25]1017 (14) - 77093643461234 [13:13:25]1041 (16) - 0000000000959456 [13:13:25]1040 (4) - 18652 [13:13:25]1012 (4) - 22.09.2024 07:04 [13:13:25]1206 (1) - 0 [13:13:25]OFD Sender: Remove packet 18652 [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00018652 [13:13:25]NVStorageDeleteData [13:13:26]OFD Sender: No OFD packet to send [13:13:26]*** Cut start [13:13:26]*** Partial cut [13:13:26]*** CUTSNS_PIN = 1 [13:13:26]*** CUTSNS_PIN = 0 [13:13:26]*** Brake cut motor [13:13:26]Read from MH i2c: 01 [13:13:26]MH_I2C_Read... [13:13:26]*** Stop cut motor [13:13:26]*** Cut end [13:13:26]Read from MH i2c: 01 07 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: 01 07 00 1C 2E 00 00 00 00 00 FF 0F 5F [13:13:26]process_action close_receipt done [13:13:26]requested_data is exist [13:13:26]produce_requested_data [13:13:26]requested_item fm.sn is exist - process it [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 11 00 00 [13:13:26]Write to MH i2c: E2 08 00 1D 2E 80 11 00 00 00 00 00 00 C5 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 1D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1E [13:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:13:26]wFMCommunicate OK [13:13:26]requested_item fd.num is exist - process it [13:13:26]SAM_PROTO_GetFieldsCounters [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 13 00 00 [13:13:26]Write to MH i2c: E2 08 00 1E 2E 80 13 00 00 00 00 00 00 C8 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 62 00 1E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DC 48 00 00 0E 04 04 00 B4 00 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 5D [13:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DC 48 00 00 0E 04 04 00 B4 00 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 [13:13:27]wFMCommunicate OK [13:13:27]SAM_PROTO_GetFieldsCounters done [13:13:27]requested_item shift.num is exist - process it [13:13:27]requested_item shift.opened is exist - process it [13:13:27]req_shift_opened [13:13:27]FM_GetShiftState [13:13:27]SAM_PROTO_GetShiftState [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 13 01 00 [13:13:27]Write to MH i2c: E2 08 00 1F 2E 80 13 01 00 00 00 00 00 CA [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 0E 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 0E 00 1F 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 8A [13:13:27]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:13:27]wFMCommunicate OK [13:13:27]SAM_PROTO_GetShiftState done [13:13:27]FM_GetShiftState done [13:13:27]req_shift_opened done [13:13:27]requested_item shift.open_date is exist - process it [13:13:27]req_shift_open_date [13:13:27]req_shift_open_date done [13:13:27]produce_requested_data done [13:13:27]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18652,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:13:27]process_action_free close_receipt [13:13:27]json_value_free [13:13:27]json_value_free done [13:13:27]process_json_proto returns [13:13:27]Send response to host [13:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18652,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:13:27]free response buf [13:13:27]execute_script done [13:13:27]execute_script returns [13:13:27]free content buf [13:13:27]Sock 9.Close socket [13:13:27]Sock 9.Thread stoped [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:17]accept exits with 7 [13:21:17]New connection [13:21:17]New thread 3066666340 created [13:21:17]Thread 3066522980 joined [13:21:17]Waiting for new connection... [13:21:17] Sock 7.Parse request [13:21:17]Sock 7.Check first char [13:21:17]Sock 7.First char is OK [13:21:17]request: POST /json_proto HTTP/1.0 [13:21:17]Method: POST [13:21:17]URL: /json_proto [13:21:17]Method is POST - this is cgi request [13:21:17]url: /json_proto [13:21:17]query_string will be loaded in cgi processing [13:21:17]execute_cgi json_proto POST (null) [13:21:17]execute_cgi path=json_proto method=POST [13:21:17]POST find Content-Length [13:21:17]Host: 172.17.62.196:8080 [13:21:17]Content-Length: 814 [13:21:17]Content-Type: application/json [13:21:17] [13:21:17]POST finish read [13:21:17]Found Content-Length = 814 [13:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16577", "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" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:17]execute_script... [13:21: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)16577", "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" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:17]POST & json_proto [13:21:17]process_json_proto [13:21:17]json parsed OK: [13:21:17]protocol is kg_v1.0 [13:21:17]action value=close_receipt [13:21:17]process_action close_receipt [13:21:17]cmd_close_receipt [13:21:17]MH_GetDate [13:21:17]Write to MH i2c: F0 00 00 20 2E 3D [13:21:17]Write i2c OK [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: F0 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: F0 09 00 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: F0 09 00 20 2E 00 D4 19 F0 66 CE CC 0E 66 97 [13:21:17]GetLastDocTimeStamp 1727010810 [13:21:17]current date 1727011284 [13:21:17]FM_GetShiftState [13:21:17]SAM_PROTO_GetShiftState [13:21:17]wFMCommunicate request_size=4 [13:21:17]MH_SAM_APDU [13:21:17]CAPDU: 80 13 01 00 [13:21:17]Write to MH i2c: E2 08 00 21 2E 80 13 01 00 00 00 00 00 CC [13:21:17]Write i2c OK [13:21:17]MH_I2C_Read... [13:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:17]Read from MH i2c: E2 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: E2 0E 00 [13:21:17]MH_I2C_Read... [13:21:17]Read from MH i2c: E2 0E 00 21 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 8C [13:21:17]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:21:17]wFMCommunicate OK [13:21:17]SAM_PROTO_GetShiftState done [13:21:17]FM_GetShiftState done [13:21:17]opened in 1726963967 [13:21:17]opened+sec_in_day 1727050367 [13:21:17]quantity*price = 7700 [13:21:17]sum+1 = 7701 [13:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 49 22.09.2024 13:21 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18653 ФПД: 256971311038024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132124&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18653&fm=256971311038024&tin=02508201610067®Number=0000000000152968&sum=7700 0 [13:21:18]StoreToDocumentArchive [13:21:18]shift 180 fd 18653 [13:21:18]save to /storage/0180/doc_00018653 [13:21:18]save last doc name /storage/0180/doc_00018653 to /storage/kkm_last_doc_name [13:21:18]save OK [13:21:18]Clear old archive folders... [13:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [13:21:18]tlvbuf is 01983B70 [13:21:18]SAM_PROTO_ClearQueue [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 09 00 00 [13:21:18]Write to MH i2c: E2 08 00 2E 2E 80 09 00 00 00 00 00 00 CE [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_ClearQueue done [13:21:18]KKMCreateOFDPacket [13:21:18]OFDProtocolAddRootSTLVToBuf [13:21:18]FM_MakeSignedData [13:21:18]FM_MakeSignedData [13:21:18]SAM_PROTO_SignData [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 01 02 [13:21:18]Write to MH i2c: E2 08 00 2F 2E 80 0D 01 02 00 00 00 00 D6 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=255 [13:21:18]MH_SAM_APDU [13:21: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 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 D4 19 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [13:21:18]Write to MH i2c: E2 02 01 30 2E 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 D4 19 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 93 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=52 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DD 48 00 00 35 04 06 00 E9 B6 CB B6 3E 48 [13:21:18]Write to MH i2c: E2 37 00 31 2E 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DD 48 00 00 35 04 06 00 E9 B6 CB B6 3E 48 00 00 73 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 03 00 31 2E 00 90 00 D3 [13:21:18]RAPDU: 90 00 [13:21:18]wFMCommunicate OK [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 0D 03 02 [13:21:18]Write to MH i2c: E2 08 00 32 2E 80 0D 03 02 00 00 00 00 DB [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0B 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0B 00 32 2E 00 2E 11 78 EB AB 0D 34 CD 90 00 37 [13:21:18]RAPDU: 2E 11 78 EB AB 0D 34 CD 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_SignData done [13:21:18]FM_MakeSignedData done [13:21:18]CreateOFDProtocolMessage [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 11 00 00 [13:21:18]Write to MH i2c: E2 08 00 33 2E 80 11 00 00 00 00 00 00 DB [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 33 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 34 [13:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:21:18]wFMCommunicate OK [13:21:18]CreateOFDProtocolMessage done [13:21:18]OFDSenderStorePacket 18653 [13:21:18]StoreOFDPacket docnum=18653 [13:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 37 71 31 01 18 7F 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 D4 19 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DD 48 00 00 35 04 06 00 E9 B6 CB B6 3E 48 2E 11 78 EB AB 0D 34 CD [13:21:18]CheckFolder [13:21:18]dirname=/storage/ofd_packets [13:21:18]CheckFolder done [13:21:18]ProducePacketName [13:21:18]name=ofd_packets/00018653 [13:21:18]NVStorageSaveData ofd_packets/00018653 [13:21:18]File name is /storage/ofd_packets/00018653 [13:21:18]Write 343 bytes [13:21:18]NVStorageSaveData done [13:21:18]OFDSenderStorePacket done [13:21:18]KKMCreateOFDPacket done [13:21:18]NVStorageSaveData kkm_last_timestamp [13:21:18]File name is /storage/kkm_last_timestamp [13:21:18]Write 4 bytes [13:21:18]NVStorageSaveData done [13:21:18]ExternCall_PrintAddStr [13:21:18]wPrintStart [13:21:18]Write to MH i2c: 01 00 00 34 2E 62 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 34 2E 00 00 00 00 00 FF 0F 77 [13:21:18]RasterBufferAndPrint [13:21:18]line Счет N : (3)16577 [13:21:18]line ИНН: 02508201610067 [13:21:18]line Контрольно-Кассовый Чек [13:21:18]line ПРОДАЖА [13:21:18]line Товар: 4700000480050 [13:21:18]line Напиток Nitro Energy эн green ж/б 0,45л [13:21:18]line 1.000 * 77.00 [13:21:18]line = 77.00 [13:21:18]line НДС 12% НСП 1% [13:21:18]line > о реализуемом товаре [13:21:18]line ИТОГО: 77.00 [13:21:18]line НСП 1% : 0.68 [13:21:18]line НДС 12% : 8.18 [13:21:18]line Наличными: 0.00 [13:21:18]line Безнал.: 77.00 [13:21:18]line Место: АЗС № 176 "Партнер Нефть" [13:21:18]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:21:18]line СНО: Общий режим [13:21:18]line Чек 49 22.09.2024 13:21 [13:21:18]line Смена: 180 ФФД: 1.0 [13:21:18]line ЗНМ: 0300000010 [13:21:18]line РНМ: 0000000000152968 [13:21:18]line Версия ККМ: v1.0 [13:21:18]line Платежная система: O! деньги [13:21:18]line ФМ: 0000000000959456 [13:21:18]line ФД: 18653 [13:21:18]line ФПД: 256971311038024 [13:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T132124&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18653&fm=256971311038024&tin=02508201610067®Number=0000000000152968&sum=7700 [13:21:19]line 0 [13:21:19]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:21:19]ProducePacketName [13:21:19]name=ofd_packets/00018653 [13:21:19]OFD Sender: To server: pG, [13:21:19]CommunicateWithHost lk.salyk.kg:30040 [13:21:19]ConnectInit lk.salyk.kg [13:21:19]written 0, free lines is 4095 [13:21:19]Write to MH i2c: 01 00 00 5F 2E 8D [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 07 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: 01 07 00 5F 2E 00 00 00 00 00 E5 0C 85 [13:21:19]RasterBufferAndPrint [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]line [13:21:19]written 0, free lines is 3307 [13:21:19]MH_Cut [13:21:19]Write to MH i2c: D1 01 00 66 2E 01 66 [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 01 00 [13:21:19]MH_I2C_Read... [13:21:19]Read from MH i2c: D1 01 00 66 2E 00 65 [13:21:19]Write to MH i2c: 01 00 00 67 2E 95 [13:21:19]Write i2c OK [13:21:19]MH_I2C_Read... [13:21:20]*** Cut start [13:21:20]*** Partial cut [13:21:20]*** CUTSNS_PIN = 1 [13:21:20]*** CUTSNS_PIN = 0 [13:21:20]*** Brake cut motor [13:21:20]Read from MH i2c: 01 [13:21:20]MH_I2C_Read... [13:21:20]*** Stop cut motor [13:21:20]*** Cut end [13:21:20]Read from MH i2c: 01 07 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: 01 07 00 67 2E 00 00 00 00 00 FF 0F AA [13:21:20]process_action close_receipt done [13:21:20]requested_data is exist [13:21:20]produce_requested_data [13:21:20]requested_item fm.sn is exist - process it [13:21:20]wFMCommunicate request_size=4 [13:21:20]MH_SAM_APDU [13:21:20]CAPDU: 80 11 00 00 [13:21:20]Write to MH i2c: E2 08 00 68 2E 80 11 00 00 00 00 00 00 10 [13:21:20]Write i2c OK [13:21:20]MH_I2C_Read... [13:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:20]Read from MH i2c: E2 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 17 00 [13:21:20]MH_I2C_Read... [13:21:20]Read from MH i2c: E2 17 00 68 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 69 [13:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:21:20]wFMCommunicate OK [13:21:20]requested_item fd.num is exist - process it [13:21:20]SAM_PROTO_GetFieldsCounters [13:21:20]wFMCommunicate request_size=4 [13:21:20]MH_SAM_APDU [13:21:20]CAPDU: 80 13 00 00 [13:21:20]Write to MH i2c: E2 08 00 69 2E 80 13 00 00 00 00 00 00 13 [13:21:20]Write i2c OK [13:21:20]MH_I2C_Read... [13:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:21]Read from MH i2c: E2 [13:21:21]MH_I2C_Read... [13:21:21]Read from MH i2c: E2 62 00 [13:21:21]MH_I2C_Read... [13:21:21]Read from MH i2c: E2 62 00 69 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DD 48 00 00 0E 04 04 00 B4 00 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 AC [13:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DD 48 00 00 0E 04 04 00 B4 00 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 [13:21:21]wFMCommunicate OK [13:21:21]SAM_PROTO_GetFieldsCounters done [13:21:21]requested_item shift.num is exist - process it [13:21:21]requested_item shift.opened is exist - process it [13:21:21]req_shift_opened [13:21:21]FM_GetShiftState [13:21:21]SAM_PROTO_GetShiftState [13:21:21]wFMCommunicate request_size=4 [13:21:21]MH_SAM_APDU [13:21:21]CAPDU: 80 13 01 00 [13:21:21]Write to MH i2c: E2 08 00 6A 2E 80 13 01 00 00 00 00 00 15 [13:21:21]Write i2c OK [13:21:21]MH_I2C_Read... [13:21:21]Read from MH i2c: E2 [13:21:21]MH_I2C_Read... [13:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:21]Read from MH i2c: E2 0E 00 [13:21:21]MH_I2C_Read... [13:21:21]Read from MH i2c: E2 0E 00 6A 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D5 [13:21:21]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:21:21]wFMCommunicate OK [13:21:21]SAM_PROTO_GetShiftState done [13:21:21]FM_GetShiftState done [13:21:21]req_shift_opened done [13:21:21]requested_item shift.open_date is exist - process it [13:21:21]req_shift_open_date [13:21:21]req_shift_open_date done [13:21:21]produce_requested_data done [13:21:21]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18653,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:21:21]process_action_free close_receipt [13:21:21]json_value_free [13:21:21]json_value_free done [13:21:21]process_json_proto returns [13:21:21]Send response to host [13:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18653,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:21:21]free response buf [13:21:21]execute_script done [13:21:21]execute_script returns [13:21:21]free content buf [13:21:21]Sock 7.Close socket [13:21:21]Sock 7.Thread stoped [13:21:24]ConnectInit Can't take IP for lk.salyk.kg [13:21:24]CommunicateWithHost connect error [13:21:24]CommunicateWithHost err = -1 [13:21:24]OFD Sender: Server communicate error [13:21:29]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:21:29]ProducePacketName [13:21:29]name=ofd_packets/00018653 [13:21:29]OFD Sender: To server: pG, [13:21:29]CommunicateWithHost lk.salyk.kg:30040 [13:21:29]ConnectInit lk.salyk.kg [13:21:34]ConnectInit Can't take IP for lk.salyk.kg [13:21:34]CommunicateWithHost connect error [13:21:34]CommunicateWithHost err = -1 [13:21:34]OFD Sender: Server communicate error [13:21:39]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:21:39]ProducePacketName [13:21:39]name=ofd_packets/00018653 [13:21:39]OFD Sender: To server: pG, [13:21:39]CommunicateWithHost lk.salyk.kg:30040 [13:21:39]ConnectInit lk.salyk.kg [13:21:44]ConnectInit Can't take IP for lk.salyk.kg [13:21:44]CommunicateWithHost connect error [13:21:44]CommunicateWithHost err = -1 [13:21:44]OFD Sender: Server communicate error [13:21:49]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:21:49]ProducePacketName [13:21:49]name=ofd_packets/00018653 [13:21:49]OFD Sender: To server: pG, [13:21:49]CommunicateWithHost lk.salyk.kg:30040 [13:21:49]ConnectInit lk.salyk.kg [13:21:54]ConnectInit Can't take IP for lk.salyk.kg [13:21:54]CommunicateWithHost connect error [13:21:54]CommunicateWithHost err = -1 [13:21:54]OFD Sender: Server communicate error [13:21:59]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:21:59]ProducePacketName [13:21:59]name=ofd_packets/00018653 [13:21:59]OFD Sender: To server: pG, [13:21:59]CommunicateWithHost lk.salyk.kg:30040 [13:21:59]ConnectInit lk.salyk.kg [13:22:04]ConnectInit Can't take IP for lk.salyk.kg [13:22:04]CommunicateWithHost connect error [13:22:04]CommunicateWithHost err = -1 [13:22:04]OFD Sender: Server communicate error [13:22:09]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:09]ProducePacketName [13:22:09]name=ofd_packets/00018653 [13:22:09]OFD Sender: To server: pG, [13:22:09]CommunicateWithHost lk.salyk.kg:30040 [13:22:09]ConnectInit lk.salyk.kg [13:22:14]ConnectInit Can't take IP for lk.salyk.kg [13:22:14]CommunicateWithHost connect error [13:22:14]CommunicateWithHost err = -1 [13:22:14]OFD Sender: Server communicate error [13:22:19]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:19]ProducePacketName [13:22:19]name=ofd_packets/00018653 [13:22:19]OFD Sender: To server: pG, [13:22:19]CommunicateWithHost lk.salyk.kg:30040 [13:22:19]ConnectInit lk.salyk.kg [13:22:24]ConnectInit Can't take IP for lk.salyk.kg [13:22:24]CommunicateWithHost connect error [13:22:24]CommunicateWithHost err = -1 [13:22:24]OFD Sender: Server communicate error [13:22:29]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:29]ProducePacketName [13:22:29]name=ofd_packets/00018653 [13:22:29]OFD Sender: To server: pG, [13:22:29]CommunicateWithHost lk.salyk.kg:30040 [13:22:29]ConnectInit lk.salyk.kg [13:22:34]ConnectInit Can't take IP for lk.salyk.kg [13:22:34]CommunicateWithHost connect error [13:22:34]CommunicateWithHost err = -1 [13:22:34]OFD Sender: Server communicate error [13:22:39]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:39]ProducePacketName [13:22:39]name=ofd_packets/00018653 [13:22:39]OFD Sender: To server: pG, [13:22:39]CommunicateWithHost lk.salyk.kg:30040 [13:22:39]ConnectInit lk.salyk.kg [13:22:44]ConnectInit Can't take IP for lk.salyk.kg [13:22:44]CommunicateWithHost connect error [13:22:44]CommunicateWithHost err = -1 [13:22:44]OFD Sender: Server communicate error [13:22:49]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:49]ProducePacketName [13:22:49]name=ofd_packets/00018653 [13:22:49]OFD Sender: To server: pG, [13:22:49]CommunicateWithHost lk.salyk.kg:30040 [13:22:49]ConnectInit lk.salyk.kg [13:22:54]ConnectInit Can't take IP for lk.salyk.kg [13:22:54]CommunicateWithHost connect error [13:22:54]CommunicateWithHost err = -1 [13:22:54]OFD Sender: Server communicate error [13:22:59]OFD Sender: Processing packet 18653 [packets to send 7, broken 6] [13:22:59]ProducePacketName [13:22:59]name=ofd_packets/00018653 [13:22:59]OFD Sender: To server: pG, [13:22:59]CommunicateWithHost lk.salyk.kg:30040 [13:22:59]ConnectInit lk.salyk.kg [13:22:59]Connected sock=7 [13:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 37 71 31 01 18 7F 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 D4 19 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DD 48 00 00 35 04 06 00 E9 B6 CB B6 3E 48 2E 11 78 EB AB 0D 34 CD [13:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 42 07 47 00 7B 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DD 48 00 00 F4 03 04 00 A0 C3 EF 66 B6 04 01 00 00 40 30 D6 B3 D5 93 FA 39 [13:22:59]CommunicateWithHost err = 0 [13:22:59]CheckOFDResponse [13:22:59]1017 (14) - 77093643461234 [13:22:59]1041 (16) - 0000000000959456 [13:22:59]1040 (4) - 18653 [13:22:59]1012 (4) - 22.09.2024 07:13 [13:22:59]1206 (1) - 0 [13:22:59]OFD Sender: Remove packet 18653 [13:22:59]ProducePacketName [13:22:59]name=ofd_packets/00018653 [13:22:59]NVStorageDeleteData [13:23:00]OFD Sender: No OFD packet to send [13:23:04]ConnectInit Can't connect to host [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:53]recv_with_timeout no data received [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:35]accept exits with 10 [13:38:35]New connection [13:38:35]New thread 3066522980 created [13:38:35]Thread 3066666340 joined [13:38:35]Waiting for new connection... [13:38:35] Sock 10.Parse request [13:38:35]Sock 10.Check first char [13:38:35]Sock 10.First char is OK [13:38:35]request: POST /json_proto HTTP/1.0 [13:38:35]Method: POST [13:38:35]URL: /json_proto [13:38:35]Method is POST - this is cgi request [13:38:35]url: /json_proto [13:38:35]query_string will be loaded in cgi processing [13:38:35]execute_cgi json_proto POST (null) [13:38:35]execute_cgi path=json_proto method=POST [13:38:35]POST find Content-Length [13:38:35]Host: 172.17.62.196:8080 [13:38:35]Content-Length: 629 [13:38:35]Content-Type: application/json [13:38:35] [13:38:35]POST finish read [13:38:35]Found Content-Length = 629 [13:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16578", "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" ] } } [13:38:35]execute_script... [13:38: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)16578", "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" ] } } [13:38:35]POST & json_proto [13:38:35]process_json_proto [13:38:35]json parsed OK: [13:38:35]protocol is kg_v1.0 [13:38:35]action value=close_receipt [13:38:35]process_action close_receipt [13:38:35]cmd_close_receipt [13:38:35]MH_GetDate [13:38:35]Write to MH i2c: F0 00 00 6B 2E 88 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: F0 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: F0 09 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: F0 09 00 6B 2E 00 E2 1D F0 66 CE CC 0E 66 F4 [13:38:35]GetLastDocTimeStamp 1727011284 [13:38:35]current date 1727012322 [13:38:35]FM_GetShiftState [13:38:35]SAM_PROTO_GetShiftState [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 13 01 00 [13:38:35]Write to MH i2c: E2 08 00 6C 2E 80 13 01 00 00 00 00 00 17 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0E 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0E 00 6C 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D7 [13:38:35]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:38:35]wFMCommunicate OK [13:38:35]SAM_PROTO_GetShiftState done [13:38:35]FM_GetShiftState done [13:38:35]opened in 1726963967 [13:38:35]opened+sec_in_day 1727050367 [13:38:35]quantity*price = 5000 [13:38:35]sum+1 = 5001 [13:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 50 22.09.2024 13:38 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18654 ФПД: 182841706398205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133842&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18654&fm=182841706398205&tin=02508201610067®Number=0000000000152968&sum=5000 0 [13:38:36]StoreToDocumentArchive [13:38:36]shift 180 fd 18654 [13:38:36]save to /storage/0180/doc_00018654 [13:38:36]save last doc name /storage/0180/doc_00018654 to /storage/kkm_last_doc_name [13:38:36]save OK [13:38:36]Clear old archive folders... [13:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:38:36]tlvbuf is 01A61130 [13:38:36]SAM_PROTO_ClearQueue [13:38:36]wFMCommunicate request_size=4 [13:38:36]MH_SAM_APDU [13:38:36]CAPDU: 80 09 00 00 [13:38:36]Write to MH i2c: E2 08 00 79 2E 80 09 00 00 00 00 00 00 19 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [13:38:36]RAPDU: 90 00 [13:38:36]wFMCommunicate OK [13:38:36]SAM_PROTO_ClearQueue done [13:38:36]KKMCreateOFDPacket [13:38:36]OFDProtocolAddRootSTLVToBuf [13:38:36]FM_MakeSignedData [13:38:36]FM_MakeSignedData [13:38:36]SAM_PROTO_SignData [13:38:36]wFMCommunicate request_size=4 [13:38:36]MH_SAM_APDU [13:38:36]CAPDU: 80 0D 01 02 [13:38:36]Write to MH i2c: E2 08 00 7A 2E 80 0D 01 02 00 00 00 00 21 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [13:38:36]RAPDU: 90 00 [13:38:36]wFMCommunicate OK [13:38:36]wFMCommunicate request_size=255 [13:38:36]MH_SAM_APDU [13:38:36]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 32 00 00 00 F4 03 04 00 E2 1D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [13:38:36]Write to MH i2c: E2 02 01 7B 2E 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 32 00 00 00 F4 03 04 00 E2 1D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 7A [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 7B 2E 00 90 00 1D [13:38:36]RAPDU: 90 00 [13:38:36]wFMCommunicate OK [13:38:36]wFMCommunicate request_size=28 [13:38:36]MH_SAM_APDU [13:38:36]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 DE 48 00 00 35 04 06 00 A6 4B 26 F5 C1 FD [13:38:36]Write to MH i2c: E2 1F 00 7C 2E 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 DE 48 00 00 35 04 06 00 A6 4B 26 F5 C1 FD 00 00 A6 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 03 00 7C 2E 00 90 00 1E [13:38:36]RAPDU: 90 00 [13:38:36]wFMCommunicate OK [13:38:36]wFMCommunicate request_size=4 [13:38:36]MH_SAM_APDU [13:38:36]CAPDU: 80 0D 03 02 [13:38:36]Write to MH i2c: E2 08 00 7D 2E 80 0D 03 02 00 00 00 00 26 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 0B 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 0B 00 7D 2E 00 6D D5 71 FD C2 26 23 77 90 00 59 [13:38:36]RAPDU: 6D D5 71 FD C2 26 23 77 90 00 [13:38:36]wFMCommunicate OK [13:38:36]SAM_PROTO_SignData done [13:38:36]FM_MakeSignedData done [13:38:36]CreateOFDProtocolMessage [13:38:36]wFMCommunicate request_size=4 [13:38:36]MH_SAM_APDU [13:38:36]CAPDU: 80 11 00 00 [13:38:36]Write to MH i2c: E2 08 00 7E 2E 80 11 00 00 00 00 00 00 26 [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:36]Read from MH i2c: E2 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 17 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: E2 17 00 7E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7F [13:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:38:36]wFMCommunicate OK [13:38:36]CreateOFDProtocolMessage done [13:38:36]OFDSenderStorePacket 18654 [13:38:36]StoreOFDPacket docnum=18654 [13:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C8 5C 19 01 D1 C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E2 1D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DE 48 00 00 35 04 06 00 A6 4B 26 F5 C1 FD 6D D5 71 FD C2 26 23 77 [13:38:36]CheckFolder [13:38:36]dirname=/storage/ofd_packets [13:38:36]CheckFolder done [13:38:36]ProducePacketName [13:38:36]name=ofd_packets/00018654 [13:38:36]NVStorageSaveData ofd_packets/00018654 [13:38:36]File name is /storage/ofd_packets/00018654 [13:38:36]Write 319 bytes [13:38:36]NVStorageSaveData done [13:38:36]OFDSenderStorePacket done [13:38:36]KKMCreateOFDPacket done [13:38:36]NVStorageSaveData kkm_last_timestamp [13:38:36]File name is /storage/kkm_last_timestamp [13:38:36]Write 4 bytes [13:38:36]NVStorageSaveData done [13:38:36]ExternCall_PrintAddStr [13:38:36]wPrintStart [13:38:36]Write to MH i2c: 01 00 00 7F 2E AD [13:38:36]Write i2c OK [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 07 00 [13:38:36]MH_I2C_Read... [13:38:36]Read from MH i2c: 01 07 00 7F 2E 00 00 00 00 00 FF 0F C2 [13:38:36]RasterBufferAndPrint [13:38:36]line Счет N : (3)16578 [13:38:36]line ИНН: 02508201610067 [13:38:36]line Контрольно-Кассовый Чек [13:38:36]line ПРОДАЖА [13:38:36]line Товар: 4700000160358 [13:38:36]line Вода Легенда 1л [13:38:36]line 1.000 * 50.00 [13:38:36]line = 50.00 [13:38:36]line НДС 12% НСП 1% [13:38:36]line > о реализуемом товаре [13:38:36]line ИТОГО: 50.00 [13:38:36]line НСП 1% : 0.44 [13:38:36]line НДС 12% : 5.31 [13:38:36]line Наличными: 50.00 [13:38:36]line Безнал.: 0.00 [13:38:36]line Место: АЗС № 176 "Партнер Нефть" [13:38:36]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:38:36]line СНО: Общий режим [13:38:36]line Чек 50 22.09.2024 13:38 [13:38:36]line Смена: 180 ФФД: 1.0 [13:38:36]line ЗНМ: 0300000010 [13:38:36]line РНМ: 0000000000152968 [13:38:37]line Версия ККМ: v1.0 [13:38:37]line ФМ: 0000000000959456 [13:38:37]line ФД: 18654 [13:38:37]line ФПД: 182841706398205 [13:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133842&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18654&fm=182841706398205&tin=02508201610067®Number=0000000000152968&sum=5000 [13:38:37]line 0 [13:38:37]OFD Sender: Processing packet 18654 [packets to send 7, broken 6] [13:38:37]ProducePacketName [13:38:37]name=ofd_packets/00018654 [13:38:37]OFD Sender: To server: pG, [13:38:37]CommunicateWithHost lk.salyk.kg:30040 [13:38:37]ConnectInit lk.salyk.kg [13:38:37]written 0, free lines is 4095 [13:38:37]Connected sock=9 [13:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C8 5C 19 01 D1 C0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E2 1D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DE 48 00 00 35 04 06 00 A6 4B 26 F5 C1 FD 6D D5 71 FD C2 26 23 77 [13:38:37]Write to MH i2c: 01 00 00 A7 2E D5 [13:38:37]Write i2c OK [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: 01 [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: 01 07 00 [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 10 0D F9 [13:38:37]RasterBufferAndPrint [13:38:37]line [13:38:37]line [13:38:37]line [13:38:37]line [13:38:37]line [13:38:37]written 0, free lines is 3351 [13:38:37]MH_Cut [13:38:37]Write to MH i2c: D1 01 00 AE 2E 01 AE [13:38:37]Write i2c OK [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: D1 [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: D1 01 00 [13:38:37]MH_I2C_Read... [13:38:37]Read from MH i2c: D1 01 00 AE 2E 00 AD [13:38:37]Write to MH i2c: 01 00 00 AF 2E DD [13:38:37]Write i2c OK [13:38:37]MH_I2C_Read... [13:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FF 13 47 00 B6 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DE 48 00 00 F4 03 04 00 49 C7 EF 66 B6 04 01 00 00 0E A2 E2 0A 16 A8 FA 60 [13:38:37]CommunicateWithHost err = 0 [13:38:37]CheckOFDResponse [13:38:37]1017 (14) - 77093643461234 [13:38:37]1041 (16) - 0000000000959456 [13:38:37]1040 (4) - 18654 [13:38:37]1012 (4) - 22.09.2024 07:29 [13:38:37]1206 (1) - 0 [13:38:37]OFD Sender: Remove packet 18654 [13:38:37]ProducePacketName [13:38:37]name=ofd_packets/00018654 [13:38:37]NVStorageDeleteData [13:38:38]OFD Sender: No OFD packet to send [13:38:38]*** Cut start [13:38:38]*** Partial cut [13:38:38]*** CUTSNS_PIN = 1 [13:38:38]*** CUTSNS_PIN = 0 [13:38:38]*** Brake cut motor [13:38:38]Read from MH i2c: 01 [13:38:38]MH_I2C_Read... [13:38:38]*** Stop cut motor [13:38:38]*** Cut end [13:38:38]Read from MH i2c: 01 07 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: 01 07 00 AF 2E 00 00 00 00 00 FF 0F F2 [13:38:38]process_action close_receipt done [13:38:38]requested_data is exist [13:38:38]produce_requested_data [13:38:38]requested_item fm.sn is exist - process it [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 11 00 00 [13:38:38]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:38]Read from MH i2c: E2 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 17 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 17 00 B0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B1 [13:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:38:38]wFMCommunicate OK [13:38:38]requested_item fd.num is exist - process it [13:38:38]SAM_PROTO_GetFieldsCounters [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 13 00 00 [13:38:38]Write to MH i2c: E2 08 00 B1 2E 80 13 00 00 00 00 00 00 5B [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:38]Read from MH i2c: E2 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 62 00 [13:38:38]MH_I2C_Read... [13:38:38]Read from MH i2c: E2 62 00 B1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DE 48 00 00 0E 04 04 00 B4 00 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 F8 [13:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DE 48 00 00 0E 04 04 00 B4 00 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 [13:38:38]wFMCommunicate OK [13:38:38]SAM_PROTO_GetFieldsCounters done [13:38:38]requested_item shift.num is exist - process it [13:38:38]requested_item shift.opened is exist - process it [13:38:38]req_shift_opened [13:38:38]FM_GetShiftState [13:38:38]SAM_PROTO_GetShiftState [13:38:38]wFMCommunicate request_size=4 [13:38:38]MH_SAM_APDU [13:38:38]CAPDU: 80 13 01 00 [13:38:38]Write to MH i2c: E2 08 00 B2 2E 80 13 01 00 00 00 00 00 5D [13:38:38]Write i2c OK [13:38:38]MH_I2C_Read... [13:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:39]Read from MH i2c: E2 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 0E 00 [13:38:39]MH_I2C_Read... [13:38:39]Read from MH i2c: E2 0E 00 B2 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 1D [13:38:39]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:38:39]wFMCommunicate OK [13:38:39]SAM_PROTO_GetShiftState done [13:38:39]FM_GetShiftState done [13:38:39]req_shift_opened done [13:38:39]requested_item shift.open_date is exist - process it [13:38:39]req_shift_open_date [13:38:39]req_shift_open_date done [13:38:39]produce_requested_data done [13:38:39]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18654,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:38:39]process_action_free close_receipt [13:38:39]json_value_free [13:38:39]json_value_free done [13:38:39]process_json_proto returns [13:38:39]Send response to host [13:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18654,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:38:39]free response buf [13:38:39]execute_script done [13:38:39]execute_script returns [13:38:39]free content buf [13:38:39]Sock 10.Close socket [13:38:39]Sock 10.Thread stoped [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:17]accept exits with 7 [13:41:17]New connection [13:41:17]New thread 3066666340 created [13:41:17]Thread 3066522980 joined [13:41:17]Waiting for new connection... [13:41:17] Sock 7.Parse request [13:41:17]Sock 7.Check first char [13:41:17]Sock 7.First char is OK [13:41:17]request: POST /json_proto HTTP/1.0 [13:41:17]Method: POST [13:41:17]URL: /json_proto [13:41:17]Method is POST - this is cgi request [13:41:17]url: /json_proto [13:41:17]query_string will be loaded in cgi processing [13:41:17]execute_cgi json_proto POST (null) [13:41:17]execute_cgi path=json_proto method=POST [13:41:17]POST find Content-Length [13:41:17]Host: 172.17.62.196:8080 [13:41:17]Content-Length: 1020 [13:41:17]Content-Type: application/json [13:41:17] [13:41:17]POST finish read [13:41:17]Found Content-Length = 1020 [13:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16579", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:17]execute_script... [13:41: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)16579", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:17]POST & json_proto [13:41:17]process_json_proto [13:41:17]json parsed OK: [13:41:17]protocol is kg_v1.0 [13:41:17]action value=close_receipt [13:41:17]process_action close_receipt [13:41:17]cmd_close_receipt [13:41:17]MH_GetDate [13:41:17]Write to MH i2c: F0 00 00 B3 2E D0 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 09 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: F0 09 00 B3 2E 00 84 1E F0 66 CE CC 0E 66 DF [13:41:17]GetLastDocTimeStamp 1727012322 [13:41:17]current date 1727012484 [13:41:17]FM_GetShiftState [13:41:17]SAM_PROTO_GetShiftState [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 13 01 00 [13:41:17]Write to MH i2c: E2 08 00 B4 2E 80 13 01 00 00 00 00 00 5F [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0E 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0E 00 B4 2E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 1F [13:41:17]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_GetShiftState done [13:41:17]FM_GetShiftState done [13:41:17]opened in 1726963967 [13:41:17]opened+sec_in_day 1727050367 [13:41:17]quantity*price = 14400 [13:41:17]sum+1 = 14401 [13:41:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.54 НДС 12% : 30.58 Наличными: 0.00 Безнал.: 288.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 51 22.09.2024 13:41 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18655 ФПД: 150173828851195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134124&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18655&fm=150173828851195&tin=02508201610067®Number=0000000000152968&sum=28800 0 [13:41:18]StoreToDocumentArchive [13:41:18]shift 180 fd 18655 [13:41:18]save to /storage/0180/doc_00018655 [13:41:18]save last doc name /storage/0180/doc_00018655 to /storage/kkm_last_doc_name [13:41:18]save OK [13:41:18]Clear old archive folders... [13:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=378 [13:41:18]tlvbuf is 019941A0 [13:41:18]SAM_PROTO_ClearQueue [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 09 00 00 [13:41:18]Write to MH i2c: E2 08 00 C1 2E 80 09 00 00 00 00 00 00 61 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_ClearQueue done [13:41:18]KKMCreateOFDPacket [13:41:18]OFDProtocolAddRootSTLVToBuf [13:41:18]FM_MakeSignedData [13:41:18]FM_MakeSignedData [13:41:18]SAM_PROTO_SignData [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 01 02 [13:41:18]Write to MH i2c: E2 08 00 C2 2E 80 0D 01 02 00 00 00 00 69 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=255 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 02 02 FA 03 00 7A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 [13:41:18]Write to MH i2c: E2 02 01 C3 2E 80 0D 02 02 FA 00 03 00 7A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 00 00 4E [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=137 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 84 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DF 48 00 00 35 04 06 00 88 95 11 B9 25 FB [13:41:18]Write to MH i2c: E2 8C 00 C4 2E 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 84 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DF 48 00 00 35 04 06 00 88 95 11 B9 25 FB 00 00 A7 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [13:41:18]RAPDU: 90 00 [13:41:18]wFMCommunicate OK [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 0D 03 02 [13:41:18]Write to MH i2c: E2 08 00 C5 2E 80 0D 03 02 00 00 00 00 6E [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0B 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0B 00 C5 2E 00 17 EA 7D 3D 07 42 5A 28 90 00 F5 [13:41:19]RAPDU: 17 EA 7D 3D 07 42 5A 28 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_SignData done [13:41:19]FM_MakeSignedData done [13:41:19]CreateOFDProtocolMessage [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 11 00 00 [13:41:19]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C7 [13:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:41:19]wFMCommunicate OK [13:41:19]CreateOFDProtocolMessage done [13:41:19]OFDSenderStorePacket 18655 [13:41:19]StoreOFDPacket docnum=18655 [13:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8E 01 00 00 F6 70 86 01 BB 4C 5A 03 01 00 03 00 7A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 84 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DF 48 00 00 35 04 06 00 88 95 11 B9 25 FB 17 EA 7D 3D 07 42 5A 28 [13:41:19]CheckFolder [13:41:19]dirname=/storage/ofd_packets [13:41:19]CheckFolder done [13:41:19]ProducePacketName [13:41:19]name=ofd_packets/00018655 [13:41:19]NVStorageSaveData ofd_packets/00018655 [13:41:19]File name is /storage/ofd_packets/00018655 [13:41:19]Write 428 bytes [13:41:19]NVStorageSaveData done [13:41:19]OFDSenderStorePacket done [13:41:19]KKMCreateOFDPacket done [13:41:19]NVStorageSaveData kkm_last_timestamp [13:41:19]File name is /storage/kkm_last_timestamp [13:41:19]Write 4 bytes [13:41:19]NVStorageSaveData done [13:41:19]ExternCall_PrintAddStr [13:41:19]wPrintStart [13:41:19]Write to MH i2c: 01 00 00 C7 2E F5 [13:41:19]OFD Sender: Processing packet 18655 [packets to send 7, broken 6] [13:41:19]ProducePacketName [13:41:19]name=ofd_packets/00018655 [13:41:19]OFD Sender: To server: pG, [13:41:19]CommunicateWithHost lk.salyk.kg:30040 [13:41:19]ConnectInit lk.salyk.kg [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 FF 0F 0A [13:41:19]RasterBufferAndPrint [13:41:19]line Счет N : (3)16579 [13:41:19]line ИНН: 02508201610067 [13:41:19]line Контрольно-Кассовый Чек [13:41:19]line ПРОДАЖА [13:41:19]line Товар: 48743587 [13:41:19]line Сигареты Winston XStyle Silver [13:41:19]line 1.000 * 144.00 [13:41:19]line = 144.00 [13:41:19]line НДС 12% НСП 1% [13:41:19]line > о реализуемом товаре [13:41:19]line Товар: 48747059 [13:41:19]line Сигареты Winston Legend Blue [13:41:19]line 1.000 * 144.00 [13:41:19]line = 144.00 [13:41:19]line НДС 12% НСП 1% [13:41:19]line > о реализуемом товаре [13:41:19]line ИТОГО: 288.00 [13:41:19]line НСП 1% : 2.54 [13:41:19]line НДС 12% : 30.58 [13:41:19]line Наличными: 0.00 [13:41:19]line Безнал.: 288.00 [13:41:19]line Место: АЗС № 176 "Партнер Нефть" [13:41:19]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:41:19]line СНО: Общий режим [13:41:19]line Чек 51 22.09.2024 13:41 [13:41:19]line Смена: 180 ФФД: 1.0 [13:41:19]line ЗНМ: 0300000010 [13:41:19]line РНМ: 0000000000152968 [13:41:19]line Версия ККМ: v1.0 [13:41:19]line Платежная система: O! деньги [13:41:19]line ФМ: 0000000000959456 [13:41:19]line ФД: 18655 [13:41:19]line ФПД: 150173828851195 [13:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134124&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18655&fm=150173828851195&tin=02508201610067®Number=0000000000152968&sum=28800 [13:41:19]line 0 [13:41:19]written 0, free lines is 4095 [13:41:19]Connected sock=11 [13:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8E 01 00 00 F6 70 86 01 BB 4C 5A 03 01 00 03 00 7A 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 84 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 DF 48 00 00 35 04 06 00 88 95 11 B9 25 FB 17 EA 7D 3D 07 42 5A 28 [13:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D2 04 47 00 51 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 39 35 39 34 35 36 10 04 04 00 DF 48 00 00 F4 03 04 00 EC C7 EF 66 B6 04 01 00 00 E1 27 2D E5 68 D5 C9 8E [13:41:19]CommunicateWithHost err = 0 [13:41:19]CheckOFDResponse [13:41:19]1017 (14) - 77093643461234 [13:41:19]1041 (16) - 0000000000959456 [13:41:19]1040 (4) - 18655 [13:41:19]1012 (4) - 22.09.2024 07:31 [13:41:19]1206 (1) - 0 [13:41:19]OFD Sender: Remove packet 18655 [13:41:19]ProducePacketName [13:41:19]name=ofd_packets/00018655 [13:41:19]NVStorageDeleteData [13:41:19]Write to MH i2c: 01 00 00 F9 2E 27 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 97 0C D1 [13:41:19]RasterBufferAndPrint [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]line [13:41:19]written 0, free lines is 3233 [13:41:19]MH_Cut [13:41:19]Write to MH i2c: D1 01 00 00 2F 01 01 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 01 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: D1 01 00 00 2F 00 00 [13:41:19]Write to MH i2c: 01 00 00 01 2F 30 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:20]OFD Sender: No OFD packet to send [13:41:20]*** Cut start [13:41:20]*** Partial cut [13:41:20]*** CUTSNS_PIN = 1 [13:41:20]*** CUTSNS_PIN = 0 [13:41:20]*** Brake cut motor [13:41:21]Read from MH i2c: 01 [13:41:21]MH_I2C_Read... [13:41:21]*** Stop cut motor [13:41:21]*** Cut end [13:41:21]Read from MH i2c: 01 07 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: 01 07 00 01 2F 00 00 00 00 00 FF 0F 45 [13:41:21]process_action close_receipt done [13:41:21]requested_data is exist [13:41:21]produce_requested_data [13:41:21]requested_item fm.sn is exist - process it [13:41:21]wFMCommunicate request_size=4 [13:41:21]MH_SAM_APDU [13:41:21]CAPDU: 80 11 00 00 [13:41:21]Write to MH i2c: E2 08 00 02 2F 80 11 00 00 00 00 00 00 AB [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:21]Read from MH i2c: E2 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 17 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 17 00 02 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 04 [13:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:41:21]wFMCommunicate OK [13:41:21]requested_item fd.num is exist - process it [13:41:21]SAM_PROTO_GetFieldsCounters [13:41:21]wFMCommunicate request_size=4 [13:41:21]MH_SAM_APDU [13:41:21]CAPDU: 80 13 00 00 [13:41:21]Write to MH i2c: E2 08 00 03 2F 80 13 00 00 00 00 00 00 AE [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:21]Read from MH i2c: E2 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 62 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 62 00 03 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DF 48 00 00 0E 04 04 00 B4 00 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 4F [13:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 DF 48 00 00 0E 04 04 00 B4 00 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 [13:41:21]wFMCommunicate OK [13:41:21]SAM_PROTO_GetFieldsCounters done [13:41:21]requested_item shift.num is exist - process it [13:41:21]requested_item shift.opened is exist - process it [13:41:21]req_shift_opened [13:41:21]FM_GetShiftState [13:41:21]SAM_PROTO_GetShiftState [13:41:21]wFMCommunicate request_size=4 [13:41:21]MH_SAM_APDU [13:41:21]CAPDU: 80 13 01 00 [13:41:21]Write to MH i2c: E2 08 00 04 2F 80 13 01 00 00 00 00 00 B0 [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:21]Read from MH i2c: E2 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 0E 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: E2 0E 00 04 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 70 [13:41:21]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:41:21]wFMCommunicate OK [13:41:21]SAM_PROTO_GetShiftState done [13:41:21]FM_GetShiftState done [13:41:21]req_shift_opened done [13:41:21]requested_item shift.open_date is exist - process it [13:41:21]req_shift_open_date [13:41:21]req_shift_open_date done [13:41:21]produce_requested_data done [13:41:21]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18655,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:41:21]process_action_free close_receipt [13:41:21]json_value_free [13:41:21]json_value_free done [13:41:21]process_json_proto returns [13:41:21]Send response to host [13:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18655,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:41:21]free response buf [13:41:21]execute_script done [13:41:21]execute_script returns [13:41:21]free content buf [13:41:21]Sock 7.Close socket [13:41:21]Sock 7.Thread stoped [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:03]accept exits with 9 [13:43:03]New connection [13:43:03]New thread 3066522980 created [13:43:03]Thread 3066666340 joined [13:43:03]Waiting for new connection... [13:43:03] Sock 9.Parse request [13:43:03]Sock 9.Check first char [13:43:03]Sock 9.First char is OK [13:43:03]request: POST /json_proto HTTP/1.0 [13:43:03]Method: POST [13:43:03]URL: /json_proto [13:43:03]Method is POST - this is cgi request [13:43:03]url: /json_proto [13:43:03]query_string will be loaded in cgi processing [13:43:03]execute_cgi json_proto POST (null) [13:43:03]execute_cgi path=json_proto method=POST [13:43:03]POST find Content-Length [13:43:03]Host: 172.17.62.196:8080 [13:43:03]Content-Length: 662 [13:43:03]Content-Type: application/json [13:43:03] [13:43:03]POST finish read [13:43:03]Found Content-Length = 662 [13:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16580", "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" : 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" ] } } [13:43:03]execute_script... [13:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16580", "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" : 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" ] } } [13:43:03]POST & json_proto [13:43:03]process_json_proto [13:43:03]json parsed OK: [13:43:03]protocol is kg_v1.0 [13:43:03]action value=close_receipt [13:43:03]process_action close_receipt [13:43:03]cmd_close_receipt [13:43:03]MH_GetDate [13:43:03]Write to MH i2c: F0 00 00 05 2F 23 [13:43:03]Write i2c OK [13:43:03]MH_I2C_Read... [13:43:03]Read from MH i2c: F0 [13:43:03]MH_I2C_Read... [13:43:03]Read from MH i2c: F0 09 00 [13:43:03]MH_I2C_Read... [13:43:03]Read from MH i2c: F0 09 00 05 2F 00 EE 1E F0 66 CE CC 0E 66 9C [13:43:03]GetLastDocTimeStamp 1727012484 [13:43:03]current date 1727012590 [13:43:03]FM_GetShiftState [13:43:03]SAM_PROTO_GetShiftState [13:43:03]wFMCommunicate request_size=4 [13:43:03]MH_SAM_APDU [13:43:03]CAPDU: 80 13 01 00 [13:43:03]Write to MH i2c: E2 08 00 06 2F 80 13 01 00 00 00 00 00 B2 [13:43:03]Write i2c OK [13:43:03]MH_I2C_Read... [13:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:03]Read from MH i2c: E2 [13:43:03]MH_I2C_Read... [13:43:03]Read from MH i2c: E2 0E 00 [13:43:03]MH_I2C_Read... [13:43:03]Read from MH i2c: E2 0E 00 06 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 72 [13:43:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:43:03]wFMCommunicate OK [13:43:03]SAM_PROTO_GetShiftState done [13:43:03]FM_GetShiftState done [13:43:03]opened in 1726963967 [13:43:03]opened+sec_in_day 1727050367 [13:43:03]quantity*price = 17000 [13:43:03]sum+1 = 17001 [13:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 52 22.09.2024 13:43 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18656 ФПД: 38032033846491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134310&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18656&fm=38032033846491&tin=02508201610067®Number=0000000000152968&sum=17000 0 [13:43:04]StoreToDocumentArchive [13:43:04]shift 180 fd 18656 [13:43:04]save to /storage/0180/doc_00018656 [13:43:04]save last doc name /storage/0180/doc_00018656 to /storage/kkm_last_doc_name [13:43:04]save OK [13:43:04]Clear old archive folders... [13:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:43:04]tlvbuf is 019A5420 [13:43:04]SAM_PROTO_ClearQueue [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 09 00 00 [13:43:04]Write to MH i2c: E2 08 00 13 2F 80 09 00 00 00 00 00 00 B4 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 13 2F 00 90 00 B6 [13:43:04]RAPDU: 90 00 [13:43:04]wFMCommunicate OK [13:43:04]SAM_PROTO_ClearQueue done [13:43:04]KKMCreateOFDPacket [13:43:04]OFDProtocolAddRootSTLVToBuf [13:43:04]FM_MakeSignedData [13:43:04]FM_MakeSignedData [13:43:04]SAM_PROTO_SignData [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 0D 01 02 [13:43:04]Write to MH i2c: E2 08 00 14 2F 80 0D 01 02 00 00 00 00 BC [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 14 2F 00 90 00 B7 [13:43:04]RAPDU: 90 00 [13:43:04]wFMCommunicate OK [13:43:04]wFMCommunicate request_size=255 [13:43:04]MH_SAM_APDU [13:43:04]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 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 34 00 00 00 F4 03 04 00 EE 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [13:43:04]Write to MH i2c: E2 02 01 15 2F 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 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 34 00 00 00 F4 03 04 00 EE 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 86 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 15 2F 00 90 00 B8 [13:43:04]RAPDU: 90 00 [13:43:04]wFMCommunicate OK [13:43:04]wFMCommunicate request_size=46 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E0 48 00 00 35 04 06 00 22 97 05 DE 14 DB [13:43:04]Write to MH i2c: E2 31 00 16 2F 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E0 48 00 00 35 04 06 00 22 97 05 DE 14 DB 00 00 0D [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 03 00 16 2F 00 90 00 B9 [13:43:04]RAPDU: 90 00 [13:43:04]wFMCommunicate OK [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 0D 03 02 [13:43:04]Write to MH i2c: E2 08 00 17 2F 80 0D 03 02 00 00 00 00 C1 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 0B 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 0B 00 17 2F 00 E5 54 1C CD C8 78 E8 10 90 00 1C [13:43:04]RAPDU: E5 54 1C CD C8 78 E8 10 90 00 [13:43:04]wFMCommunicate OK [13:43:04]SAM_PROTO_SignData done [13:43:04]FM_MakeSignedData done [13:43:04]CreateOFDProtocolMessage [13:43:04]wFMCommunicate request_size=4 [13:43:04]MH_SAM_APDU [13:43:04]CAPDU: 80 11 00 00 [13:43:04]Write to MH i2c: E2 08 00 18 2F 80 11 00 00 00 00 00 00 C1 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:04]Read from MH i2c: E2 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 17 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: E2 17 00 18 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1A [13:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:43:04]wFMCommunicate OK [13:43:04]CreateOFDProtocolMessage done [13:43:04]OFDSenderStorePacket 18656 [13:43:04]StoreOFDPacket docnum=18656 [13:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 BF BE 2B 01 B8 FD 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 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 34 00 00 00 F4 03 04 00 EE 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E0 48 00 00 35 04 06 00 22 97 05 DE 14 DB E5 54 1C CD C8 78 E8 10 [13:43:04]CheckFolder [13:43:04]dirname=/storage/ofd_packets [13:43:04]CheckFolder done [13:43:04]ProducePacketName [13:43:04]name=ofd_packets/00018656 [13:43:04]NVStorageSaveData ofd_packets/00018656 [13:43:04]File name is /storage/ofd_packets/00018656 [13:43:04]Write 337 bytes [13:43:04]NVStorageSaveData done [13:43:04]OFDSenderStorePacket done [13:43:04]KKMCreateOFDPacket done [13:43:04]NVStorageSaveData kkm_last_timestamp [13:43:04]File name is /storage/kkm_last_timestamp [13:43:04]Write 4 bytes [13:43:04]NVStorageSaveData done [13:43:04]ExternCall_PrintAddStr [13:43:04]wPrintStart [13:43:04]Write to MH i2c: 01 00 00 19 2F 48 [13:43:04]Write i2c OK [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: 01 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: 01 07 00 [13:43:04]MH_I2C_Read... [13:43:04]Read from MH i2c: 01 07 00 19 2F 00 00 00 00 00 FF 0F 5D [13:43:04]RasterBufferAndPrint [13:43:04]line Счет N : (3)16580 [13:43:04]line ИНН: 02508201610067 [13:43:04]line Контрольно-Кассовый Чек [13:43:04]line ПРОДАЖА [13:43:04]line Товар: 5449000176448 [13:43:04]line Сок Piko Pulpy апельсин ПЭТ 1л [13:43:04]line 1.000 * 170.00 [13:43:04]line = 170.00 [13:43:04]line НДС 12% НСП 1% [13:43:04]line > о реализуемом товаре [13:43:04]line ИТОГО: 170.00 [13:43:04]line НСП 1% : 1.50 [13:43:04]line НДС 12% : 18.05 [13:43:04]line Наличными: 170.00 [13:43:04]line Безнал.: 0.00 [13:43:04]line Место: АЗС № 176 "Партнер Нефть" [13:43:04]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:43:04]line СНО: Общий режим [13:43:04]line Чек 52 22.09.2024 13:43 [13:43:04]line Смена: 180 ФФД: 1.0 [13:43:04]line ЗНМ: 0300000010 [13:43:04]line РНМ: 0000000000152968 [13:43:04]line Версия ККМ: v1.0 [13:43:04]line ФМ: 0000000000959456 [13:43:04]line ФД: 18656 [13:43:05]line ФПД: 38032033846491 [13:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T134310&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18656&fm=38032033846491&tin=02508201610067®Number=0000000000152968&sum=17000 [13:43:05]line 0 [13:43:05]OFD Sender: Processing packet 18656 [packets to send 7, broken 6] [13:43:05]ProducePacketName [13:43:05]name=ofd_packets/00018656 [13:43:05]OFD Sender: To server: pG, [13:43:05]CommunicateWithHost lk.salyk.kg:30040 [13:43:05]ConnectInit lk.salyk.kg [13:43:05]written 0, free lines is 4095 [13:43:05]Connected sock=7 [13:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 BF BE 2B 01 B8 FD 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 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 34 00 00 00 F4 03 04 00 EE 1E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E0 48 00 00 35 04 06 00 22 97 05 DE 14 DB E5 54 1C CD C8 78 E8 10 [13:43:05]Write to MH i2c: 01 00 00 42 2F 71 [13:43:05]Write i2c OK [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: 01 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: 01 07 00 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: 01 07 00 42 2F 00 00 00 00 00 01 0D 86 [13:43:05]RasterBufferAndPrint [13:43:05]line [13:43:05]line [13:43:05]line [13:43:05]line [13:43:05]line [13:43:05]written 0, free lines is 3335 [13:43:05]MH_Cut [13:43:05]Write to MH i2c: D1 01 00 49 2F 01 4A [13:43:05]Write i2c OK [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: D1 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: D1 01 00 [13:43:05]MH_I2C_Read... [13:43:05]Read from MH i2c: D1 01 00 49 2F 00 49 [13:43:05]Write to MH i2c: 01 00 00 4A 2F 79 [13:43:05]Write i2c OK [13:43:05]MH_I2C_Read... [13:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B8 F8 47 00 F2 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 39 35 39 34 35 36 10 04 04 00 E0 48 00 00 F4 03 04 00 56 C8 EF 66 B6 04 01 00 00 1B A2 E8 29 89 3A 2A 32 [13:43:05]CommunicateWithHost err = 0 [13:43:05]CheckOFDResponse [13:43:05]1017 (14) - 77093643461234 [13:43:05]1041 (16) - 0000000000959456 [13:43:05]1040 (4) - 18656 [13:43:05]1012 (4) - 22.09.2024 07:33 [13:43:05]1206 (1) - 0 [13:43:05]OFD Sender: Remove packet 18656 [13:43:05]ProducePacketName [13:43:05]name=ofd_packets/00018656 [13:43:05]NVStorageDeleteData [13:43:06]OFD Sender: No OFD packet to send [13:43:06]*** Cut start [13:43:06]*** Partial cut [13:43:06]*** CUTSNS_PIN = 1 [13:43:06]*** CUTSNS_PIN = 0 [13:43:06]*** Brake cut motor [13:43:06]Read from MH i2c: 01 [13:43:06]MH_I2C_Read... [13:43:06]*** Stop cut motor [13:43:06]*** Cut end [13:43:06]Read from MH i2c: 01 07 00 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: 01 07 00 4A 2F 00 00 00 00 00 FF 0F 8E [13:43:06]process_action close_receipt done [13:43:06]requested_data is exist [13:43:06]produce_requested_data [13:43:06]requested_item fm.sn is exist - process it [13:43:06]wFMCommunicate request_size=4 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 11 00 00 [13:43:06]Write to MH i2c: E2 08 00 4B 2F 80 11 00 00 00 00 00 00 F4 [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:06]Read from MH i2c: E2 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 17 00 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 17 00 4B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4D [13:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:43:06]wFMCommunicate OK [13:43:06]requested_item fd.num is exist - process it [13:43:06]SAM_PROTO_GetFieldsCounters [13:43:06]wFMCommunicate request_size=4 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 13 00 00 [13:43:06]Write to MH i2c: E2 08 00 4C 2F 80 13 00 00 00 00 00 00 F7 [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:06]Read from MH i2c: E2 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 62 00 [13:43:06]MH_I2C_Read... [13:43:06]Read from MH i2c: E2 62 00 4C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E0 48 00 00 0E 04 04 00 B4 00 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 9C [13:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E0 48 00 00 0E 04 04 00 B4 00 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 [13:43:06]wFMCommunicate OK [13:43:06]SAM_PROTO_GetFieldsCounters done [13:43:06]requested_item shift.num is exist - process it [13:43:06]requested_item shift.opened is exist - process it [13:43:06]req_shift_opened [13:43:06]FM_GetShiftState [13:43:06]SAM_PROTO_GetShiftState [13:43:06]wFMCommunicate request_size=4 [13:43:06]MH_SAM_APDU [13:43:06]CAPDU: 80 13 01 00 [13:43:06]Write to MH i2c: E2 08 00 4D 2F 80 13 01 00 00 00 00 00 F9 [13:43:06]Write i2c OK [13:43:06]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0E 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0E 00 4D 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B9 [13:43:07]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:43:07]wFMCommunicate OK [13:43:07]SAM_PROTO_GetShiftState done [13:43:07]FM_GetShiftState done [13:43:07]req_shift_opened done [13:43:07]requested_item shift.open_date is exist - process it [13:43:07]req_shift_open_date [13:43:07]req_shift_open_date done [13:43:07]produce_requested_data done [13:43:07]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18656,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:43:07]process_action_free close_receipt [13:43:07]json_value_free [13:43:07]json_value_free done [13:43:07]process_json_proto returns [13:43:07]Send response to host [13:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18656,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:43:07]free response buf [13:43:07]execute_script done [13:43:07]execute_script returns [13:43:07]free content buf [13:43:07]Sock 9.Close socket [13:43:07]Sock 9.Thread stoped [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:53]accept exits with 10 [13:55:53]New connection [13:55:53]New thread 3066666340 created [13:55:53]Thread 3066522980 joined [13:55:53]Waiting for new connection... [13:55:53] Sock 10.Parse request [13:55:53]Sock 10.Check first char [13:55:53]Sock 10.First char is OK [13:55:53]request: POST /json_proto HTTP/1.0 [13:55:53]Method: POST [13:55:53]URL: /json_proto [13:55:53]Method is POST - this is cgi request [13:55:53]url: /json_proto [13:55:53]query_string will be loaded in cgi processing [13:55:53]execute_cgi json_proto POST (null) [13:55:53]execute_cgi path=json_proto method=POST [13:55:53]POST find Content-Length [13:55:53]Host: 172.17.62.196:8080 [13:55:53]Content-Length: 629 [13:55:53]Content-Type: application/json [13:55:53] [13:55:53]POST finish read [13:55:53]Found Content-Length = 629 [13:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16581", "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" ] } } [13:55:53]execute_script... [13:55: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)16581", "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" ] } } [13:55:53]POST & json_proto [13:55:53]process_json_proto [13:55:53]json parsed OK: [13:55:53]protocol is kg_v1.0 [13:55:53]action value=close_receipt [13:55:53]process_action close_receipt [13:55:53]cmd_close_receipt [13:55:53]MH_GetDate [13:55:53]Write to MH i2c: F0 00 00 4E 2F 6C [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 4E 2F 00 F0 21 F0 66 CE CC 0E 66 EA [13:55:53]GetLastDocTimeStamp 1727012590 [13:55:53]current date 1727013360 [13:55:53]FM_GetShiftState [13:55:53]SAM_PROTO_GetShiftState [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 13 01 00 [13:55:53]Write to MH i2c: E2 08 00 4F 2F 80 13 01 00 00 00 00 00 FB [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 4F 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 BB [13:55:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_GetShiftState done [13:55:53]FM_GetShiftState done [13:55:53]opened in 1726963967 [13:55:53]opened+sec_in_day 1727050367 [13:55:53]quantity*price = 5000 [13:55:53]sum+1 = 5001 [13:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 53 22.09.2024 13:56 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18657 ФПД: 126517325205634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135600&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18657&fm=126517325205634&tin=02508201610067®Number=0000000000152968&sum=5000 0 [13:55:54]StoreToDocumentArchive [13:55:54]shift 180 fd 18657 [13:55:54]save to /storage/0180/doc_00018657 [13:55:54]save last doc name /storage/0180/doc_00018657 to /storage/kkm_last_doc_name [13:55:54]save OK [13:55:54]Clear old archive folders... [13:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:55:54]tlvbuf is B6F0FC50 [13:55:54]SAM_PROTO_ClearQueue [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 09 00 00 [13:55:54]Write to MH i2c: E2 08 00 5C 2F 80 09 00 00 00 00 00 00 FD [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 5C 2F 00 90 00 FF [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_ClearQueue done [13:55:54]KKMCreateOFDPacket [13:55:54]OFDProtocolAddRootSTLVToBuf [13:55:54]FM_MakeSignedData [13:55:54]FM_MakeSignedData [13:55:54]SAM_PROTO_SignData [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 01 02 [13:55:54]Write to MH i2c: E2 08 00 5D 2F 80 0D 01 02 00 00 00 00 05 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 5D 2F 00 90 00 00 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=255 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F0 21 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [13:55:54]Write to MH i2c: E2 02 01 5E 2F 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 35 00 00 00 F4 03 04 00 F0 21 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 73 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 5E 2F 00 90 00 01 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=28 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 E1 48 00 00 35 04 06 00 73 11 1C 3A 10 82 [13:55:54]Write to MH i2c: E2 1F 00 5F 2F 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 E1 48 00 00 35 04 06 00 73 11 1C 3A 10 82 00 00 2F [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 5F 2F 00 90 00 02 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 03 02 [13:55:54]Write to MH i2c: E2 08 00 60 2F 80 0D 03 02 00 00 00 00 0A [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 0B 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 0B 00 60 2F 00 C4 5C 55 5B EC B6 FD 1D 90 00 97 [13:55:54]RAPDU: C4 5C 55 5B EC B6 FD 1D 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_SignData done [13:55:54]FM_MakeSignedData done [13:55:54]CreateOFDProtocolMessage [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 11 00 00 [13:55:54]Write to MH i2c: E2 08 00 61 2F 80 11 00 00 00 00 00 00 0A [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 17 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 17 00 61 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 63 [13:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:55:54]wFMCommunicate OK [13:55:54]CreateOFDProtocolMessage done [13:55:54]OFDSenderStorePacket 18657 [13:55:54]StoreOFDPacket docnum=18657 [13:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 CD 30 19 01 80 8C 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 35 00 00 00 F4 03 04 00 F0 21 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E1 48 00 00 35 04 06 00 73 11 1C 3A 10 82 C4 5C 55 5B EC B6 FD 1D [13:55:54]CheckFolder [13:55:54]dirname=/storage/ofd_packets [13:55:54]CheckFolder done [13:55:54]ProducePacketName [13:55:54]name=ofd_packets/00018657 [13:55:54]NVStorageSaveData ofd_packets/00018657 [13:55:54]File name is /storage/ofd_packets/00018657 [13:55:54]Write 319 bytes [13:55:54]NVStorageSaveData done [13:55:54]OFDSenderStorePacket done [13:55:54]KKMCreateOFDPacket done [13:55:54]NVStorageSaveData kkm_last_timestamp [13:55:54]File name is /storage/kkm_last_timestamp [13:55:54]Write 4 bytes [13:55:54]NVStorageSaveData done [13:55:54]ExternCall_PrintAddStr [13:55:54]wPrintStart [13:55:54]Write to MH i2c: 01 00 00 62 2F 91 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 07 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 07 00 62 2F 00 00 00 00 00 FF 0F A6 [13:55:54]RasterBufferAndPrint [13:55:54]line Счет N : (3)16581 [13:55:54]line ИНН: 02508201610067 [13:55:54]line Контрольно-Кассовый Чек [13:55:54]line ПРОДАЖА [13:55:54]line Товар: 4700000160358 [13:55:54]line Вода Легенда 1л [13:55:54]line 1.000 * 50.00 [13:55:54]line = 50.00 [13:55:54]line НДС 12% НСП 1% [13:55:54]line > о реализуемом товаре [13:55:54]line ИТОГО: 50.00 [13:55:54]line НСП 1% : 0.44 [13:55:54]line НДС 12% : 5.31 [13:55:54]line Наличными: 50.00 [13:55:54]line Безнал.: 0.00 [13:55:54]line Место: АЗС № 176 "Партнер Нефть" [13:55:54]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:55:54]line СНО: Общий режим [13:55:54]line Чек 53 22.09.2024 13:56 [13:55:54]line Смена: 180 ФФД: 1.0 [13:55:54]line ЗНМ: 0300000010 [13:55:54]line РНМ: 0000000000152968 [13:55:54]line Версия ККМ: v1.0 [13:55:54]line ФМ: 0000000000959456 [13:55:54]line ФД: 18657 [13:55:54]line ФПД: 126517325205634 [13:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135600&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18657&fm=126517325205634&tin=02508201610067®Number=0000000000152968&sum=5000 [13:55:55]line 0 [13:55:55]OFD Sender: Processing packet 18657 [packets to send 7, broken 6] [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00018657 [13:55:55]OFD Sender: To server: pG, [13:55:55]CommunicateWithHost lk.salyk.kg:30040 [13:55:55]ConnectInit lk.salyk.kg [13:55:55]written 0, free lines is 4095 [13:55:55]Connected sock=11 [13:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 CD 30 19 01 80 8C 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 35 00 00 00 F4 03 04 00 F0 21 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E1 48 00 00 35 04 06 00 73 11 1C 3A 10 82 C4 5C 55 5B EC B6 FD 1D [13:55:55]Write to MH i2c: 01 00 00 8A 2F B9 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 8A 2F 00 00 00 00 00 07 0D D4 [13:55:55]RasterBufferAndPrint [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]written 0, free lines is 3341 [13:55:55]MH_Cut [13:55:55]Write to MH i2c: D1 01 00 91 2F 01 92 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 01 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 01 00 91 2F 00 91 [13:55:55]Write to MH i2c: 01 00 00 92 2F C1 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6B BD 47 00 10 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E1 48 00 00 F4 03 04 00 58 CB EF 66 B6 04 01 00 00 A9 B6 6A D3 A7 6A 22 92 [13:55:55]CommunicateWithHost err = 0 [13:55:55]CheckOFDResponse [13:55:55]1017 (14) - 77093643461234 [13:55:55]1041 (16) - 0000000000959456 [13:55:55]1040 (4) - 18657 [13:55:55]1012 (4) - 22.09.2024 07:46 [13:55:55]1206 (1) - 0 [13:55:55]OFD Sender: Remove packet 18657 [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00018657 [13:55:55]NVStorageDeleteData [13:55:56]OFD Sender: No OFD packet to send [13:55:56]*** Cut start [13:55:56]*** Partial cut [13:55:56]*** CUTSNS_PIN = 1 [13:55:56]*** CUTSNS_PIN = 0 [13:55:56]*** Brake cut motor [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]*** Stop cut motor [13:55:56]*** Cut end [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 92 2F 00 00 00 00 00 FF 0F D6 [13:55:56]process_action close_receipt done [13:55:56]requested_data is exist [13:55:56]produce_requested_data [13:55:56]requested_item fm.sn is exist - process it [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 11 00 00 [13:55:56]Write to MH i2c: E2 08 00 93 2F 80 11 00 00 00 00 00 00 3C [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 93 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 95 [13:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:55:56]wFMCommunicate OK [13:55:56]requested_item fd.num is exist - process it [13:55:56]SAM_PROTO_GetFieldsCounters [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 13 00 00 [13:55:56]Write to MH i2c: E2 08 00 94 2F 80 13 00 00 00 00 00 00 3F [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 94 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E1 48 00 00 0E 04 04 00 B4 00 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 E8 [13:55:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E1 48 00 00 0E 04 04 00 B4 00 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 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetFieldsCounters done [13:55:57]requested_item shift.num is exist - process it [13:55:57]requested_item shift.opened is exist - process it [13:55:57]req_shift_opened [13:55:57]FM_GetShiftState [13:55:57]SAM_PROTO_GetShiftState [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 01 00 [13:55:57]Write to MH i2c: E2 08 00 95 2F 80 13 01 00 00 00 00 00 41 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 95 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 01 [13:55:57]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetShiftState done [13:55:57]FM_GetShiftState done [13:55:57]req_shift_opened done [13:55:57]requested_item shift.open_date is exist - process it [13:55:57]req_shift_open_date [13:55:57]req_shift_open_date done [13:55:57]produce_requested_data done [13:55:57]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18657,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [13:55:57]process_action_free close_receipt [13:55:57]json_value_free [13:55:57]json_value_free done [13:55:57]process_json_proto returns [13:55:57]Send response to host [13:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18657,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [13:55:57]free response buf [13:55:57]execute_script done [13:55:57]execute_script returns [13:55:57]free content buf [13:55:57]Sock 10.Close socket [13:55:57]Sock 10.Thread stoped [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]accept exits with 7 [14:01:36]New connection [14:01:36]New thread 3066522980 created [14:01:36]Thread 3066666340 joined [14:01:36]Waiting for new connection... [14:01:36] Sock 7.Parse request [14:01:36]Sock 7.Check first char [14:01:36]Sock 7.First char is OK [14:01:36]request: POST /json_proto HTTP/1.0 [14:01:36]Method: POST [14:01:36]URL: /json_proto [14:01:36]Method is POST - this is cgi request [14:01:36]url: /json_proto [14:01:36]query_string will be loaded in cgi processing [14:01:36]execute_cgi json_proto POST (null) [14:01:36]execute_cgi path=json_proto method=POST [14:01:36]POST find Content-Length [14:01:36]Host: 172.17.62.196:8080 [14:01:36]Content-Length: 644 [14:01:36]Content-Type: application/json [14:01:36] [14:01:36]POST finish read [14:01:36]Found Content-Length = 644 [14:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16582", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:36]execute_script... [14:01: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)16582", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:36]POST & json_proto [14:01:36]process_json_proto [14:01:36]json parsed OK: [14:01:36]protocol is kg_v1.0 [14:01:36]action value=close_receipt [14:01:36]process_action close_receipt [14:01:36]cmd_close_receipt [14:01:36]MH_GetDate [14:01:36]Write to MH i2c: F0 00 00 96 2F B4 [14:01:36]Write i2c OK [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: F0 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: F0 09 00 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: F0 09 00 96 2F 00 47 23 F0 66 CE CC 0E 66 8B [14:01:36]GetLastDocTimeStamp 1727013360 [14:01:36]current date 1727013703 [14:01:36]FM_GetShiftState [14:01:36]SAM_PROTO_GetShiftState [14:01:36]wFMCommunicate request_size=4 [14:01:36]MH_SAM_APDU [14:01:36]CAPDU: 80 13 01 00 [14:01:36]Write to MH i2c: E2 08 00 97 2F 80 13 01 00 00 00 00 00 43 [14:01:36]Write i2c OK [14:01:36]MH_I2C_Read... [14:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:36]Read from MH i2c: E2 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: E2 0E 00 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: E2 0E 00 97 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 03 [14:01:36]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:01:36]wFMCommunicate OK [14:01:36]SAM_PROTO_GetShiftState done [14:01:36]FM_GetShiftState done [14:01:36]opened in 1726963967 [14:01:36]opened+sec_in_day 1727050367 [14:01:36]quantity*price = 6000 [14:01:36]sum+1 = 6001 [14:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 54 22.09.2024 14:01 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18658 ФПД: 121589355972237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140143&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18658&fm=121589355972237&tin=02508201610067®Number=0000000000152968&sum=6000 0 [14:01:37]StoreToDocumentArchive [14:01:37]shift 180 fd 18658 [14:01:37]save to /storage/0180/doc_00018658 [14:01:37]save last doc name /storage/0180/doc_00018658 to /storage/kkm_last_doc_name [14:01:37]save OK [14:01:37]Clear old archive folders... [14:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:01:37]tlvbuf is 019A5420 [14:01:37]SAM_PROTO_ClearQueue [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 09 00 00 [14:01:37]Write to MH i2c: E2 08 00 A4 2F 80 09 00 00 00 00 00 00 45 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]SAM_PROTO_ClearQueue done [14:01:37]KKMCreateOFDPacket [14:01:37]OFDProtocolAddRootSTLVToBuf [14:01:37]FM_MakeSignedData [14:01:37]FM_MakeSignedData [14:01:37]SAM_PROTO_SignData [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 01 02 [14:01:37]Write to MH i2c: E2 08 00 A5 2F 80 0D 01 02 00 00 00 00 4D [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 A5 2F 00 90 00 48 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=255 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 47 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [14:01:37]Write to MH i2c: E2 02 01 A6 2F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 47 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 38 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 A6 2F 00 90 00 49 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=35 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E2 48 00 00 35 04 06 00 6E 95 BA 5F 06 8D [14:01:37]Write to MH i2c: E2 26 00 A7 2F 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E2 48 00 00 35 04 06 00 6E 95 BA 5F 06 8D 00 00 22 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 A7 2F 00 90 00 4A [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 03 02 [14:01:37]Write to MH i2c: E2 08 00 A8 2F 80 0D 03 02 00 00 00 00 52 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 0B 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 0B 00 A8 2F 00 49 8F 5D 0F CD 51 EE CF 90 00 72 [14:01:37]RAPDU: 49 8F 5D 0F CD 51 EE CF 90 00 [14:01:37]wFMCommunicate OK [14:01:37]SAM_PROTO_SignData done [14:01:37]FM_MakeSignedData done [14:01:37]CreateOFDProtocolMessage [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 11 00 00 [14:01:37]Write to MH i2c: E2 08 00 A9 2F 80 11 00 00 00 00 00 00 52 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 17 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 17 00 A9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AB [14:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:01:37]wFMCommunicate OK [14:01:37]CreateOFDProtocolMessage done [14:01:37]OFDSenderStorePacket 18658 [14:01:37]StoreOFDPacket docnum=18658 [14:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 97 E4 20 01 04 4A 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 47 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E2 48 00 00 35 04 06 00 6E 95 BA 5F 06 8D 49 8F 5D 0F CD 51 EE CF [14:01:37]CheckFolder [14:01:37]dirname=/storage/ofd_packets [14:01:37]CheckFolder done [14:01:37]ProducePacketName [14:01:37]name=ofd_packets/00018658 [14:01:37]NVStorageSaveData ofd_packets/00018658 [14:01:37]File name is /storage/ofd_packets/00018658 [14:01:37]Write 326 bytes [14:01:37]NVStorageSaveData done [14:01:37]OFDSenderStorePacket done [14:01:37]KKMCreateOFDPacket done [14:01:37]NVStorageSaveData kkm_last_timestamp [14:01:37]File name is /storage/kkm_last_timestamp [14:01:37]Write 4 bytes [14:01:37]NVStorageSaveData done [14:01:37]ExternCall_PrintAddStr [14:01:37]wPrintStart [14:01:37]Write to MH i2c: 01 00 00 AA 2F D9 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 07 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 07 00 AA 2F 00 00 00 00 00 FF 0F EE [14:01:37]RasterBufferAndPrint [14:01:37]line Счет N : (3)16582 [14:01:37]line ИНН: 02508201610067 [14:01:37]line Контрольно-Кассовый Чек [14:01:37]line ПРОДАЖА [14:01:37]line Товар: 4700000310043 [14:01:37]line Вода Жалалабат 27 1л [14:01:37]line 1.000 * 60.00 [14:01:37]line = 60.00 [14:01:37]line НДС 12% НСП 1% [14:01:37]line > о реализуемом товаре [14:01:37]line ИТОГО: 60.00 [14:01:37]line НСП 1% : 0.53 [14:01:37]line НДС 12% : 6.37 [14:01:37]line Наличными: 60.00 [14:01:37]line Безнал.: 0.00 [14:01:37]line Место: АЗС № 176 "Партнер Нефть" [14:01:37]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:01:37]line СНО: Общий режим [14:01:37]line Чек 54 22.09.2024 14:01 [14:01:37]line Смена: 180 ФФД: 1.0 [14:01:37]line ЗНМ: 0300000010 [14:01:37]line РНМ: 0000000000152968 [14:01:37]line Версия ККМ: v1.0 [14:01:37]line ФМ: 0000000000959456 [14:01:37]line ФД: 18658 [14:01:37]line ФПД: 121589355972237 [14:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140143&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18658&fm=121589355972237&tin=02508201610067®Number=0000000000152968&sum=6000 [14:01:38]line 0 [14:01:38]OFD Sender: Processing packet 18658 [packets to send 7, broken 6] [14:01:38]ProducePacketName [14:01:38]name=ofd_packets/00018658 [14:01:38]OFD Sender: To server: pG, [14:01:38]CommunicateWithHost lk.salyk.kg:30040 [14:01:38]ConnectInit lk.salyk.kg [14:01:38]written 0, free lines is 4095 [14:01:38]Connected sock=10 [14:01:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 97 E4 20 01 04 4A 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 47 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E2 48 00 00 35 04 06 00 6E 95 BA 5F 06 8D 49 8F 5D 0F CD 51 EE CF [14:01:38]Write to MH i2c: 01 00 00 D2 2F 01 [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 22 0D 37 [14:01:38]RasterBufferAndPrint [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]written 0, free lines is 3368 [14:01:38]MH_Cut [14:01:38]Write to MH i2c: D1 01 00 D9 2F 01 DA [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 01 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 01 00 D9 2F 00 D9 [14:01:38]Write to MH i2c: 01 00 00 DA 2F 09 [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EF 93 47 00 42 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 39 35 39 34 35 36 10 04 04 00 E2 48 00 00 F4 03 04 00 AF CC EF 66 B6 04 01 00 00 6F 9A 80 49 22 AA 14 83 [14:01:38]CommunicateWithHost err = 0 [14:01:38]CheckOFDResponse [14:01:38]1017 (14) - 77093643461234 [14:01:38]1041 (16) - 0000000000959456 [14:01:38]1040 (4) - 18658 [14:01:38]1012 (4) - 22.09.2024 07:52 [14:01:38]1206 (1) - 0 [14:01:38]OFD Sender: Remove packet 18658 [14:01:38]ProducePacketName [14:01:38]name=ofd_packets/00018658 [14:01:38]NVStorageDeleteData [14:01:39]OFD Sender: No OFD packet to send [14:01:39]*** Cut start [14:01:39]*** Partial cut [14:01:39]*** CUTSNS_PIN = 1 [14:01:39]*** CUTSNS_PIN = 0 [14:01:39]*** Brake cut motor [14:01:39]Read from MH i2c: 01 [14:01:39]MH_I2C_Read... [14:01:39]*** Stop cut motor [14:01:39]*** Cut end [14:01:39]Read from MH i2c: 01 07 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: 01 07 00 DA 2F 00 00 00 00 00 FF 0F 1E [14:01:39]process_action close_receipt done [14:01:39]requested_data is exist [14:01:39]produce_requested_data [14:01:39]requested_item fm.sn is exist - process it [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 11 00 00 [14:01:39]Write to MH i2c: E2 08 00 DB 2F 80 11 00 00 00 00 00 00 84 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:39]Read from MH i2c: E2 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 17 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 17 00 DB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DD [14:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:01:39]wFMCommunicate OK [14:01:39]requested_item fd.num is exist - process it [14:01:39]SAM_PROTO_GetFieldsCounters [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 13 00 00 [14:01:39]Write to MH i2c: E2 08 00 DC 2F 80 13 00 00 00 00 00 00 87 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:39]Read from MH i2c: E2 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 62 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 62 00 DC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E2 48 00 00 0E 04 04 00 B4 00 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 34 [14:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E2 48 00 00 0E 04 04 00 B4 00 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 [14:01:39]wFMCommunicate OK [14:01:39]SAM_PROTO_GetFieldsCounters done [14:01:39]requested_item shift.num is exist - process it [14:01:39]requested_item shift.opened is exist - process it [14:01:39]req_shift_opened [14:01:39]FM_GetShiftState [14:01:39]SAM_PROTO_GetShiftState [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 13 01 00 [14:01:39]Write to MH i2c: E2 08 00 DD 2F 80 13 01 00 00 00 00 00 89 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:40]Read from MH i2c: E2 [14:01:40]MH_I2C_Read... [14:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:40]Read from MH i2c: E2 0E 00 [14:01:40]MH_I2C_Read... [14:01:40]Read from MH i2c: E2 0E 00 DD 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 49 [14:01:40]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:01:40]wFMCommunicate OK [14:01:40]SAM_PROTO_GetShiftState done [14:01:40]FM_GetShiftState done [14:01:40]req_shift_opened done [14:01:40]requested_item shift.open_date is exist - process it [14:01:40]req_shift_open_date [14:01:40]req_shift_open_date done [14:01:40]produce_requested_data done [14:01:40]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18658,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:01:40]process_action_free close_receipt [14:01:40]json_value_free [14:01:40]json_value_free done [14:01:40]process_json_proto returns [14:01:40]Send response to host [14:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18658,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:01:40]free response buf [14:01:40]execute_script done [14:01:40]execute_script returns [14:01:40]free content buf [14:01:40]Sock 7.Close socket [14:01:40]Sock 7.Thread stoped [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:32]accept exits with 9 [14:02:32]New connection [14:02:32]New thread 3066666340 created [14:02:32]Thread 3066522980 joined [14:02:32]Waiting for new connection... [14:02:32] Sock 9.Parse request [14:02:32]Sock 9.Check first char [14:02:32]Sock 9.First char is OK [14:02:32]request: POST /json_proto HTTP/1.0 [14:02:32]Method: POST [14:02:32]URL: /json_proto [14:02:32]Method is POST - this is cgi request [14:02:32]url: /json_proto [14:02:32]query_string will be loaded in cgi processing [14:02:32]execute_cgi json_proto POST (null) [14:02:32]execute_cgi path=json_proto method=POST [14:02:32]POST find Content-Length [14:02:32]Host: 172.17.62.196:8080 [14:02:32]Content-Length: 777 [14:02:32]Content-Type: application/json [14:02:32] [14:02:32]POST finish read [14:02:32]Found Content-Length = 777 [14:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16583", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:32]execute_script... [14:02: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)16583", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:32]POST & json_proto [14:02:32]process_json_proto [14:02:32]json parsed OK: [14:02:32]protocol is kg_v1.0 [14:02:32]action value=close_receipt [14:02:32]process_action close_receipt [14:02:32]cmd_close_receipt [14:02:32]MH_GetDate [14:02:32]Write to MH i2c: F0 00 00 DE 2F FC [14:02:32]Write i2c OK [14:02:32]MH_I2C_Read... [14:02:32]Read from MH i2c: F0 [14:02:32]MH_I2C_Read... [14:02:32]Read from MH i2c: F0 09 00 [14:02:32]MH_I2C_Read... [14:02:32]Read from MH i2c: F0 09 00 DE 2F 00 7F 23 F0 66 CE CC 0E 66 0B [14:02:32]GetLastDocTimeStamp 1727013703 [14:02:32]current date 1727013759 [14:02:32]FM_GetShiftState [14:02:32]SAM_PROTO_GetShiftState [14:02:32]wFMCommunicate request_size=4 [14:02:32]MH_SAM_APDU [14:02:32]CAPDU: 80 13 01 00 [14:02:32]Write to MH i2c: E2 08 00 DF 2F 80 13 01 00 00 00 00 00 8B [14:02:32]Write i2c OK [14:02:32]MH_I2C_Read... [14:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:32]Read from MH i2c: E2 [14:02:32]MH_I2C_Read... [14:02:32]Read from MH i2c: E2 0E 00 [14:02:32]MH_I2C_Read... [14:02:32]Read from MH i2c: E2 0E 00 DF 2F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4B [14:02:32]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:02:32]wFMCommunicate OK [14:02:32]SAM_PROTO_GetShiftState done [14:02:32]FM_GetShiftState done [14:02:32]opened in 1726963967 [14:02:32]opened+sec_in_day 1727050367 [14:02:32]quantity*price = 14400 [14:02:32]sum+1 = 14401 [14:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 55 22.09.2024 14:02 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18659 ФПД: 239048982099284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140239&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18659&fm=239048982099284&tin=02508201610067®Number=0000000000152968&sum=14400 0 [14:02:33]StoreToDocumentArchive [14:02:33]shift 180 fd 18659 [14:02:33]save to /storage/0180/doc_00018659 [14:02:33]save last doc name /storage/0180/doc_00018659 to /storage/kkm_last_doc_name [14:02:33]save OK [14:02:33]Clear old archive folders... [14:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:02:33]tlvbuf is 01989CF0 [14:02:33]SAM_PROTO_ClearQueue [14:02:33]wFMCommunicate request_size=4 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 09 00 00 [14:02:33]Write to MH i2c: E2 08 00 EC 2F 80 09 00 00 00 00 00 00 8D [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 EC 2F 00 90 00 8F [14:02:33]RAPDU: 90 00 [14:02:33]wFMCommunicate OK [14:02:33]SAM_PROTO_ClearQueue done [14:02:33]KKMCreateOFDPacket [14:02:33]OFDProtocolAddRootSTLVToBuf [14:02:33]FM_MakeSignedData [14:02:33]FM_MakeSignedData [14:02:33]SAM_PROTO_SignData [14:02:33]wFMCommunicate request_size=4 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 0D 01 02 [14:02:33]Write to MH i2c: E2 08 00 ED 2F 80 0D 01 02 00 00 00 00 95 [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 ED 2F 00 90 00 90 [14:02:33]RAPDU: 90 00 [14:02:33]wFMCommunicate OK [14:02:33]wFMCommunicate request_size=255 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 0D 02 02 FA 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [14:02:33]Write to MH i2c: E2 02 01 EE 2F 80 0D 02 02 FA 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 DF [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [14:02:33]RAPDU: 90 00 [14:02:33]wFMCommunicate OK [14:02:33]wFMCommunicate request_size=28 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 E3 48 00 00 35 04 06 00 D9 69 ED A9 75 54 [14:02:33]Write to MH i2c: E2 1F 00 EF 2F 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 E3 48 00 00 35 04 06 00 D9 69 ED A9 75 54 00 00 F6 [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [14:02:33]RAPDU: 90 00 [14:02:33]wFMCommunicate OK [14:02:33]wFMCommunicate request_size=4 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 0D 03 02 [14:02:33]Write to MH i2c: E2 08 00 F0 2F 80 0D 03 02 00 00 00 00 9A [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 0B 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 0B 00 F0 2F 00 06 5B 1E 64 E8 EE 98 31 90 00 1D [14:02:33]RAPDU: 06 5B 1E 64 E8 EE 98 31 90 00 [14:02:33]wFMCommunicate OK [14:02:33]SAM_PROTO_SignData done [14:02:33]FM_MakeSignedData done [14:02:33]CreateOFDProtocolMessage [14:02:33]wFMCommunicate request_size=4 [14:02:33]MH_SAM_APDU [14:02:33]CAPDU: 80 11 00 00 [14:02:33]Write to MH i2c: E2 08 00 F1 2F 80 11 00 00 00 00 00 00 9A [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:33]Read from MH i2c: E2 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 17 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: E2 17 00 F1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F3 [14:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:02:33]wFMCommunicate OK [14:02:33]CreateOFDProtocolMessage done [14:02:33]OFDSenderStorePacket 18659 [14:02:33]StoreOFDPacket docnum=18659 [14:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 46 65 19 01 B6 4E 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E3 48 00 00 35 04 06 00 D9 69 ED A9 75 54 06 5B 1E 64 E8 EE 98 31 [14:02:33]CheckFolder [14:02:33]dirname=/storage/ofd_packets [14:02:33]CheckFolder done [14:02:33]ProducePacketName [14:02:33]name=ofd_packets/00018659 [14:02:33]NVStorageSaveData ofd_packets/00018659 [14:02:33]File name is /storage/ofd_packets/00018659 [14:02:33]Write 319 bytes [14:02:33]NVStorageSaveData done [14:02:33]OFDSenderStorePacket done [14:02:33]KKMCreateOFDPacket done [14:02:33]NVStorageSaveData kkm_last_timestamp [14:02:33]File name is /storage/kkm_last_timestamp [14:02:33]Write 4 bytes [14:02:33]NVStorageSaveData done [14:02:33]ExternCall_PrintAddStr [14:02:33]wPrintStart [14:02:33]Write to MH i2c: 01 00 00 F2 2F 21 [14:02:33]Write i2c OK [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: 01 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: 01 07 00 [14:02:33]MH_I2C_Read... [14:02:33]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [14:02:33]RasterBufferAndPrint [14:02:33]line Счет N : (3)16583 [14:02:33]line ИНН: 02508201610067 [14:02:33]line Контрольно-Кассовый Чек [14:02:33]line ПРОДАЖА [14:02:33]line Товар: 47803008 [14:02:33]line Сигареты Winston XS Blue [14:02:33]line 1.000 * 144.00 [14:02:33]line = 144.00 [14:02:33]line НДС 12% НСП 1% [14:02:33]line > о реализуемом товаре [14:02:33]line ИТОГО: 144.00 [14:02:33]line НСП 1% : 1.27 [14:02:33]line НДС 12% : 15.29 [14:02:33]line Наличными: 0.00 [14:02:33]line Безнал.: 144.00 [14:02:33]line Место: АЗС № 176 "Партнер Нефть" [14:02:33]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:02:33]line СНО: Общий режим [14:02:33]line Чек 55 22.09.2024 14:02 [14:02:33]line Смена: 180 ФФД: 1.0 [14:02:33]line ЗНМ: 0300000010 [14:02:33]line РНМ: 0000000000152968 [14:02:33]line Версия ККМ: v1.0 [14:02:33]line Платежная система: O! деньги [14:02:33]line ФМ: 0000000000959456 [14:02:33]line ФД: 18659 [14:02:33]line ФПД: 239048982099284 [14:02:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140239&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18659&fm=239048982099284&tin=02508201610067®Number=0000000000152968&sum=14400 [14:02:34]line 0 [14:02:34]OFD Sender: Processing packet 18659 [packets to send 7, broken 6] [14:02:34]ProducePacketName [14:02:34]name=ofd_packets/00018659 [14:02:34]OFD Sender: To server: pG, [14:02:34]CommunicateWithHost lk.salyk.kg:30040 [14:02:34]ConnectInit lk.salyk.kg [14:02:34]written 0, free lines is 4095 [14:02:34]Connected sock=10 [14:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 46 65 19 01 B6 4E 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 7F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E3 48 00 00 35 04 06 00 D9 69 ED A9 75 54 06 5B 1E 64 E8 EE 98 31 [14:02:34]Write to MH i2c: 01 00 00 1C 30 4C [14:02:34]Write i2c OK [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: 01 [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: 01 07 00 [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: 01 07 00 1C 30 00 00 00 00 00 F8 0C 57 [14:02:34]RasterBufferAndPrint [14:02:34]line [14:02:34]line [14:02:34]line [14:02:34]line [14:02:34]line [14:02:34]written 0, free lines is 3330 [14:02:34]MH_Cut [14:02:34]Write to MH i2c: D1 01 00 23 30 01 25 [14:02:34]Write i2c OK [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: D1 [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: D1 01 00 [14:02:34]MH_I2C_Read... [14:02:34]Read from MH i2c: D1 01 00 23 30 00 24 [14:02:34]Write to MH i2c: 01 00 00 24 30 54 [14:02:34]Write i2c OK [14:02:34]MH_I2C_Read... [14:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4E CB 47 00 07 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 39 35 39 34 35 36 10 04 04 00 E3 48 00 00 F4 03 04 00 E7 CC EF 66 B6 04 01 00 00 49 85 2A EC A2 D8 17 8D [14:02:34]CommunicateWithHost err = 0 [14:02:34]CheckOFDResponse [14:02:34]1017 (14) - 77093643461234 [14:02:34]1041 (16) - 0000000000959456 [14:02:34]1040 (4) - 18659 [14:02:34]1012 (4) - 22.09.2024 07:53 [14:02:34]1206 (1) - 0 [14:02:34]OFD Sender: Remove packet 18659 [14:02:34]ProducePacketName [14:02:34]name=ofd_packets/00018659 [14:02:34]NVStorageDeleteData [14:02:35]OFD Sender: No OFD packet to send [14:02:35]*** Cut start [14:02:35]*** Partial cut [14:02:35]*** CUTSNS_PIN = 1 [14:02:35]*** CUTSNS_PIN = 0 [14:02:35]*** Brake cut motor [14:02:35]Read from MH i2c: 01 [14:02:35]MH_I2C_Read... [14:02:35]*** Stop cut motor [14:02:35]*** Cut end [14:02:35]Read from MH i2c: 01 07 00 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: 01 07 00 24 30 00 00 00 00 00 FF 0F 69 [14:02:35]process_action close_receipt done [14:02:35]requested_data is exist [14:02:35]produce_requested_data [14:02:35]requested_item fm.sn is exist - process it [14:02:35]wFMCommunicate request_size=4 [14:02:35]MH_SAM_APDU [14:02:35]CAPDU: 80 11 00 00 [14:02:35]Write to MH i2c: E2 08 00 25 30 80 11 00 00 00 00 00 00 CF [14:02:35]Write i2c OK [14:02:35]MH_I2C_Read... [14:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:35]Read from MH i2c: E2 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 17 00 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 17 00 25 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 28 [14:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:02:35]wFMCommunicate OK [14:02:35]requested_item fd.num is exist - process it [14:02:35]SAM_PROTO_GetFieldsCounters [14:02:35]wFMCommunicate request_size=4 [14:02:35]MH_SAM_APDU [14:02:35]CAPDU: 80 13 00 00 [14:02:35]Write to MH i2c: E2 08 00 26 30 80 13 00 00 00 00 00 00 D2 [14:02:35]Write i2c OK [14:02:35]MH_I2C_Read... [14:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:35]Read from MH i2c: E2 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 62 00 [14:02:35]MH_I2C_Read... [14:02:35]Read from MH i2c: E2 62 00 26 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E3 48 00 00 0E 04 04 00 B4 00 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 83 [14:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E3 48 00 00 0E 04 04 00 B4 00 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 [14:02:35]wFMCommunicate OK [14:02:35]SAM_PROTO_GetFieldsCounters done [14:02:35]requested_item shift.num is exist - process it [14:02:35]requested_item shift.opened is exist - process it [14:02:35]req_shift_opened [14:02:35]FM_GetShiftState [14:02:35]SAM_PROTO_GetShiftState [14:02:35]wFMCommunicate request_size=4 [14:02:35]MH_SAM_APDU [14:02:35]CAPDU: 80 13 01 00 [14:02:35]Write to MH i2c: E2 08 00 27 30 80 13 01 00 00 00 00 00 D4 [14:02:35]Write i2c OK [14:02:35]MH_I2C_Read... [14:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:36]Read from MH i2c: E2 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 [14:02:36]MH_I2C_Read... [14:02:36]Read from MH i2c: E2 0E 00 27 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 94 [14:02:36]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:02:36]wFMCommunicate OK [14:02:36]SAM_PROTO_GetShiftState done [14:02:36]FM_GetShiftState done [14:02:36]req_shift_opened done [14:02:36]requested_item shift.open_date is exist - process it [14:02:36]req_shift_open_date [14:02:36]req_shift_open_date done [14:02:36]produce_requested_data done [14:02:36]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18659,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:02:36]process_action_free close_receipt [14:02:36]json_value_free [14:02:36]json_value_free done [14:02:36]process_json_proto returns [14:02:36]Send response to host [14:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18659,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:02:36]free response buf [14:02:36]execute_script done [14:02:36]execute_script returns [14:02:36]free content buf [14:02:36]Sock 9.Close socket [14:02:36]Sock 9.Thread stoped [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:03]accept exits with 7 [14:03:03]New connection [14:03:03]New thread 3066522980 created [14:03:03]Thread 3066666340 joined [14:03:03]Waiting for new connection... [14:03:03] Sock 7.Parse request [14:03:03]Sock 7.Check first char [14:03:03]Sock 7.First char is OK [14:03:03]request: POST /json_proto HTTP/1.0 [14:03:03]Method: POST [14:03:03]URL: /json_proto [14:03:03]Method is POST - this is cgi request [14:03:03]url: /json_proto [14:03:03]query_string will be loaded in cgi processing [14:03:03]execute_cgi json_proto POST (null) [14:03:03]execute_cgi path=json_proto method=POST [14:03:03]POST find Content-Length [14:03:03]Host: 172.17.62.196:8080 [14:03:03]Content-Length: 668 [14:03:03]Content-Type: application/json [14:03:03] [14:03:03]POST finish read [14:03:03]Found Content-Length = 668 [14:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16584", "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" ] } } [14:03:03]execute_script... [14:03: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)16584", "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" ] } } [14:03:03]POST & json_proto [14:03:03]process_json_proto [14:03:03]json parsed OK: [14:03:03]protocol is kg_v1.0 [14:03:03]action value=close_receipt [14:03:03]process_action close_receipt [14:03:03]cmd_close_receipt [14:03:03]MH_GetDate [14:03:03]Write to MH i2c: F0 00 00 28 30 47 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: F0 09 00 28 30 00 9F 23 F0 66 CE CC 0E 66 76 [14:03:03]GetLastDocTimeStamp 1727013759 [14:03:03]current date 1727013791 [14:03:03]FM_GetShiftState [14:03:03]SAM_PROTO_GetShiftState [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 13 01 00 [14:03:03]Write to MH i2c: E2 08 00 29 30 80 13 01 00 00 00 00 00 D6 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0E 00 29 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 96 [14:03:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_GetShiftState done [14:03:03]FM_GetShiftState done [14:03:03]opened in 1726963967 [14:03:03]opened+sec_in_day 1727050367 [14:03:03]quantity*price = 6500 [14:03:03]sum+1 = 6501 [14:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 56 22.09.2024 14:03 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18660 ФПД: 241859109828036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140311&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18660&fm=241859109828036&tin=02508201610067®Number=0000000000152968&sum=6500 0 [14:03:05]StoreToDocumentArchive [14:03:05]shift 180 fd 18660 [14:03:05]save to /storage/0180/doc_00018660 [14:03:05]save last doc name /storage/0180/doc_00018660 to /storage/kkm_last_doc_name [14:03:05]save OK [14:03:05]Clear old archive folders... [14:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:03:05]tlvbuf is 01983510 [14:03:05]SAM_PROTO_ClearQueue [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 09 00 00 [14:03:05]Write to MH i2c: E2 08 00 36 30 80 09 00 00 00 00 00 00 D8 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 36 30 00 90 00 DA [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_ClearQueue done [14:03:05]KKMCreateOFDPacket [14:03:05]OFDProtocolAddRootSTLVToBuf [14:03:05]FM_MakeSignedData [14:03:05]FM_MakeSignedData [14:03:05]SAM_PROTO_SignData [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 01 02 [14:03:05]Write to MH i2c: E2 08 00 37 30 80 0D 01 02 00 00 00 00 E0 [14:03:05]OFD Sender: No OFD packet to send [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 37 30 00 90 00 DB [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=255 [14:03:05]MH_SAM_APDU [14:03:05]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 38 00 00 00 F4 03 04 00 9F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [14:03:05]Write to MH i2c: E2 02 01 38 30 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 38 00 00 00 F4 03 04 00 9F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 76 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=43 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E4 48 00 00 35 04 06 00 DB F8 36 53 B5 C4 [14:03:05]Write to MH i2c: E2 2E 00 39 30 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E4 48 00 00 35 04 06 00 DB F8 36 53 B5 C4 00 00 D2 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [14:03:05]RAPDU: 90 00 [14:03:05]wFMCommunicate OK [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 0D 03 02 [14:03:05]Write to MH i2c: E2 08 00 3A 30 80 0D 03 02 00 00 00 00 E5 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0B 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0B 00 3A 30 00 D6 D4 E4 F9 A1 49 5D CF 90 00 83 [14:03:05]RAPDU: D6 D4 E4 F9 A1 49 5D CF 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_SignData done [14:03:05]FM_MakeSignedData done [14:03:05]CreateOFDProtocolMessage [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 11 00 00 [14:03:05]Write to MH i2c: E2 08 00 3B 30 80 11 00 00 00 00 00 00 E5 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 17 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 17 00 3B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3E [14:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:03:05]wFMCommunicate OK [14:03:05]CreateOFDProtocolMessage done [14:03:05]OFDSenderStorePacket 18660 [14:03:05]StoreOFDPacket docnum=18660 [14:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 15 87 28 01 81 FE 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 38 00 00 00 F4 03 04 00 9F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E4 48 00 00 35 04 06 00 DB F8 36 53 B5 C4 D6 D4 E4 F9 A1 49 5D CF [14:03:05]CheckFolder [14:03:05]dirname=/storage/ofd_packets [14:03:05]CheckFolder done [14:03:05]ProducePacketName [14:03:05]name=ofd_packets/00018660 [14:03:05]NVStorageSaveData ofd_packets/00018660 [14:03:05]File name is /storage/ofd_packets/00018660 [14:03:05]Write 334 bytes [14:03:05]NVStorageSaveData done [14:03:05]OFDSenderStorePacket done [14:03:05]KKMCreateOFDPacket done [14:03:05]NVStorageSaveData kkm_last_timestamp [14:03:05]File name is /storage/kkm_last_timestamp [14:03:05]Write 4 bytes [14:03:05]NVStorageSaveData done [14:03:05]ExternCall_PrintAddStr [14:03:05]wPrintStart [14:03:05]Write to MH i2c: 01 00 00 3C 30 6C [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: 01 07 00 3C 30 00 00 00 00 00 FF 0F 81 [14:03:05]RasterBufferAndPrint [14:03:05]line Счет N : (3)16584 [14:03:05]line ИНН: 02508201610067 [14:03:05]line Контрольно-Кассовый Чек [14:03:05]line ПРОДАЖА [14:03:05]line Товар: 4700040114137 [14:03:05]line Султан чай 1л. зел лимон [14:03:05]line 1.000 * 65.00 [14:03:05]line = 65.00 [14:03:05]line НДС 12% НСП 1% [14:03:05]line > о реализуемом товаре [14:03:05]line ИТОГО: 65.00 [14:03:05]line НСП 1% : 0.57 [14:03:05]line НДС 12% : 6.90 [14:03:05]line Наличными: 65.00 [14:03:05]line Безнал.: 0.00 [14:03:05]line Место: АЗС № 176 "Партнер Нефть" [14:03:05]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:03:05]line СНО: Общий режим [14:03:05]line Чек 56 22.09.2024 14:03 [14:03:05]line Смена: 180 ФФД: 1.0 [14:03:05]line ЗНМ: 0300000010 [14:03:05]line РНМ: 0000000000152968 [14:03:05]line Версия ККМ: v1.0 [14:03:05]line ФМ: 0000000000959456 [14:03:05]line ФД: 18660 [14:03:05]line ФПД: 241859109828036 [14:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140311&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18660&fm=241859109828036&tin=02508201610067®Number=0000000000152968&sum=6500 [14:03:06]line 0 [14:03:06]OFD Sender: Processing packet 18660 [packets to send 7, broken 6] [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00018660 [14:03:06]OFD Sender: To server: pG, [14:03:06]CommunicateWithHost lk.salyk.kg:30040 [14:03:06]ConnectInit lk.salyk.kg [14:03:06]written 0, free lines is 4095 [14:03:06]Connected sock=10 [14:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 15 87 28 01 81 FE 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 38 00 00 00 F4 03 04 00 9F 23 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E4 48 00 00 35 04 06 00 DB F8 36 53 B5 C4 D6 D4 E4 F9 A1 49 5D CF [14:03:06]Write to MH i2c: 01 00 00 64 30 94 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 64 30 00 00 00 00 00 23 0D CB [14:03:06]RasterBufferAndPrint [14:03:06]line [14:03:06]line [14:03:06]line [14:03:06]line [14:03:06]line [14:03:06]written 0, free lines is 3369 [14:03:06]MH_Cut [14:03:06]Write to MH i2c: D1 01 00 6B 30 01 6D [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: D1 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: D1 01 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: D1 01 00 6B 30 00 6C [14:03:06]Write to MH i2c: 01 00 00 6C 30 9C [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 16 A6 47 00 6A 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E4 48 00 00 F4 03 04 00 06 CD EF 66 B6 04 01 00 00 CF 96 82 BA 7F A5 0C 53 [14:03:06]CommunicateWithHost err = 0 [14:03:06]CheckOFDResponse [14:03:06]1017 (14) - 77093643461234 [14:03:06]1041 (16) - 0000000000959456 [14:03:06]1040 (4) - 18660 [14:03:06]1012 (4) - 22.09.2024 07:53 [14:03:06]1206 (1) - 0 [14:03:06]OFD Sender: Remove packet 18660 [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00018660 [14:03:06]NVStorageDeleteData [14:03:07]OFD Sender: No OFD packet to send [14:03:07]*** Cut start [14:03:07]*** Partial cut [14:03:07]*** CUTSNS_PIN = 1 [14:03:07]*** CUTSNS_PIN = 0 [14:03:07]*** Brake cut motor [14:03:07]Read from MH i2c: 01 [14:03:07]MH_I2C_Read... [14:03:07]*** Stop cut motor [14:03:07]*** Cut end [14:03:07]Read from MH i2c: 01 07 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 6C 30 00 00 00 00 00 FF 0F B1 [14:03:07]process_action close_receipt done [14:03:07]requested_data is exist [14:03:07]produce_requested_data [14:03:07]requested_item fm.sn is exist - process it [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 11 00 00 [14:03:07]Write to MH i2c: E2 08 00 6D 30 80 11 00 00 00 00 00 00 17 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 17 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 17 00 6D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 70 [14:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:03:07]wFMCommunicate OK [14:03:07]requested_item fd.num is exist - process it [14:03:07]SAM_PROTO_GetFieldsCounters [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 13 00 00 [14:03:07]Write to MH i2c: E2 08 00 6E 30 80 13 00 00 00 00 00 00 1A [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 62 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 62 00 6E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E4 48 00 00 0E 04 04 00 B4 00 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 CF [14:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E4 48 00 00 0E 04 04 00 B4 00 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 [14:03:07]wFMCommunicate OK [14:03:07]SAM_PROTO_GetFieldsCounters done [14:03:07]requested_item shift.num is exist - process it [14:03:07]requested_item shift.opened is exist - process it [14:03:07]req_shift_opened [14:03:07]FM_GetShiftState [14:03:07]SAM_PROTO_GetShiftState [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 13 01 00 [14:03:07]Write to MH i2c: E2 08 00 6F 30 80 13 01 00 00 00 00 00 1C [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 0E 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 0E 00 6F 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DC [14:03:07]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:03:07]wFMCommunicate OK [14:03:07]SAM_PROTO_GetShiftState done [14:03:07]FM_GetShiftState done [14:03:07]req_shift_opened done [14:03:07]requested_item shift.open_date is exist - process it [14:03:07]req_shift_open_date [14:03:07]req_shift_open_date done [14:03:07]produce_requested_data done [14:03:07]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18660,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:03:07]process_action_free close_receipt [14:03:07]json_value_free [14:03:07]json_value_free done [14:03:07]process_json_proto returns [14:03:07]Send response to host [14:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18660,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:03:07]free response buf [14:03:07]execute_script done [14:03:07]execute_script returns [14:03:07]free content buf [14:03:07]Sock 7.Close socket [14:03:07]Sock 7.Thread stoped [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:25]accept exits with 9 [14:14:25]New connection [14:14:25]New thread 3066666340 created [14:14:25]Thread 3066522980 joined [14:14:25]Waiting for new connection... [14:14:25] Sock 9.Parse request [14:14:25]Sock 9.Check first char [14:14:25]Sock 9.First char is OK [14:14:25]request: POST /json_proto HTTP/1.0 [14:14:25]Method: POST [14:14:25]URL: /json_proto [14:14:25]Method is POST - this is cgi request [14:14:25]url: /json_proto [14:14:25]query_string will be loaded in cgi processing [14:14:25]execute_cgi json_proto POST (null) [14:14:25]execute_cgi path=json_proto method=POST [14:14:25]POST find Content-Length [14:14:25]Host: 172.17.62.196:8080 [14:14:25]Content-Length: 802 [14:14:25]Content-Type: application/json [14:14:25] [14:14:25]POST finish read [14:14:25]Found Content-Length = 802 [14:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16585", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:25]execute_script... [14:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16585", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:25]POST & json_proto [14:14:25]process_json_proto [14:14:25]json parsed OK: [14:14:25]protocol is kg_v1.0 [14:14:25]action value=close_receipt [14:14:25]process_action close_receipt [14:14:25]cmd_close_receipt [14:14:25]MH_GetDate [14:14:25]Write to MH i2c: F0 00 00 70 30 8F [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: F0 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: F0 09 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: F0 09 00 70 30 00 48 26 F0 66 CE CC 0E 66 6A [14:14:25]GetLastDocTimeStamp 1727013791 [14:14:25]current date 1727014472 [14:14:25]FM_GetShiftState [14:14:25]SAM_PROTO_GetShiftState [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 13 01 00 [14:14:25]Write to MH i2c: E2 08 00 71 30 80 13 01 00 00 00 00 00 1E [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0E 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0E 00 71 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DE [14:14:25]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:14:25]wFMCommunicate OK [14:14:25]SAM_PROTO_GetShiftState done [14:14:25]FM_GetShiftState done [14:14:25]opened in 1726963967 [14:14:25]opened+sec_in_day 1727050367 [14:14:25]quantity*price = 15000 [14:14:25]sum+1 = 15001 [14:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 57 22.09.2024 14:14 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18661 ФПД: 4323525608955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141432&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18661&fm=4323525608955&tin=02508201610067®Number=0000000000152968&sum=15000 0 [14:14:26]StoreToDocumentArchive [14:14:26]shift 180 fd 18661 [14:14:26]save to /storage/0180/doc_00018661 [14:14:26]save last doc name /storage/0180/doc_00018661 to /storage/kkm_last_doc_name [14:14:26]save OK [14:14:26]Clear old archive folders... [14:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:14:26]tlvbuf is B6F12ED0 [14:14:26]SAM_PROTO_ClearQueue [14:14:26]wFMCommunicate request_size=4 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 09 00 00 [14:14:26]Write to MH i2c: E2 08 00 7E 30 80 09 00 00 00 00 00 00 20 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 7E 30 00 90 00 22 [14:14:26]RAPDU: 90 00 [14:14:26]wFMCommunicate OK [14:14:26]SAM_PROTO_ClearQueue done [14:14:26]KKMCreateOFDPacket [14:14:26]OFDProtocolAddRootSTLVToBuf [14:14:26]FM_MakeSignedData [14:14:26]FM_MakeSignedData [14:14:26]SAM_PROTO_SignData [14:14:26]wFMCommunicate request_size=4 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 0D 01 02 [14:14:26]Write to MH i2c: E2 08 00 7F 30 80 0D 01 02 00 00 00 00 28 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 7F 30 00 90 00 23 [14:14:26]RAPDU: 90 00 [14:14:26]wFMCommunicate OK [14:14:26]wFMCommunicate request_size=255 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 48 26 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [14:14:26]Write to MH i2c: E2 02 01 80 30 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 48 26 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 04 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 80 30 00 90 00 24 [14:14:26]RAPDU: 90 00 [14:14:26]wFMCommunicate OK [14:14:26]wFMCommunicate request_size=37 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E5 48 00 00 35 04 06 00 03 EE A6 35 45 FB [14:14:26]Write to MH i2c: E2 28 00 81 30 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E5 48 00 00 35 04 06 00 03 EE A6 35 45 FB 00 00 C1 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 03 00 81 30 00 90 00 25 [14:14:26]RAPDU: 90 00 [14:14:26]wFMCommunicate OK [14:14:26]wFMCommunicate request_size=4 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 0D 03 02 [14:14:26]Write to MH i2c: E2 08 00 82 30 80 0D 03 02 00 00 00 00 2D [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 0B 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 0B 00 82 30 00 9A 3B 62 8B 96 C7 13 27 90 00 87 [14:14:26]RAPDU: 9A 3B 62 8B 96 C7 13 27 90 00 [14:14:26]wFMCommunicate OK [14:14:26]SAM_PROTO_SignData done [14:14:26]FM_MakeSignedData done [14:14:26]CreateOFDProtocolMessage [14:14:26]wFMCommunicate request_size=4 [14:14:26]MH_SAM_APDU [14:14:26]CAPDU: 80 11 00 00 [14:14:26]Write to MH i2c: E2 08 00 83 30 80 11 00 00 00 00 00 00 2D [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:26]Read from MH i2c: E2 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 17 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: E2 17 00 83 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 86 [14:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:14:26]wFMCommunicate OK [14:14:26]CreateOFDProtocolMessage done [14:14:26]OFDSenderStorePacket 18661 [14:14:26]StoreOFDPacket docnum=18661 [14:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 70 C7 22 01 6F 59 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 48 26 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E5 48 00 00 35 04 06 00 03 EE A6 35 45 FB 9A 3B 62 8B 96 C7 13 27 [14:14:26]CheckFolder [14:14:26]dirname=/storage/ofd_packets [14:14:26]CheckFolder done [14:14:26]ProducePacketName [14:14:26]name=ofd_packets/00018661 [14:14:26]NVStorageSaveData ofd_packets/00018661 [14:14:26]File name is /storage/ofd_packets/00018661 [14:14:26]Write 328 bytes [14:14:26]NVStorageSaveData done [14:14:26]OFDSenderStorePacket done [14:14:26]KKMCreateOFDPacket done [14:14:26]NVStorageSaveData kkm_last_timestamp [14:14:26]File name is /storage/kkm_last_timestamp [14:14:26]Write 4 bytes [14:14:26]NVStorageSaveData done [14:14:26]ExternCall_PrintAddStr [14:14:26]wPrintStart [14:14:26]Write to MH i2c: 01 00 00 84 30 B4 [14:14:26]Write i2c OK [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 07 00 [14:14:26]MH_I2C_Read... [14:14:26]Read from MH i2c: 01 07 00 84 30 00 00 00 00 00 FF 0F C9 [14:14:26]RasterBufferAndPrint [14:14:26]line Счет N : (3)16585 [14:14:26]line ИНН: 02508201610067 [14:14:26]line Контрольно-Кассовый Чек [14:14:26]line ПРОДАЖА [14:14:26]line Товар: 4640030092499 [14:14:26]line Сигареты ESSE SENSE Himalaya [14:14:26]line 1.000 * 150.00 [14:14:26]line = 150.00 [14:14:26]line НДС 12% НСП 1% [14:14:26]line > о реализуемом товаре [14:14:26]line ИТОГО: 150.00 [14:14:26]line НСП 1% : 1.33 [14:14:26]line НДС 12% : 15.93 [14:14:26]line Наличными: 0.00 [14:14:26]line Безнал.: 150.00 [14:14:26]line Место: АЗС № 176 "Партнер Нефть" [14:14:26]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:14:26]line СНО: Общий режим [14:14:26]line Чек 57 22.09.2024 14:14 [14:14:26]line Смена: 180 ФФД: 1.0 [14:14:26]line ЗНМ: 0300000010 [14:14:26]line РНМ: 0000000000152968 [14:14:26]line Версия ККМ: v1.0 [14:14:26]line Платежная система: Бакай Банк [14:14:26]line ФМ: 0000000000959456 [14:14:26]line ФД: 18661 [14:14:26]line ФПД: 4323525608955 [14:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T141432&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18661&fm=4323525608955&tin=02508201610067®Number=0000000000152968&sum=15000 [14:14:27]line 0 [14:14:27]OFD Sender: Processing packet 18661 [packets to send 7, broken 6] [14:14:27]ProducePacketName [14:14:27]name=ofd_packets/00018661 [14:14:27]OFD Sender: To server: pG, [14:14:27]CommunicateWithHost lk.salyk.kg:30040 [14:14:27]ConnectInit lk.salyk.kg [14:14:27]written 0, free lines is 4095 [14:14:27]Connected sock=10 [14:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 70 C7 22 01 6F 59 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 48 26 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E5 48 00 00 35 04 06 00 03 EE A6 35 45 FB 9A 3B 62 8B 96 C7 13 27 [14:14:27]Write to MH i2c: 01 00 00 AF 30 DF [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: 01 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: 01 07 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: 01 07 00 AF 30 00 00 00 00 00 E8 0C DA [14:14:27]RasterBufferAndPrint [14:14:27]line [14:14:27]line [14:14:27]line [14:14:27]line [14:14:27]line [14:14:27]written 0, free lines is 3310 [14:14:27]MH_Cut [14:14:27]Write to MH i2c: D1 01 00 B6 30 01 B8 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: D1 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: D1 01 00 [14:14:27]MH_I2C_Read... [14:14:27]Read from MH i2c: D1 01 00 B6 30 00 B7 [14:14:27]Write to MH i2c: 01 00 00 B7 30 E7 [14:14:27]Write i2c OK [14:14:27]MH_I2C_Read... [14:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9A D6 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 39 35 39 34 35 36 10 04 04 00 E5 48 00 00 F4 03 04 00 B0 CF EF 66 B6 04 01 00 00 78 1C 1A 73 CF 4C E0 30 [14:14:27]CommunicateWithHost err = 0 [14:14:27]CheckOFDResponse [14:14:27]1017 (14) - 77093643461234 [14:14:27]1041 (16) - 0000000000959456 [14:14:27]1040 (4) - 18661 [14:14:27]1012 (4) - 22.09.2024 08:05 [14:14:27]1206 (1) - 0 [14:14:27]OFD Sender: Remove packet 18661 [14:14:27]ProducePacketName [14:14:27]name=ofd_packets/00018661 [14:14:27]NVStorageDeleteData [14:14:28]OFD Sender: No OFD packet to send [14:14:28]*** Cut start [14:14:28]*** Partial cut [14:14:28]*** CUTSNS_PIN = 1 [14:14:28]*** CUTSNS_PIN = 0 [14:14:28]*** Brake cut motor [14:14:28]Read from MH i2c: 01 [14:14:28]MH_I2C_Read... [14:14:28]*** Stop cut motor [14:14:28]*** Cut end [14:14:28]Read from MH i2c: 01 07 00 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: 01 07 00 B7 30 00 00 00 00 00 FF 0F FC [14:14:28]process_action close_receipt done [14:14:28]requested_data is exist [14:14:28]produce_requested_data [14:14:28]requested_item fm.sn is exist - process it [14:14:28]wFMCommunicate request_size=4 [14:14:28]MH_SAM_APDU [14:14:28]CAPDU: 80 11 00 00 [14:14:28]Write to MH i2c: E2 08 00 B8 30 80 11 00 00 00 00 00 00 62 [14:14:28]Write i2c OK [14:14:28]MH_I2C_Read... [14:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:28]Read from MH i2c: E2 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 17 00 [14:14:28]MH_I2C_Read... [14:14:28]Read from MH i2c: E2 17 00 B8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BB [14:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:14:28]wFMCommunicate OK [14:14:28]requested_item fd.num is exist - process it [14:14:28]SAM_PROTO_GetFieldsCounters [14:14:28]wFMCommunicate request_size=4 [14:14:28]MH_SAM_APDU [14:14:28]CAPDU: 80 13 00 00 [14:14:28]Write to MH i2c: E2 08 00 B9 30 80 13 00 00 00 00 00 00 65 [14:14:28]Write i2c OK [14:14:28]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 62 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 62 00 B9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E5 48 00 00 0E 04 04 00 B4 00 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 1E [14:14:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E5 48 00 00 0E 04 04 00 B4 00 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 [14:14:29]wFMCommunicate OK [14:14:29]SAM_PROTO_GetFieldsCounters done [14:14:29]requested_item shift.num is exist - process it [14:14:29]requested_item shift.opened is exist - process it [14:14:29]req_shift_opened [14:14:29]FM_GetShiftState [14:14:29]SAM_PROTO_GetShiftState [14:14:29]wFMCommunicate request_size=4 [14:14:29]MH_SAM_APDU [14:14:29]CAPDU: 80 13 01 00 [14:14:29]Write to MH i2c: E2 08 00 BA 30 80 13 01 00 00 00 00 00 67 [14:14:29]Write i2c OK [14:14:29]MH_I2C_Read... [14:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:29]Read from MH i2c: E2 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0E 00 [14:14:29]MH_I2C_Read... [14:14:29]Read from MH i2c: E2 0E 00 BA 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 27 [14:14:29]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:14:29]wFMCommunicate OK [14:14:29]SAM_PROTO_GetShiftState done [14:14:29]FM_GetShiftState done [14:14:29]req_shift_opened done [14:14:29]requested_item shift.open_date is exist - process it [14:14:29]req_shift_open_date [14:14:29]req_shift_open_date done [14:14:29]produce_requested_data done [14:14:29]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18661,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:14:29]process_action_free close_receipt [14:14:29]json_value_free [14:14:29]json_value_free done [14:14:29]process_json_proto returns [14:14:29]Send response to host [14:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18661,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:14:29]free response buf [14:14:29]execute_script done [14:14:29]execute_script returns [14:14:29]free content buf [14:14:29]Sock 9.Close socket [14:14:29]Sock 9.Thread stoped [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:15]accept exits with 7 [14:41:15]New connection [14:41:15]New thread 3066522980 created [14:41:15]Thread 3066666340 joined [14:41:15]Waiting for new connection... [14:41:15] Sock 7.Parse request [14:41:15]Sock 7.Check first char [14:41:15]Sock 7.First char is OK [14:41:15]request: POST /json_proto HTTP/1.0 [14:41:15]Method: POST [14:41:15]URL: /json_proto [14:41:15]Method is POST - this is cgi request [14:41:15]url: /json_proto [14:41:15]query_string will be loaded in cgi processing [14:41:15]execute_cgi json_proto POST (null) [14:41:15]execute_cgi path=json_proto method=POST [14:41:15]POST find Content-Length [14:41:15]Host: 172.17.62.196:8080 [14:41:15]Content-Length: 1290 [14:41:15]Content-Type: application/json [14:41:15] [14:41:15]POST finish read [14:41:15]Found Content-Length = 1290 [14:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16586", "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" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:15]execute_script... [14:41:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16586", "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" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:15]POST & json_proto [14:41:15]process_json_proto [14:41:15]json parsed OK: [14:41:15]protocol is kg_v1.0 [14:41:15]action value=close_receipt [14:41:15]process_action close_receipt [14:41:15]cmd_close_receipt [14:41:15]MH_GetDate [14:41:15]Write to MH i2c: F0 00 00 BB 30 DA [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: F0 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: F0 09 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: F0 09 00 BB 30 00 93 2C F0 66 CE CC 0E 66 06 [14:41:15]GetLastDocTimeStamp 1727014472 [14:41:15]current date 1727016083 [14:41:15]FM_GetShiftState [14:41:15]SAM_PROTO_GetShiftState [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 13 01 00 [14:41:15]Write to MH i2c: E2 08 00 BC 30 80 13 01 00 00 00 00 00 69 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 BC 30 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 29 [14:41:15]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_GetShiftState done [14:41:15]FM_GetShiftState done [14:41:15]opened in 1726963967 [14:41:15]opened+sec_in_day 1727050367 [14:41:15]quantity*price = 7500 [14:41:15]sum+1 = 7501 [14:41:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521179 Чай холодный MAXI черный персик ПЭТ 0,45 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.38 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 58 22.09.2024 14:41 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18662 ФПД: 157629029956983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144123&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18662&fm=157629029956983&tin=02508201610067®Number=0000000000152968&sum=30500 0 [14:41:16]StoreToDocumentArchive [14:41:16]shift 180 fd 18662 [14:41:16]save to /storage/0180/doc_00018662 [14:41:16]save last doc name /storage/0180/doc_00018662 to /storage/kkm_last_doc_name [14:41:16]save OK [14:41:16]Clear old archive folders... [14:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=539 [14:41:16]tlvbuf is 019A9FF0 [14:41:16]SAM_PROTO_ClearQueue [14:41:16]wFMCommunicate request_size=4 [14:41:16]MH_SAM_APDU [14:41:16]CAPDU: 80 09 00 00 [14:41:16]Write to MH i2c: E2 08 00 C9 30 80 09 00 00 00 00 00 00 6B [14:41:16]Write i2c OK [14:41:16]MH_I2C_Read... [14:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:16]Read from MH i2c: E2 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: E2 03 00 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: E2 03 00 C9 30 00 90 00 6D [14:41:16]RAPDU: 90 00 [14:41:16]wFMCommunicate OK [14:41:16]SAM_PROTO_ClearQueue done [14:41:16]KKMCreateOFDPacket [14:41:16]OFDProtocolAddRootSTLVToBuf [14:41:16]FM_MakeSignedData [14:41:16]FM_MakeSignedData [14:41:16]SAM_PROTO_SignData [14:41:16]wFMCommunicate request_size=4 [14:41:16]MH_SAM_APDU [14:41:16]CAPDU: 80 0D 01 02 [14:41:16]Write to MH i2c: E2 08 00 CA 30 80 0D 01 02 00 00 00 00 73 [14:41:16]Write i2c OK [14:41:16]MH_I2C_Read... [14:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:16]Read from MH i2c: E2 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: E2 03 00 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: E2 03 00 CA 30 00 90 00 6E [14:41:16]RAPDU: 90 00 [14:41:16]wFMCommunicate OK [14:41:16]wFMCommunicate request_size=255 [14:41:16]MH_SAM_APDU [14:41:16]CAPDU: 80 0D 02 02 FA 03 00 1B 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 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 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 [14:41:17]Write to MH i2c: E2 02 01 CB 30 80 0D 02 02 FA 00 03 00 1B 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 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 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 00 E8 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 CB 30 00 90 00 6F [14:41:17]RAPDU: 90 00 [14:41:17]wFMCommunicate OK [14:41:17]wFMCommunicate request_size=255 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 0D 02 02 FA 00 58 1B 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 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 93 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 [14:41:17]Write to MH i2c: E2 02 01 CC 30 80 0D 02 02 FA 00 00 58 1B 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 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 93 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 00 00 1B [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 CC 30 00 90 00 70 [14:41:17]RAPDU: 90 00 [14:41:17]wFMCommunicate OK [14:41:17]wFMCommunicate request_size=48 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 0D 02 02 2B 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E6 48 00 00 35 04 06 00 8F 5C DE 56 3D 77 [14:41:17]Write to MH i2c: E2 33 00 CD 30 80 0D 02 02 2B 00 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E6 48 00 00 35 04 06 00 8F 5C DE 56 3D 77 00 00 7E [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [14:41:17]RAPDU: 90 00 [14:41:17]wFMCommunicate OK [14:41:17]wFMCommunicate request_size=4 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 0D 03 02 [14:41:17]Write to MH i2c: E2 08 00 CE 30 80 0D 03 02 00 00 00 00 79 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 0B 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 0B 00 CE 30 00 14 68 C2 99 88 65 0A E7 90 00 2F [14:41:17]RAPDU: 14 68 C2 99 88 65 0A E7 90 00 [14:41:17]wFMCommunicate OK [14:41:17]SAM_PROTO_SignData done [14:41:17]FM_MakeSignedData done [14:41:17]CreateOFDProtocolMessage [14:41:17]wFMCommunicate request_size=4 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 11 00 00 [14:41:17]Write to MH i2c: E2 08 00 CF 30 80 11 00 00 00 00 00 00 79 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 17 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 17 00 CF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D2 [14:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:41:17]wFMCommunicate OK [14:41:17]CreateOFDProtocolMessage done [14:41:17]OFDSenderStorePacket 18662 [14:41:17]StoreOFDPacket docnum=18662 [14:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 02 00 00 2E 5C 27 02 3D 9D 5A 03 01 00 03 00 1B 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 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 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 93 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E6 48 00 00 35 04 06 00 8F 5C DE 56 3D 77 14 68 C2 99 88 65 0A E7 [14:41:17]CheckFolder [14:41:17]dirname=/storage/ofd_packets [14:41:17]CheckFolder done [14:41:17]ProducePacketName [14:41:17]name=ofd_packets/00018662 [14:41:17]NVStorageSaveData ofd_packets/00018662 [14:41:17]File name is /storage/ofd_packets/00018662 [14:41:17]Write 589 bytes [14:41:17]NVStorageSaveData done [14:41:17]OFDSenderStorePacket done [14:41:17]KKMCreateOFDPacket done [14:41:17]NVStorageSaveData kkm_last_timestamp [14:41:17]File name is /storage/kkm_last_timestamp [14:41:17]Write 4 bytes [14:41:17]NVStorageSaveData done [14:41:17]ExternCall_PrintAddStr [14:41:17]wPrintStart [14:41:17]Write to MH i2c: 01 00 00 D0 30 00 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: 01 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: 01 07 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: 01 07 00 D0 30 00 00 00 00 00 FF 0F 15 [14:41:17]RasterBufferAndPrint [14:41:17]line Счет N : (3)16586 [14:41:17]line ИНН: 02508201610067 [14:41:17]line Контрольно-Кассовый Чек [14:41:17]line ПРОДАЖА [14:41:17]line Товар: 5449000027450 [14:41:17]line Напиток FuzeTea чай манго,ром 0,5л [14:41:17]line 1.000 * 75.00 [14:41:17]line = 75.00 [14:41:17]line НДС 12% НСП 1% [14:41:17]line > о реализуемом товаре [14:41:17]line Товар: 4870202521179 [14:41:17]line Чай холодный MAXI черный персик ПЭТ 0,45 [14:41:17]line 1.000 * 70.00 [14:41:17]line = 70.00 [14:41:17]line НДС 12% НСП 1% [14:41:17]line > о реализуемом товаре [14:41:17]line Товар: 4860019001346 [14:41:17]line Вода Боржоми 0,5л ст [14:41:17]line 1.000 * 160.00 [14:41:17]line = 160.00 [14:41:17]line НДС 12% НСП 1% [14:41:17]line > о реализуемом товаре [14:41:17]line ИТОГО: 305.00 [14:41:17]line НСП 1% : 2.70 [14:41:17]line НДС 12% : 32.38 [14:41:17]line Наличными: 305.00 [14:41:17]line Безнал.: 0.00 [14:41:17]line Место: АЗС № 176 "Партнер Нефть" [14:41:17]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:41:17]line СНО: Общий режим [14:41:17]line Чек 58 22.09.2024 14:41 [14:41:17]line Смена: 180 ФФД: 1.0 [14:41:17]line ЗНМ: 0300000010 [14:41:17]line РНМ: 0000000000152968 [14:41:17]line Версия ККМ: v1.0 [14:41:17]line ФМ: 0000000000959456 [14:41:17]line ФД: 18662 [14:41:17]line ФПД: 157629029956983 [14:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144123&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18662&fm=157629029956983&tin=02508201610067®Number=0000000000152968&sum=30500 [14:41:18]line 0 [14:41:18]OFD Sender: Processing packet 18662 [packets to send 7, broken 6] [14:41:18]ProducePacketName [14:41:18]name=ofd_packets/00018662 [14:41:18]OFD Sender: To server: pG, [14:41:18]CommunicateWithHost lk.salyk.kg:30040 [14:41:18]ConnectInit lk.salyk.kg [14:41:18]written 0, free lines is 4095 [14:41:18]Connected sock=10 [14:41:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 02 00 00 2E 5C 27 02 3D 9D 5A 03 01 00 03 00 1B 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 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 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 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 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 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 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 93 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E6 48 00 00 35 04 06 00 8F 5C DE 56 3D 77 14 68 C2 99 88 65 0A E7 [14:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4C 8E 47 00 0A 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 39 35 39 34 35 36 10 04 04 00 E6 48 00 00 F4 03 04 00 FB D5 EF 66 B6 04 01 00 00 AC 46 00 16 08 72 BB E0 [14:41:18]CommunicateWithHost err = 0 [14:41:18]CheckOFDResponse [14:41:18]1017 (14) - 77093643461234 [14:41:18]1041 (16) - 0000000000959456 [14:41:18]1040 (4) - 18662 [14:41:18]1012 (4) - 22.09.2024 08:31 [14:41:18]1206 (1) - 0 [14:41:18]OFD Sender: Remove packet 18662 [14:41:18]ProducePacketName [14:41:18]name=ofd_packets/00018662 [14:41:18]NVStorageDeleteData [14:41:18]Write to MH i2c: 01 00 00 06 31 37 [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: 01 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: 01 07 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 84 0C CE [14:41:18]RasterBufferAndPrint [14:41:18]line [14:41:18]line [14:41:18]line [14:41:18]line [14:41:18]line [14:41:18]written 0, free lines is 3212 [14:41:18]MH_Cut [14:41:18]Write to MH i2c: D1 01 00 0D 31 01 10 [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: D1 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: D1 01 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: D1 01 00 0D 31 00 0F [14:41:18]Write to MH i2c: 01 00 00 0E 31 3F [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:19]OFD Sender: No OFD packet to send [14:41:19]*** Cut start [14:41:19]*** Partial cut [14:41:19]*** CUTSNS_PIN = 1 [14:41:19]*** CUTSNS_PIN = 0 [14:41:19]*** Brake cut motor [14:41:20]Read from MH i2c: 01 [14:41:20]MH_I2C_Read... [14:41:20]*** Stop cut motor [14:41:20]*** Cut end [14:41:20]Read from MH i2c: 01 07 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 FF 0F 54 [14:41:20]process_action close_receipt done [14:41:20]requested_data is exist [14:41:20]produce_requested_data [14:41:20]requested_item fm.sn is exist - process it [14:41:20]wFMCommunicate request_size=4 [14:41:20]MH_SAM_APDU [14:41:20]CAPDU: 80 11 00 00 [14:41:20]Write to MH i2c: E2 08 00 0F 31 80 11 00 00 00 00 00 00 BA [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:20]Read from MH i2c: E2 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 17 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 17 00 0F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [14:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:41:20]wFMCommunicate OK [14:41:20]requested_item fd.num is exist - process it [14:41:20]SAM_PROTO_GetFieldsCounters [14:41:20]wFMCommunicate request_size=4 [14:41:20]MH_SAM_APDU [14:41:20]CAPDU: 80 13 00 00 [14:41:20]Write to MH i2c: E2 08 00 10 31 80 13 00 00 00 00 00 00 BD [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 [14:41:20]MH_I2C_Read... [14:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:20]Read from MH i2c: E2 62 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 62 00 10 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E6 48 00 00 0E 04 04 00 B4 00 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 7A [14:41:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E6 48 00 00 0E 04 04 00 B4 00 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 [14:41:20]wFMCommunicate OK [14:41:20]SAM_PROTO_GetFieldsCounters done [14:41:20]requested_item shift.num is exist - process it [14:41:20]requested_item shift.opened is exist - process it [14:41:20]req_shift_opened [14:41:20]FM_GetShiftState [14:41:20]SAM_PROTO_GetShiftState [14:41:20]wFMCommunicate request_size=4 [14:41:20]MH_SAM_APDU [14:41:20]CAPDU: 80 13 01 00 [14:41:20]Write to MH i2c: E2 08 00 11 31 80 13 01 00 00 00 00 00 BF [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:20]Read from MH i2c: E2 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 0E 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 0E 00 11 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7F [14:41:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:41:20]wFMCommunicate OK [14:41:20]SAM_PROTO_GetShiftState done [14:41:20]FM_GetShiftState done [14:41:20]req_shift_opened done [14:41:20]requested_item shift.open_date is exist - process it [14:41:20]req_shift_open_date [14:41:20]req_shift_open_date done [14:41:20]produce_requested_data done [14:41:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18662,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:41:20]process_action_free close_receipt [14:41:20]json_value_free [14:41:20]json_value_free done [14:41:20]process_json_proto returns [14:41:20]Send response to host [14:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18662,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:41:20]free response buf [14:41:20]execute_script done [14:41:20]execute_script returns [14:41:20]free content buf [14:41:20]Sock 7.Close socket [14:41:20]Sock 7.Thread stoped [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:12]accept exits with 9 [14:42:12]New connection [14:42:12]New thread 3066666340 created [14:42:12]Thread 3066522980 joined [14:42:12]Waiting for new connection... [14:42:12] Sock 9.Parse request [14:42:12]Sock 9.Check first char [14:42:12]Sock 9.First char is OK [14:42:12]request: POST /json_proto HTTP/1.0 [14:42:12]Method: POST [14:42:12]URL: /json_proto [14:42:12]Method is POST - this is cgi request [14:42:12]url: /json_proto [14:42:12]query_string will be loaded in cgi processing [14:42:12]execute_cgi json_proto POST (null) [14:42:12]execute_cgi path=json_proto method=POST [14:42:12]POST find Content-Length [14:42:12]Host: 172.17.62.196:8080 [14:42:12]Content-Length: 613 [14:42:12]Content-Type: application/json [14:42:12] [14:42:12]POST finish read [14:42:12]Found Content-Length = 613 [14:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16587", "tax_sys" : 0, "items" : [ { "code": "4870001155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:12]execute_script... [14:42: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)16587", "tax_sys" : 0, "items" : [ { "code": "4870001155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:12]POST & json_proto [14:42:12]process_json_proto [14:42:12]json parsed OK: [14:42:12]protocol is kg_v1.0 [14:42:12]action value=close_receipt [14:42:12]process_action close_receipt [14:42:12]cmd_close_receipt [14:42:12]MH_GetDate [14:42:12]Write to MH i2c: F0 00 00 12 31 32 [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 09 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: F0 09 00 12 31 00 CB 2C F0 66 CE CC 0E 66 96 [14:42:12]GetLastDocTimeStamp 1727016083 [14:42:12]current date 1727016139 [14:42:12]FM_GetShiftState [14:42:12]SAM_PROTO_GetShiftState [14:42:12]wFMCommunicate request_size=4 [14:42:12]MH_SAM_APDU [14:42:12]CAPDU: 80 13 01 00 [14:42:12]Write to MH i2c: E2 08 00 13 31 80 13 01 00 00 00 00 00 C1 [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:12]Read from MH i2c: E2 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0E 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0E 00 13 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 81 [14:42:12]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:42:12]wFMCommunicate OK [14:42:12]SAM_PROTO_GetShiftState done [14:42:12]FM_GetShiftState done [14:42:12]opened in 1726963967 [14:42:12]opened+sec_in_day 1727050367 [14:42:12]quantity*price = 21000 [14:42:12]sum+1 = 21001 [14:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 59 22.09.2024 14:42 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18663 ФПД: 19159654823120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144219&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18663&fm=19159654823120&tin=02508201610067®Number=0000000000152968&sum=21000 0 [14:42:13]StoreToDocumentArchive [14:42:13]shift 180 fd 18663 [14:42:13]save to /storage/0180/doc_00018663 [14:42:13]save last doc name /storage/0180/doc_00018663 to /storage/kkm_last_doc_name [14:42:13]save OK [14:42:13]Clear old archive folders... [14:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=266 [14:42:13]tlvbuf is 019A5F40 [14:42:13]SAM_PROTO_ClearQueue [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 09 00 00 [14:42:13]Write to MH i2c: E2 08 00 20 31 80 09 00 00 00 00 00 00 C3 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 20 31 00 90 00 C5 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_ClearQueue done [14:42:13]KKMCreateOFDPacket [14:42:13]OFDProtocolAddRootSTLVToBuf [14:42:13]FM_MakeSignedData [14:42:13]FM_MakeSignedData [14:42:13]SAM_PROTO_SignData [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 01 02 [14:42:13]Write to MH i2c: E2 08 00 21 31 80 0D 01 02 00 00 00 00 CB [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 21 31 00 90 00 C6 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=255 [14:42:13]MH_SAM_APDU [14:42:13]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 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [14:42:13]Write to MH i2c: E2 02 01 22 31 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 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 EF [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 22 31 00 90 00 C7 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=25 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 E7 48 00 00 35 04 06 00 11 6C F4 6B 74 D0 [14:42:13]Write to MH i2c: E2 1C 00 23 31 80 0D 02 02 14 00 35 36 10 04 04 00 E7 48 00 00 35 04 06 00 11 6C F4 6B 74 D0 00 00 07 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 03 00 23 31 00 90 00 C8 [14:42:13]RAPDU: 90 00 [14:42:13]wFMCommunicate OK [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 0D 03 02 [14:42:13]Write to MH i2c: E2 08 00 24 31 80 0D 03 02 00 00 00 00 D0 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0B 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0B 00 24 31 00 53 D9 E0 C9 6F E3 41 30 90 00 69 [14:42:13]RAPDU: 53 D9 E0 C9 6F E3 41 30 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_SignData done [14:42:13]FM_MakeSignedData done [14:42:13]CreateOFDProtocolMessage [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 11 00 00 [14:42:13]Write to MH i2c: E2 08 00 25 31 80 11 00 00 00 00 00 00 D0 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 17 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 17 00 25 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 29 [14:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:42:13]wFMCommunicate OK [14:42:13]CreateOFDProtocolMessage done [14:42:13]OFDSenderStorePacket 18663 [14:42:13]StoreOFDPacket docnum=18663 [14:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 67 EE 16 01 2B 63 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 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E7 48 00 00 35 04 06 00 11 6C F4 6B 74 D0 53 D9 E0 C9 6F E3 41 30 [14:42:13]CheckFolder [14:42:13]dirname=/storage/ofd_packets [14:42:13]CheckFolder done [14:42:13]ProducePacketName [14:42:13]name=ofd_packets/00018663 [14:42:13]NVStorageSaveData ofd_packets/00018663 [14:42:13]File name is /storage/ofd_packets/00018663 [14:42:13]Write 316 bytes [14:42:13]NVStorageSaveData done [14:42:13]OFDSenderStorePacket done [14:42:13]KKMCreateOFDPacket done [14:42:13]NVStorageSaveData kkm_last_timestamp [14:42:13]File name is /storage/kkm_last_timestamp [14:42:13]Write 4 bytes [14:42:13]NVStorageSaveData done [14:42:13]ExternCall_PrintAddStr [14:42:13]wPrintStart [14:42:13]Write to MH i2c: 01 00 00 26 31 57 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 07 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: 01 07 00 26 31 00 00 00 00 00 FF 0F 6C [14:42:13]RasterBufferAndPrint [14:42:13]line Счет N : (3)16587 [14:42:13]line ИНН: 02508201610067 [14:42:13]line Контрольно-Кассовый Чек [14:42:13]line ПРОДАЖА [14:42:13]line Товар: 4870001155490 [14:42:13]line Напиток Pepsi 2л [14:42:13]line 1.000 * 210.00 [14:42:13]line = 210.00 [14:42:13]line НДС 12% НСП 1% [14:42:13]line > о реализуемом товаре [14:42:13]line ИТОГО: 210.00 [14:42:13]line НСП 1% : 1.86 [14:42:13]line НДС 12% : 22.30 [14:42:13]line Наличными: 210.00 [14:42:13]line Безнал.: 0.00 [14:42:13]line Место: АЗС № 176 "Партнер Нефть" [14:42:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:42:13]line СНО: Общий режим [14:42:13]line Чек 59 22.09.2024 14:42 [14:42:13]line Смена: 180 ФФД: 1.0 [14:42:13]line ЗНМ: 0300000010 [14:42:13]line РНМ: 0000000000152968 [14:42:13]line Версия ККМ: v1.0 [14:42:13]line ФМ: 0000000000959456 [14:42:13]line ФД: 18663 [14:42:13]line ФПД: 19159654823120 [14:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144219&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18663&fm=19159654823120&tin=02508201610067®Number=0000000000152968&sum=21000 [14:42:14]line 0 [14:42:14]OFD Sender: Processing packet 18663 [packets to send 7, broken 6] [14:42:14]ProducePacketName [14:42:14]name=ofd_packets/00018663 [14:42:14]OFD Sender: To server: pG, [14:42:14]CommunicateWithHost lk.salyk.kg:30040 [14:42:14]ConnectInit lk.salyk.kg [14:42:14]written 0, free lines is 4095 [14:42:14]Connected sock=10 [14:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 67 EE 16 01 2B 63 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 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 CB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E7 48 00 00 35 04 06 00 11 6C F4 6B 74 D0 53 D9 E0 C9 6F E3 41 30 [14:42:14]Write to MH i2c: 01 00 00 4E 31 7F [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 07 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: 01 07 00 4E 31 00 00 00 00 00 1F 0D B2 [14:42:14]RasterBufferAndPrint [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]line [14:42:14]written 0, free lines is 3365 [14:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 94 F5 47 00 82 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E7 48 00 00 F4 03 04 00 33 D6 EF 66 B6 04 01 00 00 66 44 B8 42 AA 26 3B 3C [14:42:14]CommunicateWithHost err = 0 [14:42:14]CheckOFDResponse [14:42:14]1017 (14) - 77093643461234 [14:42:14]1041 (16) - 0000000000959456 [14:42:14]1040 (4) - 18663 [14:42:14]1012 (4) - 22.09.2024 08:32 [14:42:14]1206 (1) - 0 [14:42:14]OFD Sender: Remove packet 18663 [14:42:14]ProducePacketName [14:42:14]name=ofd_packets/00018663 [14:42:14]NVStorageDeleteData [14:42:14]MH_Cut [14:42:14]Write to MH i2c: D1 01 00 55 31 01 58 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 01 00 [14:42:14]MH_I2C_Read... [14:42:14]Read from MH i2c: D1 01 00 55 31 00 57 [14:42:14]Write to MH i2c: 01 00 00 56 31 87 [14:42:14]Write i2c OK [14:42:14]MH_I2C_Read... [14:42:15]OFD Sender: No OFD packet to send [14:42:15]*** Cut start [14:42:15]*** Partial cut [14:42:15]*** CUTSNS_PIN = 1 [14:42:15]*** CUTSNS_PIN = 0 [14:42:15]*** Brake cut motor [14:42:15]Read from MH i2c: 01 [14:42:15]MH_I2C_Read... [14:42:15]*** Stop cut motor [14:42:15]*** Cut end [14:42:15]Read from MH i2c: 01 07 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: 01 07 00 56 31 00 00 00 00 00 FF 0F 9C [14:42:15]process_action close_receipt done [14:42:15]requested_data is exist [14:42:15]produce_requested_data [14:42:15]requested_item fm.sn is exist - process it [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 11 00 00 [14:42:15]Write to MH i2c: E2 08 00 57 31 80 11 00 00 00 00 00 00 02 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 17 00 57 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5B [14:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:42:15]wFMCommunicate OK [14:42:15]requested_item fd.num is exist - process it [14:42:15]SAM_PROTO_GetFieldsCounters [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 13 00 00 [14:42:15]Write to MH i2c: E2 08 00 58 31 80 13 00 00 00 00 00 00 05 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 62 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 62 00 58 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E7 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E7 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_GetFieldsCounters done [14:42:15]requested_item shift.num is exist - process it [14:42:15]requested_item shift.opened is exist - process it [14:42:15]req_shift_opened [14:42:15]FM_GetShiftState [14:42:15]SAM_PROTO_GetShiftState [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 13 01 00 [14:42:15]Write to MH i2c: E2 08 00 59 31 80 13 01 00 00 00 00 00 07 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0E 00 59 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C7 [14:42:16]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_GetShiftState done [14:42:16]FM_GetShiftState done [14:42:16]req_shift_opened done [14:42:16]requested_item shift.open_date is exist - process it [14:42:16]req_shift_open_date [14:42:16]req_shift_open_date done [14:42:16]produce_requested_data done [14:42:16]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18663,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:42:16]process_action_free close_receipt [14:42:16]json_value_free [14:42:16]json_value_free done [14:42:16]process_json_proto returns [14:42:16]Send response to host [14:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18663,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:42:16]free response buf [14:42:16]execute_script done [14:42:16]execute_script returns [14:42:16]free content buf [14:42:16]Sock 9.Close socket [14:42:16]Sock 9.Thread stoped [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]accept exits with 7 [14:43:00]New connection [14:43:00]New thread 3066522980 created [14:43:00]Thread 3066666340 joined [14:43:00]Waiting for new connection... [14:43:00] Sock 7.Parse request [14:43:00]Sock 7.Check first char [14:43:00]Sock 7.First char is OK [14:43:00]request: POST /json_proto HTTP/1.0 [14:43:00]Method: POST [14:43:00]URL: /json_proto [14:43:00]Method is POST - this is cgi request [14:43:00]url: /json_proto [14:43:00]query_string will be loaded in cgi processing [14:43:00]execute_cgi json_proto POST (null) [14:43:00]execute_cgi path=json_proto method=POST [14:43:00]POST find Content-Length [14:43:00]Host: 172.17.62.196:8080 [14:43:00]Content-Length: 657 [14:43:00]Content-Type: application/json [14:43:00] [14:43:00]POST finish read [14:43:00]Found Content-Length = 657 [14:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16588", "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" : 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" ] } } [14:43:00]execute_script... [14:43: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)16588", "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" : 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" ] } } [14:43:00]POST & json_proto [14:43:00]process_json_proto [14:43:00]json parsed OK: [14:43:00]protocol is kg_v1.0 [14:43:00]action value=close_receipt [14:43:00]process_action close_receipt [14:43:00]cmd_close_receipt [14:43:00]MH_GetDate [14:43:00]Write to MH i2c: F0 00 00 5A 31 7A [14:43:00]Write i2c OK [14:43:00]MH_I2C_Read... [14:43:00]Read from MH i2c: F0 [14:43:00]MH_I2C_Read... [14:43:00]Read from MH i2c: F0 09 00 [14:43:00]MH_I2C_Read... [14:43:00]Read from MH i2c: F0 09 00 5A 31 00 FB 2C F0 66 CE CC 0E 66 0E [14:43:00]GetLastDocTimeStamp 1727016139 [14:43:00]current date 1727016187 [14:43:00]FM_GetShiftState [14:43:00]SAM_PROTO_GetShiftState [14:43:00]wFMCommunicate request_size=4 [14:43:00]MH_SAM_APDU [14:43:00]CAPDU: 80 13 01 00 [14:43:00]Write to MH i2c: E2 08 00 5B 31 80 13 01 00 00 00 00 00 09 [14:43:00]OFD Sender: No OFD packet to send [14:43:00]Write i2c OK [14:43:00]MH_I2C_Read... [14:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:00]Read from MH i2c: E2 [14:43:00]MH_I2C_Read... [14:43:00]Read from MH i2c: E2 0E 00 [14:43:00]MH_I2C_Read... [14:43:00]Read from MH i2c: E2 0E 00 5B 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C9 [14:43:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:43:00]wFMCommunicate OK [14:43:00]SAM_PROTO_GetShiftState done [14:43:00]FM_GetShiftState done [14:43:00]opened in 1726963967 [14:43:00]opened+sec_in_day 1727050367 [14:43:00]quantity*price = 10500 [14:43:00]sum+1 = 10501 [14:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 60 22.09.2024 14:43 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18664 ФПД: 25568993513803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144307&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18664&fm=25568993513803&tin=02508201610067®Number=0000000000152968&sum=10500 0 [14:43:01]StoreToDocumentArchive [14:43:01]shift 180 fd 18664 [14:43:01]save to /storage/0180/doc_00018664 [14:43:01]save last doc name /storage/0180/doc_00018664 to /storage/kkm_last_doc_name [14:43:01]save OK [14:43:01]Clear old archive folders... [14:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:43:01]tlvbuf is 01A3D560 [14:43:01]SAM_PROTO_ClearQueue [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 09 00 00 [14:43:01]Write to MH i2c: E2 08 00 68 31 80 09 00 00 00 00 00 00 0B [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 68 31 00 90 00 0D [14:43:01]RAPDU: 90 00 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_ClearQueue done [14:43:01]KKMCreateOFDPacket [14:43:01]OFDProtocolAddRootSTLVToBuf [14:43:01]FM_MakeSignedData [14:43:01]FM_MakeSignedData [14:43:01]SAM_PROTO_SignData [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 0D 01 02 [14:43:01]Write to MH i2c: E2 08 00 69 31 80 0D 01 02 00 00 00 00 13 [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 69 31 00 90 00 0E [14:43:01]RAPDU: 90 00 [14:43:01]wFMCommunicate OK [14:43:01]wFMCommunicate request_size=255 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 0D 02 02 FA 03 00 16 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 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [14:43:01]Write to MH i2c: E2 02 01 6A 31 80 0D 02 02 FA 00 03 00 16 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 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 EF [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 6A 31 00 90 00 0F [14:43:01]RAPDU: 90 00 [14:43:01]wFMCommunicate OK [14:43:01]wFMCommunicate request_size=37 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E8 48 00 00 35 04 06 00 17 41 3E C6 91 4B [14:43:01]Write to MH i2c: E2 28 00 6B 31 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E8 48 00 00 35 04 06 00 17 41 3E C6 91 4B 00 00 DB [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 03 00 6B 31 00 90 00 10 [14:43:01]RAPDU: 90 00 [14:43:01]wFMCommunicate OK [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 0D 03 02 [14:43:01]Write to MH i2c: E2 08 00 6C 31 80 0D 03 02 00 00 00 00 18 [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0B 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 0B 00 6C 31 00 B8 20 BC C2 2F D4 FF 2E 90 00 9F [14:43:01]RAPDU: B8 20 BC C2 2F D4 FF 2E 90 00 [14:43:01]wFMCommunicate OK [14:43:01]SAM_PROTO_SignData done [14:43:01]FM_MakeSignedData done [14:43:01]CreateOFDProtocolMessage [14:43:01]wFMCommunicate request_size=4 [14:43:01]MH_SAM_APDU [14:43:01]CAPDU: 80 11 00 00 [14:43:01]Write to MH i2c: E2 08 00 6D 31 80 11 00 00 00 00 00 00 18 [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:01]Read from MH i2c: E2 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: E2 17 00 6D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 71 [14:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:43:01]wFMCommunicate OK [14:43:01]CreateOFDProtocolMessage done [14:43:01]OFDSenderStorePacket 18664 [14:43:01]StoreOFDPacket docnum=18664 [14:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 25 A7 22 01 25 B2 5A 03 01 00 03 00 16 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 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E8 48 00 00 35 04 06 00 17 41 3E C6 91 4B B8 20 BC C2 2F D4 FF 2E [14:43:01]CheckFolder [14:43:01]dirname=/storage/ofd_packets [14:43:01]CheckFolder done [14:43:01]ProducePacketName [14:43:01]name=ofd_packets/00018664 [14:43:01]NVStorageSaveData ofd_packets/00018664 [14:43:01]File name is /storage/ofd_packets/00018664 [14:43:01]Write 328 bytes [14:43:01]NVStorageSaveData done [14:43:01]OFDSenderStorePacket done [14:43:01]KKMCreateOFDPacket done [14:43:01]NVStorageSaveData kkm_last_timestamp [14:43:01]File name is /storage/kkm_last_timestamp [14:43:01]Write 4 bytes [14:43:01]NVStorageSaveData done [14:43:01]ExternCall_PrintAddStr [14:43:01]wPrintStart [14:43:01]Write to MH i2c: 01 00 00 6E 31 9F [14:43:01]Write i2c OK [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: 01 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: 01 07 00 [14:43:01]MH_I2C_Read... [14:43:01]Read from MH i2c: 01 07 00 6E 31 00 00 00 00 00 FF 0F B4 [14:43:01]RasterBufferAndPrint [14:43:01]line Счет N : (3)16588 [14:43:01]line ИНН: 02508201610067 [14:43:01]line Контрольно-Кассовый Чек [14:43:01]line ПРОДАЖА [14:43:01]line Товар: 5449000054227 [14:43:01]line Напиток Кока-Кола 1л [14:43:01]line 1.000 * 105.00 [14:43:01]line = 105.00 [14:43:01]line НДС 12% НСП 1% [14:43:01]line > о реализуемом товаре [14:43:01]line ИТОГО: 105.00 [14:43:01]line НСП 1% : 0.93 [14:43:01]line НДС 12% : 11.15 [14:43:01]line Наличными: 105.00 [14:43:01]line Безнал.: 0.00 [14:43:01]line Место: АЗС № 176 "Партнер Нефть" [14:43:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:43:01]line СНО: Общий режим [14:43:01]line Чек 60 22.09.2024 14:43 [14:43:01]line Смена: 180 ФФД: 1.0 [14:43:01]line ЗНМ: 0300000010 [14:43:01]line РНМ: 0000000000152968 [14:43:01]line Версия ККМ: v1.0 [14:43:01]line ФМ: 0000000000959456 [14:43:01]line ФД: 18664 [14:43:01]line ФПД: 25568993513803 [14:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144307&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18664&fm=25568993513803&tin=02508201610067®Number=0000000000152968&sum=10500 [14:43:02]line 0 [14:43:02]OFD Sender: Processing packet 18664 [packets to send 7, broken 6] [14:43:02]ProducePacketName [14:43:02]name=ofd_packets/00018664 [14:43:02]OFD Sender: To server: pG, [14:43:02]CommunicateWithHost lk.salyk.kg:30040 [14:43:02]ConnectInit lk.salyk.kg [14:43:02]written 0, free lines is 4095 [14:43:02]Connected sock=10 [14:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 25 A7 22 01 25 B2 5A 03 01 00 03 00 16 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 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 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 FB 2C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E8 48 00 00 35 04 06 00 17 41 3E C6 91 4B B8 20 BC C2 2F D4 FF 2E [14:43:02]Write to MH i2c: 01 00 00 96 31 C7 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: 01 07 00 96 31 00 00 00 00 00 20 0D FB [14:43:02]RasterBufferAndPrint [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]line [14:43:02]written 0, free lines is 3369 [14:43:02]MH_Cut [14:43:02]Write to MH i2c: D1 01 00 9D 31 01 A0 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: D1 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: D1 01 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: D1 01 00 9D 31 00 9F [14:43:02]Write to MH i2c: 01 00 00 9E 31 CF [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 DE 0E 47 00 10 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E8 48 00 00 F4 03 04 00 63 D6 EF 66 B6 04 01 00 00 65 DF AD A4 19 39 3A 94 [14:43:02]CommunicateWithHost err = 0 [14:43:02]CheckOFDResponse [14:43:02]1017 (14) - 77093643461234 [14:43:02]1041 (16) - 0000000000959456 [14:43:02]1040 (4) - 18664 [14:43:02]1012 (4) - 22.09.2024 08:33 [14:43:02]1206 (1) - 0 [14:43:02]OFD Sender: Remove packet 18664 [14:43:02]ProducePacketName [14:43:02]name=ofd_packets/00018664 [14:43:02]NVStorageDeleteData [14:43:03]OFD Sender: No OFD packet to send [14:43:03]*** Cut start [14:43:03]*** Partial cut [14:43:03]*** CUTSNS_PIN = 1 [14:43:03]*** CUTSNS_PIN = 0 [14:43:03]*** Brake cut motor [14:43:03]Read from MH i2c: 01 [14:43:03]MH_I2C_Read... [14:43:03]*** Stop cut motor [14:43:03]*** Cut end [14:43:03]Read from MH i2c: 01 07 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: 01 07 00 9E 31 00 00 00 00 00 FF 0F E4 [14:43:03]process_action close_receipt done [14:43:03]requested_data is exist [14:43:03]produce_requested_data [14:43:03]requested_item fm.sn is exist - process it [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 11 00 00 [14:43:03]Write to MH i2c: E2 08 00 9F 31 80 11 00 00 00 00 00 00 4A [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 17 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 17 00 9F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A3 [14:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:43:03]wFMCommunicate OK [14:43:03]requested_item fd.num is exist - process it [14:43:03]SAM_PROTO_GetFieldsCounters [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 13 00 00 [14:43:03]Write to MH i2c: E2 08 00 A0 31 80 13 00 00 00 00 00 00 4D [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 62 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 62 00 A0 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E8 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E8 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_GetFieldsCounters done [14:43:03]requested_item shift.num is exist - process it [14:43:03]requested_item shift.opened is exist - process it [14:43:03]req_shift_opened [14:43:03]FM_GetShiftState [14:43:03]SAM_PROTO_GetShiftState [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 13 01 00 [14:43:03]Write to MH i2c: E2 08 00 A1 31 80 13 01 00 00 00 00 00 4F [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:04]Read from MH i2c: E2 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 0E 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: E2 0E 00 A1 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0F [14:43:04]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:43:04]wFMCommunicate OK [14:43:04]SAM_PROTO_GetShiftState done [14:43:04]FM_GetShiftState done [14:43:04]req_shift_opened done [14:43:04]requested_item shift.open_date is exist - process it [14:43:04]req_shift_open_date [14:43:04]req_shift_open_date done [14:43:04]produce_requested_data done [14:43:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18664,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:43:04]process_action_free close_receipt [14:43:04]json_value_free [14:43:04]json_value_free done [14:43:04]process_json_proto returns [14:43:04]Send response to host [14:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18664,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:43:04]free response buf [14:43:04]execute_script done [14:43:04]execute_script returns [14:43:04]free content buf [14:43:04]Sock 7.Close socket [14:43:04]Sock 7.Thread stoped [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:05]accept exits with 9 [14:45:05]New connection [14:45:05]New thread 3066666340 created [14:45:05]Thread 3066522980 joined [14:45:05]Waiting for new connection... [14:45:05] Sock 9.Parse request [14:45:05]Sock 9.Check first char [14:45:05]Sock 9.First char is OK [14:45:05]request: POST /json_proto HTTP/1.0 [14:45:05]Method: POST [14:45:05]URL: /json_proto [14:45:05]Method is POST - this is cgi request [14:45:05]url: /json_proto [14:45:05]query_string will be loaded in cgi processing [14:45:05]execute_cgi json_proto POST (null) [14:45:05]execute_cgi path=json_proto method=POST [14:45:05]POST find Content-Length [14:45:05]Host: 172.17.62.196:8080 [14:45:05]Content-Length: 620 [14:45:05]Content-Type: application/json [14:45:05] [14:45:05]POST finish read [14:45:05]Found Content-Length = 620 [14:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16589", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:05]execute_script... [14:45: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)16589", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:05]POST & json_proto [14:45:05]process_json_proto [14:45:05]json parsed OK: [14:45:05]protocol is kg_v1.0 [14:45:05]action value=close_receipt [14:45:05]process_action close_receipt [14:45:05]cmd_close_receipt [14:45:05]MH_GetDate [14:45:05]Write to MH i2c: F0 00 00 A2 31 C2 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 A2 31 00 78 2D F0 66 CE CC 0E 66 D4 [14:45:05]GetLastDocTimeStamp 1727016187 [14:45:05]current date 1727016312 [14:45:05]FM_GetShiftState [14:45:05]SAM_PROTO_GetShiftState [14:45:05]wFMCommunicate request_size=4 [14:45:05]MH_SAM_APDU [14:45:05]CAPDU: 80 13 01 00 [14:45:05]Write to MH i2c: E2 08 00 A3 31 80 13 01 00 00 00 00 00 51 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:05]Read from MH i2c: E2 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 A3 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 11 [14:45:05]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:45:05]wFMCommunicate OK [14:45:05]SAM_PROTO_GetShiftState done [14:45:05]FM_GetShiftState done [14:45:05]opened in 1726963967 [14:45:05]opened+sec_in_day 1727050367 [14:45:05]quantity*price = 28800 [14:45:05]sum+1 = 28801 [14:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 61 22.09.2024 14:45 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18665 ФПД: 89447860589734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144512&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18665&fm=89447860589734&tin=02508201610067®Number=0000000000152968&sum=28800 0 [14:45:06]StoreToDocumentArchive [14:45:06]shift 180 fd 18665 [14:45:06]save to /storage/0180/doc_00018665 [14:45:06]save last doc name /storage/0180/doc_00018665 to /storage/kkm_last_doc_name [14:45:06]save OK [14:45:06]Clear old archive folders... [14:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:45:06]tlvbuf is 01A204B0 [14:45:06]SAM_PROTO_ClearQueue [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 09 00 00 [14:45:06]Write to MH i2c: E2 08 00 B0 31 80 09 00 00 00 00 00 00 53 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]SAM_PROTO_ClearQueue done [14:45:06]KKMCreateOFDPacket [14:45:06]OFDProtocolAddRootSTLVToBuf [14:45:06]FM_MakeSignedData [14:45:06]FM_MakeSignedData [14:45:06]SAM_PROTO_SignData [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 01 02 [14:45:06]Write to MH i2c: E2 08 00 B1 31 80 0D 01 02 00 00 00 00 5B [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=255 [14:45:06]MH_SAM_APDU [14:45:06]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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 78 2D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [14:45:06]Write to MH i2c: E2 02 01 B2 31 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 78 2D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 8A [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 B2 31 00 90 00 57 [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=32 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 E9 48 00 00 35 04 06 00 51 5A 33 F4 D4 A6 [14:45:06]Write to MH i2c: E2 23 00 B3 31 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 E9 48 00 00 35 04 06 00 51 5A 33 F4 D4 A6 00 00 3E [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 B3 31 00 90 00 58 [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 03 02 [14:45:06]Write to MH i2c: E2 08 00 B4 31 80 0D 03 02 00 00 00 00 60 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0B 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0B 00 B4 31 00 BA A8 E7 02 4A B2 51 59 90 00 52 [14:45:06]RAPDU: BA A8 E7 02 4A B2 51 59 90 00 [14:45:06]wFMCommunicate OK [14:45:06]SAM_PROTO_SignData done [14:45:06]FM_MakeSignedData done [14:45:06]CreateOFDProtocolMessage [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 11 00 00 [14:45:06]Write to MH i2c: E2 08 00 B5 31 80 11 00 00 00 00 00 00 60 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 17 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 17 00 B5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B9 [14:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:45:06]wFMCommunicate OK [14:45:06]CreateOFDProtocolMessage done [14:45:06]OFDSenderStorePacket 18665 [14:45:06]StoreOFDPacket docnum=18665 [14:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 59 AC 1D 01 B2 D3 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 78 2D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E9 48 00 00 35 04 06 00 51 5A 33 F4 D4 A6 BA A8 E7 02 4A B2 51 59 [14:45:06]CheckFolder [14:45:06]dirname=/storage/ofd_packets [14:45:06]CheckFolder done [14:45:06]ProducePacketName [14:45:06]name=ofd_packets/00018665 [14:45:06]NVStorageSaveData ofd_packets/00018665 [14:45:06]File name is /storage/ofd_packets/00018665 [14:45:06]Write 323 bytes [14:45:06]NVStorageSaveData done [14:45:06]OFDSenderStorePacket done [14:45:06]KKMCreateOFDPacket done [14:45:06]NVStorageSaveData kkm_last_timestamp [14:45:06]File name is /storage/kkm_last_timestamp [14:45:06]Write 4 bytes [14:45:06]NVStorageSaveData done [14:45:06]ExternCall_PrintAddStr [14:45:06]wPrintStart [14:45:06]Write to MH i2c: 01 00 00 B6 31 E7 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 07 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 07 00 B6 31 00 00 00 00 00 FF 0F FC [14:45:06]RasterBufferAndPrint [14:45:06]line Счет N : (3)16589 [14:45:06]line ИНН: 02508201610067 [14:45:06]line Контрольно-Кассовый Чек [14:45:06]line ПРОДАЖА [14:45:06]line Товар: 48743570 [14:45:06]line Сигареты Winston XStyle Blue [14:45:06]line 2.000 * 144.00 [14:45:06]line = 288.00 [14:45:06]line НДС 12% НСП 1% [14:45:06]line > о реализуемом товаре [14:45:06]line ИТОГО: 288.00 [14:45:06]line НСП 1% : 2.55 [14:45:06]line НДС 12% : 30.58 [14:45:06]line Наличными: 288.00 [14:45:06]line Безнал.: 0.00 [14:45:06]line Место: АЗС № 176 "Партнер Нефть" [14:45:06]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:45:06]line СНО: Общий режим [14:45:06]line Чек 61 22.09.2024 14:45 [14:45:06]line Смена: 180 ФФД: 1.0 [14:45:06]line ЗНМ: 0300000010 [14:45:06]line РНМ: 0000000000152968 [14:45:06]line Версия ККМ: v1.0 [14:45:06]line ФМ: 0000000000959456 [14:45:06]line ФД: 18665 [14:45:06]line ФПД: 89447860589734 [14:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144512&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18665&fm=89447860589734&tin=02508201610067®Number=0000000000152968&sum=28800 [14:45:06]line 0 [14:45:06]written 0, free lines is 4095 [14:45:06]OFD Sender: Processing packet 18665 [packets to send 7, broken 6] [14:45:06]ProducePacketName [14:45:06]name=ofd_packets/00018665 [14:45:06]OFD Sender: To server: pG, [14:45:06]CommunicateWithHost lk.salyk.kg:30040 [14:45:06]ConnectInit lk.salyk.kg [14:45:07]Connected sock=10 [14:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 59 AC 1D 01 B2 D3 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 78 2D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E9 48 00 00 35 04 06 00 51 5A 33 F4 D4 A6 BA A8 E7 02 4A B2 51 59 [14:45:07]Write to MH i2c: 01 00 00 DE 31 0F [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 DE 31 00 00 00 00 00 15 0D 38 [14:45:07]RasterBufferAndPrint [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]written 0, free lines is 3356 [14:45:07]MH_Cut [14:45:07]Write to MH i2c: D1 01 00 E5 31 01 E8 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 01 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 01 00 E5 31 00 E7 [14:45:07]Write to MH i2c: 01 00 00 E6 31 17 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 36 CE 47 00 2A 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 E9 48 00 00 F4 03 04 00 DF D6 EF 66 B6 04 01 00 00 E4 13 BD 07 91 58 53 A6 [14:45:07]CommunicateWithHost err = 0 [14:45:07]CheckOFDResponse [14:45:07]1017 (14) - 77093643461234 [14:45:07]1041 (16) - 0000000000959456 [14:45:07]1040 (4) - 18665 [14:45:07]1012 (4) - 22.09.2024 08:35 [14:45:07]1206 (1) - 0 [14:45:07]OFD Sender: Remove packet 18665 [14:45:07]ProducePacketName [14:45:07]name=ofd_packets/00018665 [14:45:07]NVStorageDeleteData [14:45:07]OFD Sender: No OFD packet to send [14:45:07]*** Cut start [14:45:07]*** Partial cut [14:45:07]*** CUTSNS_PIN = 1 [14:45:08]*** CUTSNS_PIN = 0 [14:45:08]*** Brake cut motor [14:45:08]Read from MH i2c: 01 [14:45:08]MH_I2C_Read... [14:45:08]*** Stop cut motor [14:45:08]*** Cut end [14:45:08]Read from MH i2c: 01 07 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 E6 31 00 00 00 00 00 FF 0F 2C [14:45:08]process_action close_receipt done [14:45:08]requested_data is exist [14:45:08]produce_requested_data [14:45:08]requested_item fm.sn is exist - process it [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 11 00 00 [14:45:08]Write to MH i2c: E2 08 00 E7 31 80 11 00 00 00 00 00 00 92 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 E7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EB [14:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:45:08]wFMCommunicate OK [14:45:08]requested_item fd.num is exist - process it [14:45:08]SAM_PROTO_GetFieldsCounters [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 13 00 00 [14:45:08]Write to MH i2c: E2 08 00 E8 31 80 13 00 00 00 00 00 00 95 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 62 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 62 00 E8 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E9 48 00 00 0E 04 04 00 B4 00 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 5E [14:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 E9 48 00 00 0E 04 04 00 B4 00 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 [14:45:08]wFMCommunicate OK [14:45:08]SAM_PROTO_GetFieldsCounters done [14:45:08]requested_item shift.num is exist - process it [14:45:08]requested_item shift.opened is exist - process it [14:45:08]req_shift_opened [14:45:08]FM_GetShiftState [14:45:08]SAM_PROTO_GetShiftState [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 13 01 00 [14:45:08]Write to MH i2c: E2 08 00 E9 31 80 13 01 00 00 00 00 00 97 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 0E 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 0E 00 E9 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 57 [14:45:08]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:45:08]wFMCommunicate OK [14:45:08]SAM_PROTO_GetShiftState done [14:45:08]FM_GetShiftState done [14:45:08]req_shift_opened done [14:45:08]requested_item shift.open_date is exist - process it [14:45:08]req_shift_open_date [14:45:08]req_shift_open_date done [14:45:08]produce_requested_data done [14:45:08]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18665,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:45:08]process_action_free close_receipt [14:45:08]json_value_free [14:45:08]json_value_free done [14:45:08]process_json_proto returns [14:45:08]Send response to host [14:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18665,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:45:08]free response buf [14:45:08]execute_script done [14:45:08]execute_script returns [14:45:08]free content buf [14:45:08]Sock 9.Close socket [14:45:08]Sock 9.Thread stoped [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:51]accept exits with 7 [14:52:51]New connection [14:52:51]New thread 3066522980 created [14:52:51]Thread 3066666340 joined [14:52:51]Waiting for new connection... [14:52:51] Sock 7.Parse request [14:52:51]Sock 7.Check first char [14:52:51]Sock 7.First char is OK [14:52:51]request: POST /json_proto HTTP/1.0 [14:52:51]Method: POST [14:52:51]URL: /json_proto [14:52:51]Method is POST - this is cgi request [14:52:51]url: /json_proto [14:52:51]query_string will be loaded in cgi processing [14:52:51]execute_cgi json_proto POST (null) [14:52:51]execute_cgi path=json_proto method=POST [14:52:51]POST find Content-Length [14:52:51]Host: 172.17.62.196:8080 [14:52:51]Content-Length: 644 [14:52:51]Content-Type: application/json [14:52:51] [14:52:51]POST finish read [14:52:51]Found Content-Length = 644 [14:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16590", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:51]execute_script... [14:52: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)16590", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:51]POST & json_proto [14:52:51]process_json_proto [14:52:51]json parsed OK: [14:52:51]protocol is kg_v1.0 [14:52:51]action value=close_receipt [14:52:51]process_action close_receipt [14:52:51]cmd_close_receipt [14:52:51]MH_GetDate [14:52:51]Write to MH i2c: F0 00 00 EA 31 0A [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: F0 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: F0 09 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: F0 09 00 EA 31 00 4A 2F F0 66 CE CC 0E 66 F0 [14:52:51]GetLastDocTimeStamp 1727016312 [14:52:51]current date 1727016778 [14:52:51]FM_GetShiftState [14:52:51]SAM_PROTO_GetShiftState [14:52:51]wFMCommunicate request_size=4 [14:52:51]MH_SAM_APDU [14:52:51]CAPDU: 80 13 01 00 [14:52:51]Write to MH i2c: E2 08 00 EB 31 80 13 01 00 00 00 00 00 99 [14:52:51]Write i2c OK [14:52:51]MH_I2C_Read... [14:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:51]Read from MH i2c: E2 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: E2 0E 00 [14:52:51]MH_I2C_Read... [14:52:51]Read from MH i2c: E2 0E 00 EB 31 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 59 [14:52:51]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:52:51]wFMCommunicate OK [14:52:51]SAM_PROTO_GetShiftState done [14:52:51]FM_GetShiftState done [14:52:51]opened in 1726963967 [14:52:51]opened+sec_in_day 1727050367 [14:52:51]quantity*price = 6000 [14:52:51]sum+1 = 6001 [14:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 62 22.09.2024 14:52 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18666 ФПД: 14486996528851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145258&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18666&fm=14486996528851&tin=02508201610067®Number=0000000000152968&sum=6000 0 [14:52:52]StoreToDocumentArchive [14:52:52]shift 180 fd 18666 [14:52:52]save to /storage/0180/doc_00018666 [14:52:52]save last doc name /storage/0180/doc_00018666 to /storage/kkm_last_doc_name [14:52:52]save OK [14:52:52]Clear old archive folders... [14:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:52:52]tlvbuf is 01969690 [14:52:52]SAM_PROTO_ClearQueue [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 09 00 00 [14:52:52]Write to MH i2c: E2 08 00 F8 31 80 09 00 00 00 00 00 00 9B [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 F8 31 00 90 00 9D [14:52:52]RAPDU: 90 00 [14:52:52]wFMCommunicate OK [14:52:52]SAM_PROTO_ClearQueue done [14:52:52]KKMCreateOFDPacket [14:52:52]OFDProtocolAddRootSTLVToBuf [14:52:52]FM_MakeSignedData [14:52:52]FM_MakeSignedData [14:52:52]SAM_PROTO_SignData [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 0D 01 02 [14:52:52]Write to MH i2c: E2 08 00 F9 31 80 0D 01 02 00 00 00 00 A3 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 F9 31 00 90 00 9E [14:52:52]RAPDU: 90 00 [14:52:52]wFMCommunicate OK [14:52:52]wFMCommunicate request_size=255 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4A 2F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [14:52:52]Write to MH i2c: E2 02 01 FA 31 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4A 2F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 A5 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 FA 31 00 90 00 9F [14:52:52]RAPDU: 90 00 [14:52:52]wFMCommunicate OK [14:52:52]wFMCommunicate request_size=35 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EA 48 00 00 35 04 06 00 0D 2D 04 48 2E D3 [14:52:52]Write to MH i2c: E2 26 00 FB 31 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EA 48 00 00 35 04 06 00 0D 2D 04 48 2E D3 00 00 58 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 03 00 FB 31 00 90 00 A0 [14:52:52]RAPDU: 90 00 [14:52:52]wFMCommunicate OK [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 0D 03 02 [14:52:52]Write to MH i2c: E2 08 00 FC 31 80 0D 03 02 00 00 00 00 A8 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 0B 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 0B 00 FC 31 00 50 C6 B2 03 A0 E2 0C 72 90 00 74 [14:52:52]RAPDU: 50 C6 B2 03 A0 E2 0C 72 90 00 [14:52:52]wFMCommunicate OK [14:52:52]SAM_PROTO_SignData done [14:52:52]FM_MakeSignedData done [14:52:52]CreateOFDProtocolMessage [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 11 00 00 [14:52:52]Write to MH i2c: E2 08 00 FD 31 80 11 00 00 00 00 00 00 A8 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 17 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 17 00 FD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 01 [14:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:52:52]wFMCommunicate OK [14:52:52]CreateOFDProtocolMessage done [14:52:52]OFDSenderStorePacket 18666 [14:52:52]StoreOFDPacket docnum=18666 [14:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 1F 84 20 01 58 17 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4A 2F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EA 48 00 00 35 04 06 00 0D 2D 04 48 2E D3 50 C6 B2 03 A0 E2 0C 72 [14:52:52]CheckFolder [14:52:52]dirname=/storage/ofd_packets [14:52:52]CheckFolder done [14:52:52]ProducePacketName [14:52:52]name=ofd_packets/00018666 [14:52:52]NVStorageSaveData ofd_packets/00018666 [14:52:52]File name is /storage/ofd_packets/00018666 [14:52:52]Write 326 bytes [14:52:52]NVStorageSaveData done [14:52:52]OFDSenderStorePacket done [14:52:52]KKMCreateOFDPacket done [14:52:52]NVStorageSaveData kkm_last_timestamp [14:52:52]File name is /storage/kkm_last_timestamp [14:52:52]Write 4 bytes [14:52:52]NVStorageSaveData done [14:52:52]ExternCall_PrintAddStr [14:52:52]wPrintStart [14:52:52]Write to MH i2c: 01 00 00 FE 31 2F [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: 01 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: 01 07 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 FF 0F 44 [14:52:52]RasterBufferAndPrint [14:52:52]line Счет N : (3)16590 [14:52:52]line ИНН: 02508201610067 [14:52:52]line Контрольно-Кассовый Чек [14:52:52]line ПРОДАЖА [14:52:52]line Товар: 4700000310043 [14:52:52]line Вода Жалалабат 27 1л [14:52:52]line 1.000 * 60.00 [14:52:52]line = 60.00 [14:52:52]line НДС 12% НСП 1% [14:52:52]line > о реализуемом товаре [14:52:52]line ИТОГО: 60.00 [14:52:52]line НСП 1% : 0.53 [14:52:52]line НДС 12% : 6.37 [14:52:52]line Наличными: 60.00 [14:52:52]line Безнал.: 0.00 [14:52:52]line Место: АЗС № 176 "Партнер Нефть" [14:52:52]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:52:52]line СНО: Общий режим [14:52:52]line Чек 62 22.09.2024 14:52 [14:52:52]line Смена: 180 ФФД: 1.0 [14:52:52]line ЗНМ: 0300000010 [14:52:52]line РНМ: 0000000000152968 [14:52:52]line Версия ККМ: v1.0 [14:52:52]line ФМ: 0000000000959456 [14:52:52]line ФД: 18666 [14:52:52]line ФПД: 14486996528851 [14:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145258&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18666&fm=14486996528851&tin=02508201610067®Number=0000000000152968&sum=6000 [14:52:53]line 0 [14:52:53]OFD Sender: Processing packet 18666 [packets to send 7, broken 6] [14:52:53]ProducePacketName [14:52:53]name=ofd_packets/00018666 [14:52:53]OFD Sender: To server: pG, [14:52:53]CommunicateWithHost lk.salyk.kg:30040 [14:52:53]ConnectInit lk.salyk.kg [14:52:53]written 0, free lines is 4095 [14:52:53]Connected sock=10 [14:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 1F 84 20 01 58 17 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 4A 2F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EA 48 00 00 35 04 06 00 0D 2D 04 48 2E D3 50 C6 B2 03 A0 E2 0C 72 [14:52:53]Write to MH i2c: 01 00 00 26 32 58 [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 07 00 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: 01 07 00 26 32 00 00 00 00 00 28 0D 94 [14:52:53]RasterBufferAndPrint [14:52:53]line [14:52:53]line [14:52:53]line [14:52:53]line [14:52:53]line [14:52:53]written 0, free lines is 3378 [14:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BB 0E 47 00 24 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EA 48 00 00 F4 03 04 00 B2 D8 EF 66 B6 04 01 00 00 BB 34 4E 12 B2 D4 36 69 [14:52:53]CommunicateWithHost err = 0 [14:52:53]CheckOFDResponse [14:52:53]1017 (14) - 77093643461234 [14:52:53]1041 (16) - 0000000000959456 [14:52:53]1040 (4) - 18666 [14:52:53]1012 (4) - 22.09.2024 08:43 [14:52:53]1206 (1) - 0 [14:52:53]OFD Sender: Remove packet 18666 [14:52:53]ProducePacketName [14:52:53]name=ofd_packets/00018666 [14:52:53]NVStorageDeleteData [14:52:53]MH_Cut [14:52:53]Write to MH i2c: D1 01 00 2D 32 01 31 [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: D1 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: D1 01 00 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: D1 01 00 2D 32 00 30 [14:52:53]Write to MH i2c: 01 00 00 2E 32 60 [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:54]OFD Sender: No OFD packet to send [14:52:54]*** Cut start [14:52:54]*** Partial cut [14:52:54]*** CUTSNS_PIN = 1 [14:52:54]*** CUTSNS_PIN = 0 [14:52:54]*** Brake cut motor [14:52:54]Read from MH i2c: 01 [14:52:54]MH_I2C_Read... [14:52:54]*** Stop cut motor [14:52:54]*** Cut end [14:52:54]Read from MH i2c: 01 07 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: 01 07 00 2E 32 00 00 00 00 00 FF 0F 75 [14:52:54]process_action close_receipt done [14:52:54]requested_data is exist [14:52:54]produce_requested_data [14:52:54]requested_item fm.sn is exist - process it [14:52:54]wFMCommunicate request_size=4 [14:52:54]MH_SAM_APDU [14:52:54]CAPDU: 80 11 00 00 [14:52:54]Write to MH i2c: E2 08 00 2F 32 80 11 00 00 00 00 00 00 DB [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:54]Read from MH i2c: E2 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 17 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 17 00 2F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 34 [14:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:52:54]wFMCommunicate OK [14:52:54]requested_item fd.num is exist - process it [14:52:54]SAM_PROTO_GetFieldsCounters [14:52:54]wFMCommunicate request_size=4 [14:52:54]MH_SAM_APDU [14:52:54]CAPDU: 80 13 00 00 [14:52:54]Write to MH i2c: E2 08 00 30 32 80 13 00 00 00 00 00 00 DE [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:54]Read from MH i2c: E2 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 62 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 62 00 30 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EA 48 00 00 0E 04 04 00 B4 00 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 AB [14:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EA 48 00 00 0E 04 04 00 B4 00 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 [14:52:54]wFMCommunicate OK [14:52:54]SAM_PROTO_GetFieldsCounters done [14:52:54]requested_item shift.num is exist - process it [14:52:54]requested_item shift.opened is exist - process it [14:52:54]req_shift_opened [14:52:54]FM_GetShiftState [14:52:54]SAM_PROTO_GetShiftState [14:52:54]wFMCommunicate request_size=4 [14:52:54]MH_SAM_APDU [14:52:54]CAPDU: 80 13 01 00 [14:52:54]Write to MH i2c: E2 08 00 31 32 80 13 01 00 00 00 00 00 E0 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0E 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0E 00 31 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 A0 [14:52:55]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:52:55]wFMCommunicate OK [14:52:55]SAM_PROTO_GetShiftState done [14:52:55]FM_GetShiftState done [14:52:55]req_shift_opened done [14:52:55]requested_item shift.open_date is exist - process it [14:52:55]req_shift_open_date [14:52:55]req_shift_open_date done [14:52:55]produce_requested_data done [14:52:55]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18666,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:52:55]process_action_free close_receipt [14:52:55]json_value_free [14:52:55]json_value_free done [14:52:55]process_json_proto returns [14:52:55]Send response to host [14:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18666,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:52:55]free response buf [14:52:55]execute_script done [14:52:55]execute_script returns [14:52:55]free content buf [14:52:55]Sock 7.Close socket [14:52:55]Sock 7.Thread stoped [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:21]accept exits with 9 [14:58:21]New connection [14:58:21]New thread 3066666340 created [14:58:21]Thread 3066522980 joined [14:58:21]Waiting for new connection... [14:58:21] Sock 9.Parse request [14:58:21]Sock 9.Check first char [14:58:21]Sock 9.First char is OK [14:58:21]request: POST /json_proto HTTP/1.0 [14:58:21]Method: POST [14:58:21]URL: /json_proto [14:58:21]Method is POST - this is cgi request [14:58:21]url: /json_proto [14:58:21]query_string will be loaded in cgi processing [14:58:21]execute_cgi json_proto POST (null) [14:58:21]execute_cgi path=json_proto method=POST [14:58:21]POST find Content-Length [14:58:21]Host: 172.17.62.196:8080 [14:58:21]Content-Length: 668 [14:58:21]Content-Type: application/json [14:58:21] [14:58:21]POST finish read [14:58:21]Found Content-Length = 668 [14:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16591", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 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" ] } } [14:58:21]execute_script... [14:58:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16591", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 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" ] } } [14:58:21]POST & json_proto [14:58:21]process_json_proto [14:58:21]json parsed OK: [14:58:21]protocol is kg_v1.0 [14:58:21]action value=close_receipt [14:58:21]process_action close_receipt [14:58:21]cmd_close_receipt [14:58:21]MH_GetDate [14:58:21]Write to MH i2c: F0 00 00 32 32 53 [14:58:21]Write i2c OK [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: F0 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: F0 09 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: F0 09 00 32 32 00 94 30 F0 66 CE CC 0E 66 84 [14:58:21]GetLastDocTimeStamp 1727016778 [14:58:21]current date 1727017108 [14:58:21]FM_GetShiftState [14:58:21]SAM_PROTO_GetShiftState [14:58:21]wFMCommunicate request_size=4 [14:58:21]MH_SAM_APDU [14:58:21]CAPDU: 80 13 01 00 [14:58:21]Write to MH i2c: E2 08 00 33 32 80 13 01 00 00 00 00 00 E2 [14:58:21]Write i2c OK [14:58:21]MH_I2C_Read... [14:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:21]Read from MH i2c: E2 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 0E 00 [14:58:21]MH_I2C_Read... [14:58:21]Read from MH i2c: E2 0E 00 33 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 A2 [14:58:21]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:58:21]wFMCommunicate OK [14:58:21]SAM_PROTO_GetShiftState done [14:58:21]FM_GetShiftState done [14:58:21]opened in 1726963967 [14:58:21]opened+sec_in_day 1727050367 [14:58:21]quantity*price = 10500 [14:58:21]sum+1 = 10501 [14:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 63 22.09.2024 14:58 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18667 ФПД: 77022764157366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145828&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18667&fm=77022764157366&tin=02508201610067®Number=0000000000152968&sum=10500 0 [14:58:22]StoreToDocumentArchive [14:58:22]shift 180 fd 18667 [14:58:22]save to /storage/0180/doc_00018667 [14:58:22]save last doc name /storage/0180/doc_00018667 to /storage/kkm_last_doc_name [14:58:22]save OK [14:58:22]Clear old archive folders... [14:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=285 [14:58:22]tlvbuf is 019DA870 [14:58:22]SAM_PROTO_ClearQueue [14:58:22]wFMCommunicate request_size=4 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 09 00 00 [14:58:22]Write to MH i2c: E2 08 00 40 32 80 09 00 00 00 00 00 00 E4 [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 40 32 00 90 00 E6 [14:58:22]RAPDU: 90 00 [14:58:22]wFMCommunicate OK [14:58:22]SAM_PROTO_ClearQueue done [14:58:22]KKMCreateOFDPacket [14:58:22]OFDProtocolAddRootSTLVToBuf [14:58:22]FM_MakeSignedData [14:58:22]FM_MakeSignedData [14:58:22]SAM_PROTO_SignData [14:58:22]wFMCommunicate request_size=4 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 0D 01 02 [14:58:22]Write to MH i2c: E2 08 00 41 32 80 0D 01 02 00 00 00 00 EC [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 41 32 00 90 00 E7 [14:58:22]RAPDU: 90 00 [14:58:22]wFMCommunicate OK [14:58:22]wFMCommunicate request_size=255 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 94 30 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 [14:58:22]Write to MH i2c: E2 02 01 42 32 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 94 30 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 00 00 29 [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 42 32 00 90 00 E8 [14:58:22]RAPDU: 90 00 [14:58:22]wFMCommunicate OK [14:58:22]wFMCommunicate request_size=44 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 0D 02 02 27 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EB 48 00 00 35 04 06 00 46 0D 42 7F 49 B6 [14:58:22]Write to MH i2c: E2 2F 00 43 32 80 0D 02 02 27 00 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EB 48 00 00 35 04 06 00 46 0D 42 7F 49 B6 00 00 5D [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 03 00 43 32 00 90 00 E9 [14:58:22]RAPDU: 90 00 [14:58:22]wFMCommunicate OK [14:58:22]wFMCommunicate request_size=4 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 0D 03 02 [14:58:22]Write to MH i2c: E2 08 00 44 32 80 0D 03 02 00 00 00 00 F1 [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 0B 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 0B 00 44 32 00 5A 31 87 AB 6E 17 5B DC 90 00 6B [14:58:22]RAPDU: 5A 31 87 AB 6E 17 5B DC 90 00 [14:58:22]wFMCommunicate OK [14:58:22]SAM_PROTO_SignData done [14:58:22]FM_MakeSignedData done [14:58:22]CreateOFDProtocolMessage [14:58:22]wFMCommunicate request_size=4 [14:58:22]MH_SAM_APDU [14:58:22]CAPDU: 80 11 00 00 [14:58:22]Write to MH i2c: E2 08 00 45 32 80 11 00 00 00 00 00 00 F1 [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:22]Read from MH i2c: E2 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 17 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: E2 17 00 45 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4A [14:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:58:22]wFMCommunicate OK [14:58:22]CreateOFDProtocolMessage done [14:58:22]OFDSenderStorePacket 18667 [14:58:22]StoreOFDPacket docnum=18667 [14:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 1C 62 29 01 4F 0F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 94 30 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EB 48 00 00 35 04 06 00 46 0D 42 7F 49 B6 5A 31 87 AB 6E 17 5B DC [14:58:22]CheckFolder [14:58:22]dirname=/storage/ofd_packets [14:58:22]CheckFolder done [14:58:22]ProducePacketName [14:58:22]name=ofd_packets/00018667 [14:58:22]NVStorageSaveData ofd_packets/00018667 [14:58:22]File name is /storage/ofd_packets/00018667 [14:58:22]Write 335 bytes [14:58:22]NVStorageSaveData done [14:58:22]OFDSenderStorePacket done [14:58:22]KKMCreateOFDPacket done [14:58:22]NVStorageSaveData kkm_last_timestamp [14:58:22]File name is /storage/kkm_last_timestamp [14:58:22]Write 4 bytes [14:58:22]NVStorageSaveData done [14:58:22]ExternCall_PrintAddStr [14:58:22]wPrintStart [14:58:22]Write to MH i2c: 01 00 00 46 32 78 [14:58:22]Write i2c OK [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: 01 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: 01 07 00 [14:58:22]MH_I2C_Read... [14:58:22]Read from MH i2c: 01 07 00 46 32 00 00 00 00 00 FF 0F 8D [14:58:22]RasterBufferAndPrint [14:58:22]line Счет N : (3)16591 [14:58:22]line ИНН: 02508201610067 [14:58:22]line Контрольно-Кассовый Чек [14:58:22]line ПРОДАЖА [14:58:22]line Товар: 5449000189318 [14:58:22]line Холодный чай Fuse лимон 1л [14:58:22]line 1.000 * 105.00 [14:58:22]line = 105.00 [14:58:22]line НДС 12% НСП 1% [14:58:22]line > о реализуемом товаре [14:58:22]line ИТОГО: 105.00 [14:58:22]line НСП 1% : 0.93 [14:58:22]line НДС 12% : 11.15 [14:58:22]line Наличными: 105.00 [14:58:22]line Безнал.: 0.00 [14:58:22]line Место: АЗС № 176 "Партнер Нефть" [14:58:22]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:58:22]line СНО: Общий режим [14:58:22]line Чек 63 22.09.2024 14:58 [14:58:22]line Смена: 180 ФФД: 1.0 [14:58:22]line ЗНМ: 0300000010 [14:58:22]line РНМ: 0000000000152968 [14:58:22]line Версия ККМ: v1.0 [14:58:22]line ФМ: 0000000000959456 [14:58:22]line ФД: 18667 [14:58:22]line ФПД: 77022764157366 [14:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145828&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18667&fm=77022764157366&tin=02508201610067®Number=0000000000152968&sum=10500 [14:58:23]line 0 [14:58:23]OFD Sender: Processing packet 18667 [packets to send 7, broken 6] [14:58:23]ProducePacketName [14:58:23]name=ofd_packets/00018667 [14:58:23]OFD Sender: To server: pG, [14:58:23]CommunicateWithHost lk.salyk.kg:30040 [14:58:23]ConnectInit lk.salyk.kg [14:58:23]written 0, free lines is 4095 [14:58:23]Connected sock=10 [14:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 1C 62 29 01 4F 0F 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 94 30 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EB 48 00 00 35 04 06 00 46 0D 42 7F 49 B6 5A 31 87 AB 6E 17 5B DC [14:58:23]Write to MH i2c: 01 00 00 6E 32 A0 [14:58:23]Write i2c OK [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: 01 [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: 01 07 00 [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: 01 07 00 6E 32 00 00 00 00 00 23 0D D7 [14:58:23]RasterBufferAndPrint [14:58:23]line [14:58:23]line [14:58:23]line [14:58:23]line [14:58:23]line [14:58:23]written 0, free lines is 3372 [14:58:23]MH_Cut [14:58:23]Write to MH i2c: D1 01 00 75 32 01 79 [14:58:23]Write i2c OK [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: D1 [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: D1 01 00 [14:58:23]MH_I2C_Read... [14:58:23]Read from MH i2c: D1 01 00 75 32 00 78 [14:58:23]Write to MH i2c: 01 00 00 76 32 A8 [14:58:23]Write i2c OK [14:58:23]MH_I2C_Read... [14:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FB A9 47 00 C0 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 39 35 39 34 35 36 10 04 04 00 EB 48 00 00 F4 03 04 00 FC D9 EF 66 B6 04 01 00 00 AA F8 DD 97 97 E5 E5 FC [14:58:23]CommunicateWithHost err = 0 [14:58:23]CheckOFDResponse [14:58:23]1017 (14) - 77093643461234 [14:58:23]1041 (16) - 0000000000959456 [14:58:23]1040 (4) - 18667 [14:58:23]1012 (4) - 22.09.2024 08:49 [14:58:23]1206 (1) - 0 [14:58:23]OFD Sender: Remove packet 18667 [14:58:23]ProducePacketName [14:58:23]name=ofd_packets/00018667 [14:58:23]NVStorageDeleteData [14:58:24]OFD Sender: No OFD packet to send [14:58:24]*** Cut start [14:58:24]*** Partial cut [14:58:24]*** CUTSNS_PIN = 1 [14:58:24]*** CUTSNS_PIN = 0 [14:58:24]*** Brake cut motor [14:58:24]Read from MH i2c: 01 [14:58:24]MH_I2C_Read... [14:58:24]*** Stop cut motor [14:58:24]*** Cut end [14:58:24]Read from MH i2c: 01 07 00 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: 01 07 00 76 32 00 00 00 00 00 FF 0F BD [14:58:24]process_action close_receipt done [14:58:24]requested_data is exist [14:58:24]produce_requested_data [14:58:24]requested_item fm.sn is exist - process it [14:58:24]wFMCommunicate request_size=4 [14:58:24]MH_SAM_APDU [14:58:24]CAPDU: 80 11 00 00 [14:58:24]Write to MH i2c: E2 08 00 77 32 80 11 00 00 00 00 00 00 23 [14:58:24]Write i2c OK [14:58:24]MH_I2C_Read... [14:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:24]Read from MH i2c: E2 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 17 00 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 17 00 77 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7C [14:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:58:24]wFMCommunicate OK [14:58:24]requested_item fd.num is exist - process it [14:58:24]SAM_PROTO_GetFieldsCounters [14:58:24]wFMCommunicate request_size=4 [14:58:24]MH_SAM_APDU [14:58:24]CAPDU: 80 13 00 00 [14:58:24]Write to MH i2c: E2 08 00 78 32 80 13 00 00 00 00 00 00 26 [14:58:24]Write i2c OK [14:58:24]MH_I2C_Read... [14:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:24]Read from MH i2c: E2 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 62 00 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 62 00 78 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EB 48 00 00 0E 04 04 00 B4 00 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 F7 [14:58:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EB 48 00 00 0E 04 04 00 B4 00 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 [14:58:24]wFMCommunicate OK [14:58:24]SAM_PROTO_GetFieldsCounters done [14:58:24]requested_item shift.num is exist - process it [14:58:24]requested_item shift.opened is exist - process it [14:58:24]req_shift_opened [14:58:24]FM_GetShiftState [14:58:24]SAM_PROTO_GetShiftState [14:58:24]wFMCommunicate request_size=4 [14:58:24]MH_SAM_APDU [14:58:24]CAPDU: 80 13 01 00 [14:58:24]Write to MH i2c: E2 08 00 79 32 80 13 01 00 00 00 00 00 28 [14:58:24]Write i2c OK [14:58:24]MH_I2C_Read... [14:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:24]Read from MH i2c: E2 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 0E 00 [14:58:24]MH_I2C_Read... [14:58:24]Read from MH i2c: E2 0E 00 79 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E8 [14:58:24]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [14:58:24]wFMCommunicate OK [14:58:24]SAM_PROTO_GetShiftState done [14:58:24]FM_GetShiftState done [14:58:24]req_shift_opened done [14:58:24]requested_item shift.open_date is exist - process it [14:58:24]req_shift_open_date [14:58:24]req_shift_open_date done [14:58:24]produce_requested_data done [14:58:24]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18667,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [14:58:24]process_action_free close_receipt [14:58:24]json_value_free [14:58:24]json_value_free done [14:58:24]process_json_proto returns [14:58:24]Send response to host [14:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18667,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [14:58:24]free response buf [14:58:24]execute_script done [14:58:24]execute_script returns [14:58:24]free content buf [14:58:24]Sock 9.Close socket [14:58:24]Sock 9.Thread stoped [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:35]accept exits with 7 [15:01:35]New connection [15:01:35]New thread 3066522980 created [15:01:35]Thread 3066666340 joined [15:01:35]Waiting for new connection... [15:01:35] Sock 7.Parse request [15:01:35]Sock 7.Check first char [15:01:35]Sock 7.First char is OK [15:01:35]request: POST /json_proto HTTP/1.0 [15:01:35]Method: POST [15:01:35]URL: /json_proto [15:01:35]Method is POST - this is cgi request [15:01:35]url: /json_proto [15:01:35]query_string will be loaded in cgi processing [15:01:35]execute_cgi json_proto POST (null) [15:01:35]execute_cgi path=json_proto method=POST [15:01:35]POST find Content-Length [15:01:35]Host: 172.17.62.196:8080 [15:01:35]Content-Length: 909 [15:01:35]Content-Type: application/json [15:01:35] [15:01:35]POST finish read [15:01:35]Found Content-Length = 909 [15:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16592", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:35]execute_script... [15:01: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)16592", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:35]POST & json_proto [15:01:35]process_json_proto [15:01:35]json parsed OK: [15:01:35]protocol is kg_v1.0 [15:01:35]action value=close_receipt [15:01:35]process_action close_receipt [15:01:35]cmd_close_receipt [15:01:35]MH_GetDate [15:01:35]Write to MH i2c: F0 00 00 7A 32 9B [15:01:35]Write i2c OK [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 09 00 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: F0 09 00 7A 32 00 56 31 F0 66 CE CC 0E 66 8F [15:01:35]GetLastDocTimeStamp 1727017108 [15:01:35]current date 1727017302 [15:01:35]FM_GetShiftState [15:01:35]SAM_PROTO_GetShiftState [15:01:35]wFMCommunicate request_size=4 [15:01:35]MH_SAM_APDU [15:01:35]CAPDU: 80 13 01 00 [15:01:35]Write to MH i2c: E2 08 00 7B 32 80 13 01 00 00 00 00 00 2A [15:01:35]Write i2c OK [15:01:35]MH_I2C_Read... [15:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:35]Read from MH i2c: E2 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: E2 0E 00 [15:01:35]MH_I2C_Read... [15:01:35]Read from MH i2c: E2 0E 00 7B 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 EA [15:01:35]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:01:35]wFMCommunicate OK [15:01:35]SAM_PROTO_GetShiftState done [15:01:35]FM_GetShiftState done [15:01:35]opened in 1726963967 [15:01:35]opened+sec_in_day 1727050367 [15:01:35]quantity*price = 4000 [15:01:35]sum+1 = 4001 [15:01:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 64 22.09.2024 15:01 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18668 ФПД: 212837457403819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150143&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18668&fm=212837457403819&tin=02508201610067®Number=0000000000152968&sum=10000 0 [15:01:36]StoreToDocumentArchive [15:01:36]shift 180 fd 18668 [15:01:36]save to /storage/0180/doc_00018668 [15:01:36]save last doc name /storage/0180/doc_00018668 to /storage/kkm_last_doc_name [15:01:36]save OK [15:01:36]Clear old archive folders... [15:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=384 [15:01:36]tlvbuf is 019EFCA0 [15:01:36]SAM_PROTO_ClearQueue [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 09 00 00 [15:01:36]Write to MH i2c: E2 08 00 88 32 80 09 00 00 00 00 00 00 2C [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]SAM_PROTO_ClearQueue done [15:01:36]KKMCreateOFDPacket [15:01:36]OFDProtocolAddRootSTLVToBuf [15:01:36]FM_MakeSignedData [15:01:36]FM_MakeSignedData [15:01:36]SAM_PROTO_SignData [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 01 02 [15:01:36]Write to MH i2c: E2 08 00 89 32 80 0D 01 02 00 00 00 00 34 [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]wFMCommunicate request_size=255 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [15:01:36]Write to MH i2c: E2 02 01 8A 32 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 4B [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 8A 32 00 90 00 30 [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]wFMCommunicate request_size=143 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 02 02 8A 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 57 31 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EC 48 00 00 35 04 06 00 C1 93 15 0B 1F AB [15:01:36]Write to MH i2c: E2 92 00 8B 32 80 0D 02 02 8A 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 57 31 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EC 48 00 00 35 04 06 00 C1 93 15 0B 1F AB 00 00 81 [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:36]Read from MH i2c: E2 03 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 03 00 8B 32 00 90 00 31 [15:01:36]RAPDU: 90 00 [15:01:36]wFMCommunicate OK [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 0D 03 02 [15:01:36]Write to MH i2c: E2 08 00 8C 32 80 0D 03 02 00 00 00 00 39 [15:01:36]Write i2c OK [15:01:36]MH_I2C_Read... [15:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:36]Read from MH i2c: E2 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 0B 00 [15:01:36]MH_I2C_Read... [15:01:36]Read from MH i2c: E2 0B 00 8C 32 00 9C 95 4B E2 5C 58 FA F9 90 00 3F [15:01:36]RAPDU: 9C 95 4B E2 5C 58 FA F9 90 00 [15:01:36]wFMCommunicate OK [15:01:36]SAM_PROTO_SignData done [15:01:36]FM_MakeSignedData done [15:01:36]CreateOFDProtocolMessage [15:01:36]wFMCommunicate request_size=4 [15:01:36]MH_SAM_APDU [15:01:36]CAPDU: 80 11 00 00 [15:01:36]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:37]Read from MH i2c: E2 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 17 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 92 [15:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:01:37]wFMCommunicate OK [15:01:37]CreateOFDProtocolMessage done [15:01:37]OFDSenderStorePacket 18668 [15:01:37]StoreOFDPacket docnum=18668 [15:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 94 01 00 00 D1 87 8C 01 A1 8F 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 57 31 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EC 48 00 00 35 04 06 00 C1 93 15 0B 1F AB 9C 95 4B E2 5C 58 FA F9 [15:01:37]CheckFolder [15:01:37]dirname=/storage/ofd_packets [15:01:37]CheckFolder done [15:01:37]ProducePacketName [15:01:37]name=ofd_packets/00018668 [15:01:37]NVStorageSaveData ofd_packets/00018668 [15:01:37]File name is /storage/ofd_packets/00018668 [15:01:37]Write 434 bytes [15:01:37]NVStorageSaveData done [15:01:37]OFDSenderStorePacket done [15:01:37]KKMCreateOFDPacket done [15:01:37]NVStorageSaveData kkm_last_timestamp [15:01:37]File name is /storage/kkm_last_timestamp [15:01:37]Write 4 bytes [15:01:37]NVStorageSaveData done [15:01:37]ExternCall_PrintAddStr [15:01:37]wPrintStart [15:01:37]Write to MH i2c: 01 00 00 8E 32 C0 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 8E 32 00 00 00 00 00 FF 0F D5 [15:01:37]RasterBufferAndPrint [15:01:37]line Счет N : (3)16592 [15:01:37]line ИНН: 02508201610067 [15:01:37]line Контрольно-Кассовый Чек [15:01:37]line ПРОДАЖА [15:01:37]line Товар: 4700000310036 [15:01:37]line Вода Жалалабат 27 0,5л [15:01:37]line 1.000 * 40.00 [15:01:37]line = 40.00 [15:01:37]line НДС 12% НСП 1% [15:01:37]line > о реализуемом товаре [15:01:37]line Товар: 4700000310043 [15:01:37]line Вода Жалалабат 27 1л [15:01:37]line 1.000 * 60.00 [15:01:37]line = 60.00 [15:01:37]line НДС 12% НСП 1% [15:01:37]line > о реализуемом товаре [15:01:37]line ИТОГО: 100.00 [15:01:37]line НСП 1% : 0.88 [15:01:37]line НДС 12% : 10.62 [15:01:37]line Наличными: 100.00 [15:01:37]line Безнал.: 0.00 [15:01:37]line Место: АЗС № 176 "Партнер Нефть" [15:01:37]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:01:37]line СНО: Общий режим [15:01:37]line Чек 64 22.09.2024 15:01 [15:01:37]line Смена: 180 ФФД: 1.0 [15:01:37]line ЗНМ: 0300000010 [15:01:37]line РНМ: 0000000000152968 [15:01:37]line Версия ККМ: v1.0 [15:01:37]line ФМ: 0000000000959456 [15:01:37]line ФД: 18668 [15:01:37]line ФПД: 212837457403819 [15:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150143&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18668&fm=212837457403819&tin=02508201610067®Number=0000000000152968&sum=10000 [15:01:37]line 0 [15:01:37]OFD Sender: Processing packet 18668 [packets to send 7, broken 6] [15:01:37]ProducePacketName [15:01:37]name=ofd_packets/00018668 [15:01:37]OFD Sender: To server: pG, [15:01:37]CommunicateWithHost lk.salyk.kg:30040 [15:01:37]ConnectInit lk.salyk.kg [15:01:37]written 0, free lines is 4095 [15:01:37]Connected sock=10 [15:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 94 01 00 00 D1 87 8C 01 A1 8F 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 57 31 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EC 48 00 00 35 04 06 00 C1 93 15 0B 1F AB 9C 95 4B E2 5C 58 FA F9 [15:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 1A 4D 47 00 A3 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EC 48 00 00 F4 03 04 00 BE DA EF 66 B6 04 01 00 00 13 55 85 96 A4 4B 64 61 [15:01:37]CommunicateWithHost err = 0 [15:01:37]CheckOFDResponse [15:01:37]1017 (14) - 77093643461234 [15:01:37]1041 (16) - 0000000000959456 [15:01:37]1040 (4) - 18668 [15:01:37]1012 (4) - 22.09.2024 08:52 [15:01:37]1206 (1) - 0 [15:01:37]OFD Sender: Remove packet 18668 [15:01:37]ProducePacketName [15:01:37]name=ofd_packets/00018668 [15:01:37]NVStorageDeleteData [15:01:37]Write to MH i2c: 01 00 00 BC 32 EE [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 E3 0C E4 [15:01:37]RasterBufferAndPrint [15:01:37]line [15:01:37]line [15:01:37]line [15:01:37]line [15:01:37]line [15:01:37]written 0, free lines is 3305 [15:01:37]MH_Cut [15:01:37]Write to MH i2c: D1 01 00 C3 32 01 C7 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: D1 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: D1 01 00 [15:01:37]MH_I2C_Read... [15:01:37]Read from MH i2c: D1 01 00 C3 32 00 C6 [15:01:37]Write to MH i2c: 01 00 00 C4 32 F6 [15:01:37]Write i2c OK [15:01:37]MH_I2C_Read... [15:01:38]OFD Sender: No OFD packet to send [15:01:38]*** Cut start [15:01:38]*** Partial cut [15:01:38]*** CUTSNS_PIN = 1 [15:01:38]*** CUTSNS_PIN = 0 [15:01:38]*** Brake cut motor [15:01:39]Read from MH i2c: 01 [15:01:39]MH_I2C_Read... [15:01:39]*** Stop cut motor [15:01:39]*** Cut end [15:01:39]Read from MH i2c: 01 07 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: 01 07 00 C4 32 00 00 00 00 00 FF 0F 0B [15:01:39]process_action close_receipt done [15:01:39]requested_data is exist [15:01:39]produce_requested_data [15:01:39]requested_item fm.sn is exist - process it [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 11 00 00 [15:01:39]Write to MH i2c: E2 08 00 C5 32 80 11 00 00 00 00 00 00 71 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 C5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CA [15:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:01:39]wFMCommunicate OK [15:01:39]requested_item fd.num is exist - process it [15:01:39]SAM_PROTO_GetFieldsCounters [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 00 00 [15:01:39]Write to MH i2c: E2 08 00 C6 32 80 13 00 00 00 00 00 00 74 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 C6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EC 48 00 00 0E 04 04 00 B4 00 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 49 [15:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EC 48 00 00 0E 04 04 00 B4 00 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:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetFieldsCounters done [15:01:39]requested_item shift.num is exist - process it [15:01:39]requested_item shift.opened is exist - process it [15:01:39]req_shift_opened [15:01:39]FM_GetShiftState [15:01:39]SAM_PROTO_GetShiftState [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 01 00 [15:01:39]Write to MH i2c: E2 08 00 C7 32 80 13 01 00 00 00 00 00 76 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 C7 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 36 [15:01:39]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetShiftState done [15:01:39]FM_GetShiftState done [15:01:39]req_shift_opened done [15:01:39]requested_item shift.open_date is exist - process it [15:01:39]req_shift_open_date [15:01:39]req_shift_open_date done [15:01:39]produce_requested_data done [15:01:39]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18668,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:01:39]process_action_free close_receipt [15:01:39]json_value_free [15:01:39]json_value_free done [15:01:39]process_json_proto returns [15:01:39]Send response to host [15:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18668,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:01:39]free response buf [15:01:39]execute_script done [15:01:39]execute_script returns [15:01:39]free content buf [15:01:39]Sock 7.Close socket [15:01:39]Sock 7.Thread stoped [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:25]accept exits with 9 [15:08:25]New connection [15:08:25]New thread 3066666340 created [15:08:25]Thread 3066522980 joined [15:08:25]Waiting for new connection... [15:08:25] Sock 9.Parse request [15:08:25]Sock 9.Check first char [15:08:25]Sock 9.First char is OK [15:08:25]request: POST /json_proto HTTP/1.0 [15:08:25]Method: POST [15:08:25]URL: /json_proto [15:08:25]Method is POST - this is cgi request [15:08:25]url: /json_proto [15:08:25]query_string will be loaded in cgi processing [15:08:25]execute_cgi json_proto POST (null) [15:08:25]execute_cgi path=json_proto method=POST [15:08:25]POST find Content-Length [15:08:25]Host: 172.17.62.196:8080 [15:08:25]Content-Length: 631 [15:08:25]Content-Type: application/json [15:08:25] [15:08:25]POST finish read [15:08:25]Found Content-Length = 631 [15:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16593", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 7.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:25]execute_script... [15:08: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)16593", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 7.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:25]POST & json_proto [15:08:25]process_json_proto [15:08:25]json parsed OK: [15:08:25]protocol is kg_v1.0 [15:08:25]action value=close_receipt [15:08:25]process_action close_receipt [15:08:25]cmd_close_receipt [15:08:25]MH_GetDate [15:08:25]Write to MH i2c: F0 00 00 C8 32 E9 [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 09 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 09 00 C8 32 00 F0 32 F0 66 CE CC 0E 66 78 [15:08:25]GetLastDocTimeStamp 1727017303 [15:08:25]current date 1727017712 [15:08:25]FM_GetShiftState [15:08:25]SAM_PROTO_GetShiftState [15:08:25]wFMCommunicate request_size=4 [15:08:25]MH_SAM_APDU [15:08:25]CAPDU: 80 13 01 00 [15:08:25]Write to MH i2c: E2 08 00 C9 32 80 13 01 00 00 00 00 00 78 [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 0E 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 0E 00 C9 32 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 38 [15:08:25]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:08:25]wFMCommunicate OK [15:08:25]SAM_PROTO_GetShiftState done [15:08:25]FM_GetShiftState done [15:08:25]opened in 1726963967 [15:08:25]opened+sec_in_day 1727050367 [15:08:25]quantity*price = 35000 [15:08:25]sum+1 = 35001 [15:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 65 22.09.2024 15:08 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18669 ФПД: 55921730365895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18669&fm=55921730365895&tin=02508201610067®Number=0000000000152968&sum=35000 0 [15:08:26]StoreToDocumentArchive [15:08:26]shift 180 fd 18669 [15:08:26]save to /storage/0180/doc_00018669 [15:08:26]save last doc name /storage/0180/doc_00018669 to /storage/kkm_last_doc_name [15:08:26]save OK [15:08:26]Clear old archive folders... [15:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:08:26]tlvbuf is 01A80110 [15:08:26]SAM_PROTO_ClearQueue [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 09 00 00 [15:08:26]Write to MH i2c: E2 08 00 D6 32 80 09 00 00 00 00 00 00 7A [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 D6 32 00 90 00 7C [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]SAM_PROTO_ClearQueue done [15:08:26]KKMCreateOFDPacket [15:08:26]OFDProtocolAddRootSTLVToBuf [15:08:26]FM_MakeSignedData [15:08:26]FM_MakeSignedData [15:08:26]SAM_PROTO_SignData [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 01 02 [15:08:26]Write to MH i2c: E2 08 00 D7 32 80 0D 01 02 00 00 00 00 82 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 D7 32 00 90 00 7D [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=255 [15:08:26]MH_SAM_APDU [15:08:26]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 58 1B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 32 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [15:08:26]Write to MH i2c: E2 02 01 D8 32 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 58 1B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 32 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 0D [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 D8 32 00 90 00 7E [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=28 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 ED 48 00 00 35 04 06 00 32 DC 4A DF A9 C7 [15:08:26]Write to MH i2c: E2 1F 00 D9 32 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 ED 48 00 00 35 04 06 00 32 DC 4A DF A9 C7 00 00 F3 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 D9 32 00 90 00 7F [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 03 02 [15:08:26]Write to MH i2c: E2 08 00 DA 32 80 0D 03 02 00 00 00 00 87 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 0B 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 0B 00 DA 32 00 1A 39 FE 85 B2 B6 CF 4F 90 00 E4 [15:08:26]RAPDU: 1A 39 FE 85 B2 B6 CF 4F 90 00 [15:08:26]wFMCommunicate OK [15:08:26]SAM_PROTO_SignData done [15:08:26]FM_MakeSignedData done [15:08:26]CreateOFDProtocolMessage [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 11 00 00 [15:08:26]Write to MH i2c: E2 08 00 DB 32 80 11 00 00 00 00 00 00 87 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 DB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E0 [15:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:08:26]wFMCommunicate OK [15:08:26]CreateOFDProtocolMessage done [15:08:26]OFDSenderStorePacket 18669 [15:08:26]StoreOFDPacket docnum=18669 [15:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 4A BB 19 01 5F 1F 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 58 1B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 32 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 ED 48 00 00 35 04 06 00 32 DC 4A DF A9 C7 1A 39 FE 85 B2 B6 CF 4F [15:08:26]CheckFolder [15:08:26]dirname=/storage/ofd_packets [15:08:26]CheckFolder done [15:08:26]ProducePacketName [15:08:26]name=ofd_packets/00018669 [15:08:26]NVStorageSaveData ofd_packets/00018669 [15:08:26]File name is /storage/ofd_packets/00018669 [15:08:26]Write 319 bytes [15:08:26]NVStorageSaveData done [15:08:26]OFDSenderStorePacket done [15:08:26]KKMCreateOFDPacket done [15:08:26]NVStorageSaveData kkm_last_timestamp [15:08:26]File name is /storage/kkm_last_timestamp [15:08:26]Write 4 bytes [15:08:26]NVStorageSaveData done [15:08:26]ExternCall_PrintAddStr [15:08:26]wPrintStart [15:08:26]Write to MH i2c: 01 00 00 DC 32 0E [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 07 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 07 00 DC 32 00 00 00 00 00 FF 0F 23 [15:08:26]RasterBufferAndPrint [15:08:26]line Счет N : (3)16593 [15:08:26]line ИНН: 02508201610067 [15:08:26]line Контрольно-Кассовый Чек [15:08:26]line ПРОДАЖА [15:08:26]line Товар: 4700000160358 [15:08:26]line Вода Легенда 1л [15:08:26]line 7.000 * 50.00 [15:08:26]line = 350.00 [15:08:26]line НДС 12% НСП 1% [15:08:26]line > о реализуемом товаре [15:08:26]line ИТОГО: 350.00 [15:08:26]line НСП 1% : 3.10 [15:08:26]line НДС 12% : 37.17 [15:08:26]line Наличными: 350.00 [15:08:26]line Безнал.: 0.00 [15:08:26]line Место: АЗС № 176 "Партнер Нефть" [15:08:26]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:08:26]line СНО: Общий режим [15:08:26]line Чек 65 22.09.2024 15:08 [15:08:26]line Смена: 180 ФФД: 1.0 [15:08:26]line ЗНМ: 0300000010 [15:08:26]line РНМ: 0000000000152968 [15:08:26]line Версия ККМ: v1.0 [15:08:26]line ФМ: 0000000000959456 [15:08:26]line ФД: 18669 [15:08:26]line ФПД: 55921730365895 [15:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18669&fm=55921730365895&tin=02508201610067®Number=0000000000152968&sum=35000 [15:08:27]line 0 [15:08:27]OFD Sender: Processing packet 18669 [packets to send 7, broken 6] [15:08:27]ProducePacketName [15:08:27]name=ofd_packets/00018669 [15:08:27]OFD Sender: To server: pG, [15:08:27]CommunicateWithHost lk.salyk.kg:30040 [15:08:27]ConnectInit lk.salyk.kg [15:08:27]written 0, free lines is 4095 [15:08:27]Connected sock=10 [15:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 4A BB 19 01 5F 1F 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 58 1B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 32 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 ED 48 00 00 35 04 06 00 32 DC 4A DF A9 C7 1A 39 FE 85 B2 B6 CF 4F [15:08:27]Write to MH i2c: 01 00 00 04 33 37 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 07 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 07 00 04 33 00 00 00 00 00 23 0D 6E [15:08:27]RasterBufferAndPrint [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]written 0, free lines is 3372 [15:08:27]MH_Cut [15:08:27]Write to MH i2c: D1 01 00 0B 33 01 10 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: D1 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: D1 01 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: D1 01 00 0B 33 00 0F [15:08:27]Write to MH i2c: 01 00 00 0C 33 3F [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 87 76 47 00 43 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 ED 48 00 00 F4 03 04 00 58 DC EF 66 B6 04 01 00 00 F8 D3 72 5B 86 D6 41 46 [15:08:27]CommunicateWithHost err = 0 [15:08:27]CheckOFDResponse [15:08:27]1017 (14) - 77093643461234 [15:08:27]1041 (16) - 0000000000959456 [15:08:27]1040 (4) - 18669 [15:08:27]1012 (4) - 22.09.2024 08:59 [15:08:27]1206 (1) - 0 [15:08:27]OFD Sender: Remove packet 18669 [15:08:27]ProducePacketName [15:08:27]name=ofd_packets/00018669 [15:08:27]NVStorageDeleteData [15:08:28]OFD Sender: No OFD packet to send [15:08:28]*** Cut start [15:08:28]*** Partial cut [15:08:28]*** CUTSNS_PIN = 1 [15:08:28]*** CUTSNS_PIN = 0 [15:08:28]*** Brake cut motor [15:08:28]Read from MH i2c: 01 [15:08:28]MH_I2C_Read... [15:08:28]*** Stop cut motor [15:08:28]*** Cut end [15:08:28]Read from MH i2c: 01 07 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: 01 07 00 0C 33 00 00 00 00 00 FF 0F 54 [15:08:28]process_action close_receipt done [15:08:28]requested_data is exist [15:08:28]produce_requested_data [15:08:28]requested_item fm.sn is exist - process it [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 11 00 00 [15:08:28]Write to MH i2c: E2 08 00 0D 33 80 11 00 00 00 00 00 00 BA [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 17 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 17 00 0D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [15:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:08:28]wFMCommunicate OK [15:08:28]requested_item fd.num is exist - process it [15:08:28]SAM_PROTO_GetFieldsCounters [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 13 00 00 [15:08:28]Write to MH i2c: E2 08 00 0E 33 80 13 00 00 00 00 00 00 BD [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 62 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 62 00 0E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 ED 48 00 00 0E 04 04 00 B4 00 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 96 [15:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 ED 48 00 00 0E 04 04 00 B4 00 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:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_GetFieldsCounters done [15:08:28]requested_item shift.num is exist - process it [15:08:28]requested_item shift.opened is exist - process it [15:08:28]req_shift_opened [15:08:28]FM_GetShiftState [15:08:28]SAM_PROTO_GetShiftState [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 13 01 00 [15:08:28]Write to MH i2c: E2 08 00 0F 33 80 13 01 00 00 00 00 00 BF [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0E 00 0F 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7F [15:08:29]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:08:29]wFMCommunicate OK [15:08:29]SAM_PROTO_GetShiftState done [15:08:29]FM_GetShiftState done [15:08:29]req_shift_opened done [15:08:29]requested_item shift.open_date is exist - process it [15:08:29]req_shift_open_date [15:08:29]req_shift_open_date done [15:08:29]produce_requested_data done [15:08:29]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18669,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:08:29]process_action_free close_receipt [15:08:29]json_value_free [15:08:29]json_value_free done [15:08:29]process_json_proto returns [15:08:29]Send response to host [15:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18669,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:08:29]free response buf [15:08:29]execute_script done [15:08:29]execute_script returns [15:08:29]free content buf [15:08:29]Sock 9.Close socket [15:08:29]Sock 9.Thread stoped [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:48]accept exits with 7 [15:08:48]New connection [15:08:48]New thread 3066522980 created [15:08:48]Thread 3066666340 joined [15:08:48]Waiting for new connection... [15:08:48] Sock 7.Parse request [15:08:48]Sock 7.Check first char [15:08:48]Sock 7.First char is OK [15:08:48]request: POST /json_proto HTTP/1.0 [15:08:48]Method: POST [15:08:48]URL: /json_proto [15:08:48]Method is POST - this is cgi request [15:08:48]url: /json_proto [15:08:48]query_string will be loaded in cgi processing [15:08:48]execute_cgi json_proto POST (null) [15:08:48]execute_cgi path=json_proto method=POST [15:08:48]POST find Content-Length [15:08:48]Host: 172.17.62.196:8080 [15:08:48]Content-Length: 1071 [15:08:48]Content-Type: application/json [15:08:48] [15:08:48]POST finish read [15:08:48]Found Content-Length = 1071 [15:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16594", "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": "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 }]} ], "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:08:48]execute_script... [15:08: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)16594", "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": "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 }]} ], "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:08:48]POST & json_proto [15:08:48]process_json_proto [15:08:48]json parsed OK: [15:08:48]protocol is kg_v1.0 [15:08:48]action value=close_receipt [15:08:48]process_action close_receipt [15:08:48]cmd_close_receipt [15:08:48]MH_GetDate [15:08:48]Write to MH i2c: F0 00 00 10 33 32 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 09 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: F0 09 00 10 33 00 08 33 F0 66 CE CC 0E 66 DA [15:08:48]GetLastDocTimeStamp 1727017712 [15:08:48]current date 1727017736 [15:08:48]FM_GetShiftState [15:08:48]SAM_PROTO_GetShiftState [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 13 01 00 [15:08:48]Write to MH i2c: E2 08 00 11 33 80 13 01 00 00 00 00 00 C1 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 0E 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 0E 00 11 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 81 [15:08:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:08:48]wFMCommunicate OK [15:08:48]SAM_PROTO_GetShiftState done [15:08:48]FM_GetShiftState done [15:08:48]opened in 1726963967 [15:08:48]opened+sec_in_day 1727050367 [15:08:48]quantity*price = 10500 [15:08:48]sum+1 = 10501 [15:08:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 66 22.09.2024 15:08 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18670 ФПД: 118048821156625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150856&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18670&fm=118048821156625&tin=02508201610067®Number=0000000000152968&sum=14000 0 [15:08:49]StoreToDocumentArchive [15:08:49]shift 180 fd 18670 [15:08:49]save to /storage/0180/doc_00018670 [15:08:49]save last doc name /storage/0180/doc_00018670 to /storage/kkm_last_doc_name [15:08:49]save OK [15:08:49]Clear old archive folders... [15:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=387 [15:08:49]tlvbuf is 0199B970 [15:08:49]SAM_PROTO_ClearQueue [15:08:49]wFMCommunicate request_size=4 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 09 00 00 [15:08:49]Write to MH i2c: E2 08 00 1E 33 80 09 00 00 00 00 00 00 C3 [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [15:08:49]RAPDU: 90 00 [15:08:49]wFMCommunicate OK [15:08:49]SAM_PROTO_ClearQueue done [15:08:49]KKMCreateOFDPacket [15:08:49]OFDProtocolAddRootSTLVToBuf [15:08:49]FM_MakeSignedData [15:08:49]FM_MakeSignedData [15:08:49]SAM_PROTO_SignData [15:08:49]wFMCommunicate request_size=4 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 0D 01 02 [15:08:49]Write to MH i2c: E2 08 00 1F 33 80 0D 01 02 00 00 00 00 CB [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [15:08:49]RAPDU: 90 00 [15:08:49]wFMCommunicate OK [15:08:49]wFMCommunicate request_size=255 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 0D 02 02 FA 03 00 83 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 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [15:08:49]Write to MH i2c: E2 02 01 20 33 80 0D 02 02 FA 00 03 00 83 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 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 12 [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 03 00 20 33 00 90 00 C7 [15:08:49]RAPDU: 90 00 [15:08:49]wFMCommunicate OK [15:08:49]wFMCommunicate request_size=146 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 0D 02 02 8D 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 42 00 00 00 F4 03 04 00 08 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EE 48 00 00 35 04 06 00 6B 5D 62 0D 1B 11 [15:08:49]Write to MH i2c: E2 95 00 21 33 80 0D 02 02 8D 00 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 42 00 00 00 F4 03 04 00 08 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EE 48 00 00 35 04 06 00 6B 5D 62 0D 1B 11 00 00 80 [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 03 00 21 33 00 90 00 C8 [15:08:50]RAPDU: 90 00 [15:08:50]wFMCommunicate OK [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 0D 03 02 [15:08:50]Write to MH i2c: E2 08 00 22 33 80 0D 03 02 00 00 00 00 D0 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0B 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 0B 00 22 33 00 9A 36 0F F9 18 9D 58 5E 90 00 14 [15:08:50]RAPDU: 9A 36 0F F9 18 9D 58 5E 90 00 [15:08:50]wFMCommunicate OK [15:08:50]SAM_PROTO_SignData done [15:08:50]FM_MakeSignedData done [15:08:50]CreateOFDProtocolMessage [15:08:50]wFMCommunicate request_size=4 [15:08:50]MH_SAM_APDU [15:08:50]CAPDU: 80 11 00 00 [15:08:50]Write to MH i2c: E2 08 00 23 33 80 11 00 00 00 00 00 00 D0 [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:50]Read from MH i2c: E2 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: E2 17 00 23 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 29 [15:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:08:50]wFMCommunicate OK [15:08:50]CreateOFDProtocolMessage done [15:08:50]OFDSenderStorePacket 18670 [15:08:50]StoreOFDPacket docnum=18670 [15:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 97 01 00 00 F6 41 8F 01 2F FF 5A 03 01 00 03 00 83 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 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 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 42 00 00 00 F4 03 04 00 08 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EE 48 00 00 35 04 06 00 6B 5D 62 0D 1B 11 9A 36 0F F9 18 9D 58 5E [15:08:50]CheckFolder [15:08:50]dirname=/storage/ofd_packets [15:08:50]CheckFolder done [15:08:50]ProducePacketName [15:08:50]name=ofd_packets/00018670 [15:08:50]NVStorageSaveData ofd_packets/00018670 [15:08:50]File name is /storage/ofd_packets/00018670 [15:08:50]Write 437 bytes [15:08:50]NVStorageSaveData done [15:08:50]OFDSenderStorePacket done [15:08:50]KKMCreateOFDPacket done [15:08:50]NVStorageSaveData kkm_last_timestamp [15:08:50]File name is /storage/kkm_last_timestamp [15:08:50]Write 4 bytes [15:08:50]NVStorageSaveData done [15:08:50]ExternCall_PrintAddStr [15:08:50]wPrintStart [15:08:50]Write to MH i2c: 01 00 00 24 33 57 [15:08:50]OFD Sender: Processing packet 18670 [packets to send 7, broken 6] [15:08:50]ProducePacketName [15:08:50]name=ofd_packets/00018670 [15:08:50]OFD Sender: To server: pG, [15:08:50]CommunicateWithHost lk.salyk.kg:30040 [15:08:50]ConnectInit lk.salyk.kg [15:08:50]Write i2c OK [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 07 00 [15:08:50]MH_I2C_Read... [15:08:50]Read from MH i2c: 01 07 00 24 33 00 00 00 00 00 FF 0F 6C [15:08:50]RasterBufferAndPrint [15:08:50]line Счет N : (3)16594 [15:08:50]line ИНН: 02508201610067 [15:08:50]line Контрольно-Кассовый Чек [15:08:50]line ПРОДАЖА [15:08:50]line Товар: 2000034730018 [15:08:50]line Кофе Американо (GABB TRADE) [15:08:50]line 1.000 * 105.00 [15:08:50]line = 105.00 [15:08:50]line НДС 12% НСП 1% [15:08:50]line > о реализуемом товаре [15:08:50]line Товар: 4700000310326 [15:08:50]line Вода Адыгене 1л б/г [15:08:50]line 1.000 * 35.00 [15:08:50]line = 35.00 [15:08:50]line НДС 12% НСП 1% [15:08:50]line > о реализуемом товаре [15:08:50]line ИТОГО: 140.00 [15:08:50]line НСП 1% : 1.24 [15:08:50]line НДС 12% : 14.87 [15:08:50]line Наличными: 0.00 [15:08:50]line Безнал.: 140.00 [15:08:50]line Место: АЗС № 176 "Партнер Нефть" [15:08:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:08:50]line СНО: Общий режим [15:08:50]line Чек 66 22.09.2024 15:08 [15:08:50]line Смена: 180 ФФД: 1.0 [15:08:50]line ЗНМ: 0300000010 [15:08:50]line РНМ: 0000000000152968 [15:08:50]line Версия ККМ: v1.0 [15:08:50]line Платежная система: O! деньги [15:08:50]line ФМ: 0000000000959456 [15:08:50]line ФД: 18670 [15:08:50]line ФПД: 118048821156625 [15:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150856&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18670&fm=118048821156625&tin=02508201610067®Number=0000000000152968&sum=14000 [15:08:50]line 0 [15:08:50]written 0, free lines is 4095 [15:08:50]Connected sock=10 [15:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 97 01 00 00 F6 41 8F 01 2F FF 5A 03 01 00 03 00 83 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 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 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 42 00 00 00 F4 03 04 00 08 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EE 48 00 00 35 04 06 00 6B 5D 62 0D 1B 11 9A 36 0F F9 18 9D 58 5E [15:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 76 E7 47 00 52 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EE 48 00 00 F4 03 04 00 6F DC EF 66 B6 04 01 00 00 7D F7 DE 1C EC 5D 98 9E [15:08:51]CommunicateWithHost err = 0 [15:08:51]CheckOFDResponse [15:08:51]1017 (14) - 77093643461234 [15:08:51]1041 (16) - 0000000000959456 [15:08:51]1040 (4) - 18670 [15:08:51]1012 (4) - 22.09.2024 08:59 [15:08:51]1206 (1) - 0 [15:08:51]OFD Sender: Remove packet 18670 [15:08:51]ProducePacketName [15:08:51]name=ofd_packets/00018670 [15:08:51]NVStorageDeleteData [15:08:51]Write to MH i2c: 01 00 00 55 33 88 [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 07 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 BC 0C 57 [15:08:51]RasterBufferAndPrint [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]line [15:08:51]written 0, free lines is 3270 [15:08:51]MH_Cut [15:08:51]Write to MH i2c: D1 01 00 5C 33 01 61 [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: D1 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: D1 01 00 [15:08:51]MH_I2C_Read... [15:08:51]Read from MH i2c: D1 01 00 5C 33 00 60 [15:08:51]Write to MH i2c: 01 00 00 5D 33 90 [15:08:51]Write i2c OK [15:08:51]MH_I2C_Read... [15:08:51]OFD Sender: No OFD packet to send [15:08:51]*** Cut start [15:08:51]*** Partial cut [15:08:51]*** CUTSNS_PIN = 1 [15:08:51]*** CUTSNS_PIN = 0 [15:08:51]*** Brake cut motor [15:08:52]Read from MH i2c: 01 [15:08:52]MH_I2C_Read... [15:08:52]*** Stop cut motor [15:08:52]*** Cut end [15:08:52]Read from MH i2c: 01 07 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: 01 07 00 5D 33 00 00 00 00 00 FF 0F A5 [15:08:52]process_action close_receipt done [15:08:52]requested_data is exist [15:08:52]produce_requested_data [15:08:52]requested_item fm.sn is exist - process it [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 11 00 00 [15:08:52]Write to MH i2c: E2 08 00 5E 33 80 11 00 00 00 00 00 00 0B [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 17 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 17 00 5E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 64 [15:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:08:52]wFMCommunicate OK [15:08:52]requested_item fd.num is exist - process it [15:08:52]SAM_PROTO_GetFieldsCounters [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 13 00 00 [15:08:52]Write to MH i2c: E2 08 00 5F 33 80 13 00 00 00 00 00 00 0E [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 62 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 62 00 5F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EE 48 00 00 0E 04 04 00 B4 00 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 EB [15:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EE 48 00 00 0E 04 04 00 B4 00 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:08:52]wFMCommunicate OK [15:08:52]SAM_PROTO_GetFieldsCounters done [15:08:52]requested_item shift.num is exist - process it [15:08:52]requested_item shift.opened is exist - process it [15:08:52]req_shift_opened [15:08:52]FM_GetShiftState [15:08:52]SAM_PROTO_GetShiftState [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 13 01 00 [15:08:52]Write to MH i2c: E2 08 00 60 33 80 13 01 00 00 00 00 00 10 [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0E 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0E 00 60 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D0 [15:08:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:08:52]wFMCommunicate OK [15:08:52]SAM_PROTO_GetShiftState done [15:08:52]FM_GetShiftState done [15:08:52]req_shift_opened done [15:08:52]requested_item shift.open_date is exist - process it [15:08:52]req_shift_open_date [15:08:52]req_shift_open_date done [15:08:52]produce_requested_data done [15:08:52]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18670,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:08:52]process_action_free close_receipt [15:08:52]json_value_free [15:08:52]json_value_free done [15:08:52]process_json_proto returns [15:08:52]Send response to host [15:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18670,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:08:52]free response buf [15:08:52]execute_script done [15:08:52]execute_script returns [15:08:52]free content buf [15:08:52]Sock 7.Close socket [15:08:52]Sock 7.Thread stoped [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:54]accept exits with 9 [15:09:54]New connection [15:09:54]New thread 3066666340 created [15:09:54]Thread 3066522980 joined [15:09:54]Waiting for new connection... [15:09:54] Sock 9.Parse request [15:09:54]Sock 9.Check first char [15:09:54]Sock 9.First char is OK [15:09:54]request: POST /json_proto HTTP/1.0 [15:09:54]Method: POST [15:09:54]URL: /json_proto [15:09:54]Method is POST - this is cgi request [15:09:54]url: /json_proto [15:09:54]query_string will be loaded in cgi processing [15:09:54]execute_cgi json_proto POST (null) [15:09:54]execute_cgi path=json_proto method=POST [15:09:54]POST find Content-Length [15:09:54]Host: 172.17.62.196:8080 [15:09:54]Content-Length: 1177 [15:09:54]Content-Type: application/json [15:09:54] [15:09:54]POST finish read [15:09:54]Found Content-Length = 1177 [15:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16595", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:54]execute_script... [15:09:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16595", "tax_sys" : 0, "items" : [ { "code": "4607015232547", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0445\u0430\u043B\u0432\u043E\u0439 200\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:54]POST & json_proto [15:09:54]process_json_proto [15:09:54]json parsed OK: [15:09:54]protocol is kg_v1.0 [15:09:54]action value=close_receipt [15:09:54]process_action close_receipt [15:09:54]cmd_close_receipt [15:09:54]MH_GetDate [15:09:54]Write to MH i2c: F0 00 00 61 33 83 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: F0 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: F0 09 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: F0 09 00 61 33 00 4A 33 F0 66 CE CC 0E 66 6D [15:09:54]GetLastDocTimeStamp 1727017736 [15:09:54]current date 1727017802 [15:09:54]FM_GetShiftState [15:09:54]SAM_PROTO_GetShiftState [15:09:54]wFMCommunicate request_size=4 [15:09:54]MH_SAM_APDU [15:09:54]CAPDU: 80 13 01 00 [15:09:54]Write to MH i2c: E2 08 00 62 33 80 13 01 00 00 00 00 00 12 [15:09:54]Write i2c OK [15:09:54]MH_I2C_Read... [15:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:54]Read from MH i2c: E2 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0E 00 [15:09:54]MH_I2C_Read... [15:09:54]Read from MH i2c: E2 0E 00 62 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D2 [15:09:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:09:54]wFMCommunicate OK [15:09:54]SAM_PROTO_GetShiftState done [15:09:54]FM_GetShiftState done [15:09:54]opened in 1726963967 [15:09:54]opened+sec_in_day 1727050367 [15:09:54]quantity*price = 9500 [15:09:54]sum+1 = 9501 [15:09:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 67 22.09.2024 15:10 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18671 ФПД: 109997877338094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151002&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18671&fm=109997877338094&tin=02508201610067®Number=0000000000152968&sum=21500 0 [15:09:55]StoreToDocumentArchive [15:09:55]shift 180 fd 18671 [15:09:55]save to /storage/0180/doc_00018671 [15:09:55]save last doc name /storage/0180/doc_00018671 to /storage/kkm_last_doc_name [15:09:55]save OK [15:09:55]Clear old archive folders... [15:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=488 [15:09:55]tlvbuf is B6E94420 [15:09:55]SAM_PROTO_ClearQueue [15:09:55]wFMCommunicate request_size=4 [15:09:55]MH_SAM_APDU [15:09:55]CAPDU: 80 09 00 00 [15:09:55]Write to MH i2c: E2 08 00 6F 33 80 09 00 00 00 00 00 00 14 [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:55]Read from MH i2c: E2 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: E2 03 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: E2 03 00 6F 33 00 90 00 16 [15:09:55]RAPDU: 90 00 [15:09:55]wFMCommunicate OK [15:09:55]SAM_PROTO_ClearQueue done [15:09:55]KKMCreateOFDPacket [15:09:55]OFDProtocolAddRootSTLVToBuf [15:09:55]FM_MakeSignedData [15:09:55]FM_MakeSignedData [15:09:55]SAM_PROTO_SignData [15:09:55]wFMCommunicate request_size=4 [15:09:55]MH_SAM_APDU [15:09:55]CAPDU: 80 0D 01 02 [15:09:55]Write to MH i2c: E2 08 00 70 33 80 0D 01 02 00 00 00 00 1C [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:55]Read from MH i2c: E2 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: E2 03 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: E2 03 00 70 33 00 90 00 17 [15:09:55]RAPDU: 90 00 [15:09:55]wFMCommunicate OK [15:09:55]wFMCommunicate request_size=255 [15:09:55]MH_SAM_APDU [15:09:55]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 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 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 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 37 30 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 [15:09:56]Write to MH i2c: E2 02 01 71 33 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 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 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 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 37 30 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 00 00 1B [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 03 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 03 00 71 33 00 90 00 18 [15:09:56]RAPDU: 90 00 [15:09:56]wFMCommunicate OK [15:09:56]wFMCommunicate request_size=247 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 0D 02 02 F2 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 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 43 00 00 00 F4 03 04 00 4A 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EF 48 00 00 35 04 06 00 64 0A E0 67 9F EE [15:09:56]Write to MH i2c: E2 FA 00 72 33 80 0D 02 02 F2 00 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 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 43 00 00 00 F4 03 04 00 4A 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EF 48 00 00 35 04 06 00 64 0A E0 67 9F EE 00 00 BB [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]OFD Sender: No OFD packet to send [15:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 03 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 03 00 72 33 00 90 00 19 [15:09:56]RAPDU: 90 00 [15:09:56]wFMCommunicate OK [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 0D 03 02 [15:09:56]Write to MH i2c: E2 08 00 73 33 80 0D 03 02 00 00 00 00 21 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0B 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 0B 00 73 33 00 34 DC B6 1D D6 68 AE A2 90 00 93 [15:09:56]RAPDU: 34 DC B6 1D D6 68 AE A2 90 00 [15:09:56]wFMCommunicate OK [15:09:56]SAM_PROTO_SignData done [15:09:56]FM_MakeSignedData done [15:09:56]CreateOFDProtocolMessage [15:09:56]wFMCommunicate request_size=4 [15:09:56]MH_SAM_APDU [15:09:56]CAPDU: 80 11 00 00 [15:09:56]Write to MH i2c: E2 08 00 74 33 80 11 00 00 00 00 00 00 21 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:56]Read from MH i2c: E2 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: E2 17 00 74 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7A [15:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:09:56]wFMCommunicate OK [15:09:56]CreateOFDProtocolMessage done [15:09:56]OFDSenderStorePacket 18671 [15:09:56]StoreOFDPacket docnum=18671 [15:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 FC 01 00 00 DB 0D F4 01 36 60 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 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 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 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 37 30 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 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 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 43 00 00 00 F4 03 04 00 4A 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EF 48 00 00 35 04 06 00 64 0A E0 67 9F EE 34 DC B6 1D D6 68 AE A2 [15:09:56]CheckFolder [15:09:56]dirname=/storage/ofd_packets [15:09:56]CheckFolder done [15:09:56]ProducePacketName [15:09:56]name=ofd_packets/00018671 [15:09:56]NVStorageSaveData ofd_packets/00018671 [15:09:56]File name is /storage/ofd_packets/00018671 [15:09:56]Write 538 bytes [15:09:56]NVStorageSaveData done [15:09:56]OFDSenderStorePacket done [15:09:56]KKMCreateOFDPacket done [15:09:56]NVStorageSaveData kkm_last_timestamp [15:09:56]File name is /storage/kkm_last_timestamp [15:09:56]Write 4 bytes [15:09:56]NVStorageSaveData done [15:09:56]ExternCall_PrintAddStr [15:09:56]wPrintStart [15:09:56]Write to MH i2c: 01 00 00 75 33 A8 [15:09:56]Write i2c OK [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: 01 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: 01 07 00 [15:09:56]MH_I2C_Read... [15:09:56]Read from MH i2c: 01 07 00 75 33 00 00 00 00 00 FF 0F BD [15:09:56]RasterBufferAndPrint [15:09:56]line Счет N : (3)16595 [15:09:56]line ИНН: 02508201610067 [15:09:56]line Контрольно-Кассовый Чек [15:09:56]line ПРОДАЖА [15:09:56]line Товар: 4607015232547 [15:09:56]line Вафли Яшкино с халвой 200г [15:09:56]line 1.000 * 95.00 [15:09:56]line = 95.00 [15:09:56]line НДС 12% НСП 1% [15:09:56]line > о реализуемом товаре [15:09:56]line Товар: 4630007400358 [15:09:56]line Семечки ДЖИНН 70г [15:09:56]line 1.000 * 70.00 [15:09:56]line = 70.00 [15:09:56]line НДС 12% НСП 1% [15:09:56]line > о реализуемом товаре [15:09:56]line Товар: 4700000160358 [15:09:56]line Вода Легенда 1л [15:09:56]line 1.000 * 50.00 [15:09:56]line = 50.00 [15:09:56]line НДС 12% НСП 1% [15:09:56]line > о реализуемом товаре [15:09:56]line ИТОГО: 215.00 [15:09:56]line НСП 1% : 1.90 [15:09:56]line НДС 12% : 22.83 [15:09:56]line Наличными: 215.00 [15:09:56]line Безнал.: 0.00 [15:09:56]line Место: АЗС № 176 "Партнер Нефть" [15:09:56]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:09:56]line СНО: Общий режим [15:09:56]line Чек 67 22.09.2024 15:10 [15:09:56]line Смена: 180 ФФД: 1.0 [15:09:56]line ЗНМ: 0300000010 [15:09:56]line РНМ: 0000000000152968 [15:09:56]line Версия ККМ: v1.0 [15:09:56]line ФМ: 0000000000959456 [15:09:56]line ФД: 18671 [15:09:56]line ФПД: 109997877338094 [15:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151002&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18671&fm=109997877338094&tin=02508201610067®Number=0000000000152968&sum=21500 [15:09:56]line 0 [15:09:56]written 0, free lines is 4095 [15:09:56]OFD Sender: Processing packet 18671 [packets to send 7, broken 6] [15:09:56]ProducePacketName [15:09:56]name=ofd_packets/00018671 [15:09:56]OFD Sender: To server: pG, [15:09:56]CommunicateWithHost lk.salyk.kg:30040 [15:09:56]ConnectInit lk.salyk.kg [15:09:57]Connected sock=10 [15:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 FC 01 00 00 DB 0D F4 01 36 60 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 34 37 06 04 2D 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B2 D0 BE D0 B9 20 32 30 30 D0 B3 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 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 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 37 30 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 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 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 43 00 00 00 F4 03 04 00 4A 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 EF 48 00 00 35 04 06 00 64 0A E0 67 9F EE 34 DC B6 1D D6 68 AE A2 [15:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F4 2D 47 00 DC 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 39 35 39 34 35 36 10 04 04 00 EF 48 00 00 F4 03 04 00 B1 DC EF 66 B6 04 01 00 00 69 F0 CF B3 2C CF E6 FC [15:09:57]CommunicateWithHost err = 0 [15:09:57]CheckOFDResponse [15:09:57]1017 (14) - 77093643461234 [15:09:57]1041 (16) - 0000000000959456 [15:09:57]1040 (4) - 18671 [15:09:57]1012 (4) - 22.09.2024 09:00 [15:09:57]1206 (1) - 0 [15:09:57]OFD Sender: Remove packet 18671 [15:09:57]ProducePacketName [15:09:57]name=ofd_packets/00018671 [15:09:57]NVStorageDeleteData [15:09:57]Write to MH i2c: 01 00 00 A9 33 DC [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: 01 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: 01 07 00 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: 01 07 00 A9 33 00 00 00 00 00 8C 0C 7B [15:09:57]RasterBufferAndPrint [15:09:57]line [15:09:57]line [15:09:57]line [15:09:57]line [15:09:57]line [15:09:57]written 0, free lines is 3220 [15:09:57]MH_Cut [15:09:57]Write to MH i2c: D1 01 00 B0 33 01 B5 [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: D1 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: D1 01 00 [15:09:57]MH_I2C_Read... [15:09:57]Read from MH i2c: D1 01 00 B0 33 00 B4 [15:09:57]Write to MH i2c: 01 00 00 B1 33 E4 [15:09:57]Write i2c OK [15:09:57]MH_I2C_Read... [15:09:57]OFD Sender: No OFD packet to send [15:09:58]*** Cut start [15:09:58]*** Partial cut [15:09:58]*** CUTSNS_PIN = 1 [15:09:58]*** CUTSNS_PIN = 0 [15:09:58]*** Brake cut motor [15:09:58]Read from MH i2c: 01 [15:09:58]MH_I2C_Read... [15:09:58]*** Stop cut motor [15:09:58]*** Cut end [15:09:58]Read from MH i2c: 01 07 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 B1 33 00 00 00 00 00 FF 0F F9 [15:09:58]process_action close_receipt done [15:09:58]requested_data is exist [15:09:58]produce_requested_data [15:09:58]requested_item fm.sn is exist - process it [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 11 00 00 [15:09:58]Write to MH i2c: E2 08 00 B2 33 80 11 00 00 00 00 00 00 5F [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 B2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B8 [15:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:09:58]wFMCommunicate OK [15:09:58]requested_item fd.num is exist - process it [15:09:58]SAM_PROTO_GetFieldsCounters [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 13 00 00 [15:09:58]Write to MH i2c: E2 08 00 B3 33 80 13 00 00 00 00 00 00 62 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 62 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 62 00 B3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EF 48 00 00 0E 04 04 00 B4 00 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 43 [15:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 EF 48 00 00 0E 04 04 00 B4 00 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:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_GetFieldsCounters done [15:09:58]requested_item shift.num is exist - process it [15:09:58]requested_item shift.opened is exist - process it [15:09:58]req_shift_opened [15:09:58]FM_GetShiftState [15:09:58]SAM_PROTO_GetShiftState [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 13 01 00 [15:09:58]Write to MH i2c: E2 08 00 B4 33 80 13 01 00 00 00 00 00 64 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0E 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0E 00 B4 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 24 [15:09:58]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_GetShiftState done [15:09:58]FM_GetShiftState done [15:09:58]req_shift_opened done [15:09:58]requested_item shift.open_date is exist - process it [15:09:58]req_shift_open_date [15:09:58]req_shift_open_date done [15:09:58]produce_requested_data done [15:09:58]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18671,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:09:58]process_action_free close_receipt [15:09:58]json_value_free [15:09:58]json_value_free done [15:09:58]process_json_proto returns [15:09:58]Send response to host [15:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18671,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:09:58]free response buf [15:09:58]execute_script done [15:09:58]execute_script returns [15:09:58]free content buf [15:09:58]Sock 9.Close socket [15:09:58]Sock 9.Thread stoped [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:16]accept exits with 7 [15:11:16]New connection [15:11:16]New thread 3066522980 created [15:11:16]Thread 3066666340 joined [15:11:16]Waiting for new connection... [15:11:16] Sock 7.Parse request [15:11:16]Sock 7.Check first char [15:11:16]Sock 7.First char is OK [15:11:16]request: POST /json_proto HTTP/1.0 [15:11:16]Method: POST [15:11:16]URL: /json_proto [15:11:16]Method is POST - this is cgi request [15:11:16]url: /json_proto [15:11:16]query_string will be loaded in cgi processing [15:11:16]execute_cgi json_proto POST (null) [15:11:16]execute_cgi path=json_proto method=POST [15:11:16]POST find Content-Length [15:11:16]Host: 172.17.62.196:8080 [15:11:16]Content-Length: 790 [15:11:16]Content-Type: application/json [15:11:16] [15:11:16]POST finish read [15:11:16]Found Content-Length = 790 [15:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16596", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]execute_script... [15:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16596", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:16]POST & json_proto [15:11:16]process_json_proto [15:11:16]json parsed OK: [15:11:16]protocol is kg_v1.0 [15:11:16]action value=close_receipt [15:11:16]process_action close_receipt [15:11:16]cmd_close_receipt [15:11:16]MH_GetDate [15:11:16]Write to MH i2c: F0 00 00 B5 33 D7 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: F0 09 00 B5 33 00 9B 33 F0 66 CE CC 0E 66 12 [15:11:16]GetLastDocTimeStamp 1727017802 [15:11:16]current date 1727017883 [15:11:16]FM_GetShiftState [15:11:16]SAM_PROTO_GetShiftState [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 01 00 [15:11:16]Write to MH i2c: E2 08 00 B6 33 80 13 01 00 00 00 00 00 66 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 B6 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 26 [15:11:16]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_GetShiftState done [15:11:16]FM_GetShiftState done [15:11:16]opened in 1726963967 [15:11:16]opened+sec_in_day 1727050367 [15:11:16]quantity*price = 5000 [15:11:16]sum+1 = 5001 [15:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 68 22.09.2024 15:11 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18672 ФПД: 161004739773129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151123&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18672&fm=161004739773129&tin=02508201610067®Number=0000000000152968&sum=5000 0 [15:11:17]StoreToDocumentArchive [15:11:17]shift 180 fd 18672 [15:11:17]save to /storage/0180/doc_00018672 [15:11:17]save last doc name /storage/0180/doc_00018672 to /storage/kkm_last_doc_name [15:11:17]save OK [15:11:17]Clear old archive folders... [15:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:11:17]tlvbuf is 019B9120 [15:11:17]SAM_PROTO_ClearQueue [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 09 00 00 [15:11:17]Write to MH i2c: E2 08 00 C3 33 80 09 00 00 00 00 00 00 68 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 C3 33 00 90 00 6A [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_ClearQueue done [15:11:17]KKMCreateOFDPacket [15:11:17]OFDProtocolAddRootSTLVToBuf [15:11:17]FM_MakeSignedData [15:11:17]FM_MakeSignedData [15:11:17]SAM_PROTO_SignData [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 01 02 [15:11:17]Write to MH i2c: E2 08 00 C4 33 80 0D 01 02 00 00 00 00 70 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=255 [15:11:17]MH_SAM_APDU [15:11:17]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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [15:11:17]Write to MH i2c: E2 02 01 C5 33 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 AA [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=28 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 F0 48 00 00 35 04 06 00 92 6E D6 52 42 C9 [15:11:17]Write to MH i2c: E2 1F 00 C6 33 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 F0 48 00 00 35 04 06 00 92 6E D6 52 42 C9 00 00 70 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [15:11:17]RAPDU: 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 0D 03 02 [15:11:17]Write to MH i2c: E2 08 00 C7 33 80 0D 03 02 00 00 00 00 75 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0B 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 0B 00 C7 33 00 A6 98 74 91 B9 EB 84 13 90 00 F4 [15:11:17]RAPDU: A6 98 74 91 B9 EB 84 13 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_SignData done [15:11:17]FM_MakeSignedData done [15:11:17]CreateOFDProtocolMessage [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 11 00 00 [15:11:17]Write to MH i2c: E2 08 00 C8 33 80 11 00 00 00 00 00 00 75 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 17 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 17 00 C8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CE [15:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:11:17]wFMCommunicate OK [15:11:17]CreateOFDProtocolMessage done [15:11:17]OFDSenderStorePacket 18672 [15:11:17]StoreOFDPacket docnum=18672 [15:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 5A 46 19 01 B9 D2 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F0 48 00 00 35 04 06 00 92 6E D6 52 42 C9 A6 98 74 91 B9 EB 84 13 [15:11:17]CheckFolder [15:11:17]dirname=/storage/ofd_packets [15:11:17]CheckFolder done [15:11:17]ProducePacketName [15:11:17]name=ofd_packets/00018672 [15:11:17]NVStorageSaveData ofd_packets/00018672 [15:11:17]File name is /storage/ofd_packets/00018672 [15:11:17]Write 319 bytes [15:11:17]NVStorageSaveData done [15:11:17]OFDSenderStorePacket done [15:11:17]KKMCreateOFDPacket done [15:11:17]NVStorageSaveData kkm_last_timestamp [15:11:17]File name is /storage/kkm_last_timestamp [15:11:17]Write 4 bytes [15:11:17]NVStorageSaveData done [15:11:17]ExternCall_PrintAddStr [15:11:17]wPrintStart [15:11:17]Write to MH i2c: 01 00 00 C9 33 FC [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: 01 07 00 C9 33 00 00 00 00 00 FF 0F 11 [15:11:17]RasterBufferAndPrint [15:11:17]line Счет N : (3)16596 [15:11:17]line ИНН: 02508201610067 [15:11:17]line Контрольно-Кассовый Чек [15:11:17]line ПРОДАЖА [15:11:17]line Товар: 4700000160358 [15:11:17]line Вода Легенда 1л [15:11:17]line 1.000 * 50.00 [15:11:17]line = 50.00 [15:11:17]line НДС 12% НСП 1% [15:11:17]line > о реализуемом товаре [15:11:17]line ИТОГО: 50.00 [15:11:17]line НСП 1% : 0.44 [15:11:17]line НДС 12% : 5.31 [15:11:17]line Наличными: 0.00 [15:11:17]line Безнал.: 50.00 [15:11:17]line Место: АЗС № 176 "Партнер Нефть" [15:11:17]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:11:17]line СНО: Общий режим [15:11:17]line Чек 68 22.09.2024 15:11 [15:11:17]line Смена: 180 ФФД: 1.0 [15:11:17]line ЗНМ: 0300000010 [15:11:17]line РНМ: 0000000000152968 [15:11:17]line Версия ККМ: v1.0 [15:11:17]line Платежная система: O! деньги [15:11:17]line ФМ: 0000000000959456 [15:11:17]line ФД: 18672 [15:11:17]line ФПД: 161004739773129 [15:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151123&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18672&fm=161004739773129&tin=02508201610067®Number=0000000000152968&sum=5000 [15:11:18]line 0 [15:11:18]OFD Sender: Processing packet 18672 [packets to send 7, broken 6] [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00018672 [15:11:18]OFD Sender: To server: pG, [15:11:18]CommunicateWithHost lk.salyk.kg:30040 [15:11:18]ConnectInit lk.salyk.kg [15:11:18]written 0, free lines is 4095 [15:11:18]Connected sock=9 [15:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 5A 46 19 01 B9 D2 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9B 33 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F0 48 00 00 35 04 06 00 92 6E D6 52 42 C9 A6 98 74 91 B9 EB 84 13 [15:11:18]Write to MH i2c: 01 00 00 F3 33 26 [15:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EF FC 47 00 33 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F0 48 00 00 F4 03 04 00 03 DD EF 66 B6 04 01 00 00 BC 1D 58 62 0A A6 C1 AE [15:11:18]CommunicateWithHost err = 0 [15:11:18]CheckOFDResponse [15:11:18]1017 (14) - 77093643461234 [15:11:18]1041 (16) - 0000000000959456 [15:11:18]1040 (4) - 18672 [15:11:18]1012 (4) - 22.09.2024 09:01 [15:11:18]1206 (1) - 0 [15:11:18]OFD Sender: Remove packet 18672 [15:11:18]ProducePacketName [15:11:18]name=ofd_packets/00018672 [15:11:18]NVStorageDeleteData [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: 01 07 00 F3 33 00 00 00 00 00 18 0D 52 [15:11:18]RasterBufferAndPrint [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]line [15:11:18]written 0, free lines is 3378 [15:11:18]MH_Cut [15:11:18]Write to MH i2c: D1 01 00 FA 33 01 FF [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 01 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: D1 01 00 FA 33 00 FE [15:11:18]Write to MH i2c: 01 00 00 FB 33 2E [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:19]OFD Sender: No OFD packet to send [15:11:19]*** Cut start [15:11:19]*** Partial cut [15:11:19]*** CUTSNS_PIN = 1 [15:11:19]*** CUTSNS_PIN = 0 [15:11:19]*** Brake cut motor [15:11:19]Read from MH i2c: 01 [15:11:19]MH_I2C_Read... [15:11:19]*** Stop cut motor [15:11:19]*** Cut end [15:11:19]Read from MH i2c: 01 07 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: 01 07 00 FB 33 00 00 00 00 00 FF 0F 43 [15:11:19]process_action close_receipt done [15:11:19]requested_data is exist [15:11:19]produce_requested_data [15:11:19]requested_item fm.sn is exist - process it [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 11 00 00 [15:11:19]Write to MH i2c: E2 08 00 FC 33 80 11 00 00 00 00 00 00 A9 [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 17 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 17 00 FC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 02 [15:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:11:19]wFMCommunicate OK [15:11:19]requested_item fd.num is exist - process it [15:11:19]SAM_PROTO_GetFieldsCounters [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 13 00 00 [15:11:19]Write to MH i2c: E2 08 00 FD 33 80 13 00 00 00 00 00 00 AC [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 62 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 62 00 FD 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F0 48 00 00 0E 04 04 00 B4 00 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 91 [15:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F0 48 00 00 0E 04 04 00 B4 00 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:11:19]wFMCommunicate OK [15:11:19]SAM_PROTO_GetFieldsCounters done [15:11:19]requested_item shift.num is exist - process it [15:11:19]requested_item shift.opened is exist - process it [15:11:19]req_shift_opened [15:11:19]FM_GetShiftState [15:11:19]SAM_PROTO_GetShiftState [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 13 01 00 [15:11:19]Write to MH i2c: E2 08 00 FE 33 80 13 01 00 00 00 00 00 AE [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:20]Read from MH i2c: E2 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 [15:11:20]MH_I2C_Read... [15:11:20]Read from MH i2c: E2 0E 00 FE 33 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 6E [15:11:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:11:20]wFMCommunicate OK [15:11:20]SAM_PROTO_GetShiftState done [15:11:20]FM_GetShiftState done [15:11:20]req_shift_opened done [15:11:20]requested_item shift.open_date is exist - process it [15:11:20]req_shift_open_date [15:11:20]req_shift_open_date done [15:11:20]produce_requested_data done [15:11:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18672,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:11:20]process_action_free close_receipt [15:11:20]json_value_free [15:11:20]json_value_free done [15:11:20]process_json_proto returns [15:11:20]Send response to host [15:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18672,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:11:20]free response buf [15:11:20]execute_script done [15:11:20]execute_script returns [15:11:20]free content buf [15:11:20]Sock 7.Close socket [15:11:20]Sock 7.Thread stoped [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:22]accept exits with 10 [15:19:22]New connection [15:19:22]New thread 3066666340 created [15:19:22]Thread 3066522980 joined [15:19:22]Waiting for new connection... [15:19:22] Sock 10.Parse request [15:19:22]Sock 10.Check first char [15:19:22]Sock 10.First char is OK [15:19:22]request: POST /json_proto HTTP/1.0 [15:19:22]Method: POST [15:19:22]URL: /json_proto [15:19:22]Method is POST - this is cgi request [15:19:22]url: /json_proto [15:19:22]query_string will be loaded in cgi processing [15:19:22]execute_cgi json_proto POST (null) [15:19:22]execute_cgi path=json_proto method=POST [15:19:22]POST find Content-Length [15:19:22]Host: 172.17.62.196:8080 [15:19:22]Content-Length: 861 [15:19:22]Content-Type: application/json [15:19:22] [15:19:22]POST finish read [15:19:22]Found Content-Length = 861 [15:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16597", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:22]execute_script... [15:19:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16597", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:22]POST & json_proto [15:19:22]process_json_proto [15:19:22]json parsed OK: [15:19:22]protocol is kg_v1.0 [15:19:22]action value=close_receipt [15:19:22]process_action close_receipt [15:19:22]cmd_close_receipt [15:19:22]MH_GetDate [15:19:22]Write to MH i2c: F0 00 00 FF 33 21 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 09 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 09 00 FF 33 00 82 35 F0 66 CE CC 0E 66 45 [15:19:22]GetLastDocTimeStamp 1727017883 [15:19:22]current date 1727018370 [15:19:22]FM_GetShiftState [15:19:22]SAM_PROTO_GetShiftState [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 13 01 00 [15:19:22]Write to MH i2c: E2 08 00 00 34 80 13 01 00 00 00 00 00 B1 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0E 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0E 00 00 34 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 71 [15:19:22]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:19:22]wFMCommunicate OK [15:19:22]SAM_PROTO_GetShiftState done [15:19:22]FM_GetShiftState done [15:19:22]opened in 1726963967 [15:19:22]opened+sec_in_day 1727050367 [15:19:22]quantity*price = 10000 [15:19:22]sum+1 = 10001 [15:19:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 14.00 НСП 1% : 0.12 НДС 12% : 1.49 Наличными: 14.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 70 22.09.2024 15:21 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18674 ФПД: 87658100420211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152157&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18674&fm=87658100420211&tin=02508201610067®Number=0000000000152968&sum=1400 0 [15:21:57]StoreToDocumentArchive [15:21:57]shift 180 fd 18674 [15:21:57]save to /storage/0180/doc_00018674 [15:21:57]save last doc name /storage/0180/doc_00018674 to /storage/kkm_last_doc_name [15:21:57]save OK [15:21:57]Clear old archive folders... [15:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:21:57]tlvbuf is 00225550 [15:21:57]SAM_PROTO_ClearQueue [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 09 00 00 [15:21:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_ClearQueue done [15:21:57]KKMCreateOFDPacket [15:21:57]OFDProtocolAddRootSTLVToBuf [15:21:57]FM_MakeSignedData [15:21:57]FM_MakeSignedData [15:21:57]SAM_PROTO_SignData [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 0D 01 02 [15:21:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:21:57]RAPDU: 90 00 [15:21:57]wFMCommunicate OK [15:21:57]wFMCommunicate request_size=255 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 78 05 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 15 36 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [15:21:57]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 78 05 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 15 36 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 F3 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 03 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:21:58]RAPDU: 90 00 [15:21:58]wFMCommunicate OK [15:21:58]wFMCommunicate request_size=46 [15:21:58]MH_SAM_APDU [15:21:58]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F2 48 00 00 35 04 06 00 4F B9 7D EF EE 73 [15:21:58]Write to MH i2c: E2 31 00 2E 00 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F2 48 00 00 35 04 06 00 4F B9 7D EF EE 73 00 00 52 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 03 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:21:58]RAPDU: 90 00 [15:21:58]wFMCommunicate OK [15:21:58]wFMCommunicate request_size=4 [15:21:58]MH_SAM_APDU [15:21:58]CAPDU: 80 0D 03 02 [15:21:58]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 0B 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 0B 00 2F 00 00 E5 7C 51 04 B8 95 76 0D 90 00 31 [15:21:58]RAPDU: E5 7C 51 04 B8 95 76 0D 90 00 [15:21:58]wFMCommunicate OK [15:21:58]SAM_PROTO_SignData done [15:21:58]FM_MakeSignedData done [15:21:58]CreateOFDProtocolMessage [15:21:58]wFMCommunicate request_size=4 [15:21:58]MH_SAM_APDU [15:21:58]CAPDU: 80 11 00 00 [15:21:58]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 17 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 03 [15:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:21:58]wFMCommunicate OK [15:21:58]CreateOFDProtocolMessage done [15:21:58]OFDSenderStorePacket 18674 [15:21:58]StoreOFDPacket docnum=18674 [15:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 94 18 2B 01 94 65 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 78 05 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 15 36 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F2 48 00 00 35 04 06 00 4F B9 7D EF EE 73 E5 7C 51 04 B8 95 76 0D [15:21:58]CheckFolder [15:21:58]dirname=/storage/ofd_packets [15:21:58]CheckFolder done [15:21:58]ProducePacketName [15:21:58]name=ofd_packets/00018674 [15:21:58]NVStorageSaveData ofd_packets/00018674 [15:21:58]File name is /storage/ofd_packets/00018674 [15:21:58]Write 337 bytes [15:21:58]NVStorageSaveData done [15:21:58]OFDSenderStorePacket done [15:21:58]KKMCreateOFDPacket done [15:21:58]NVStorageSaveData kkm_last_timestamp [15:21:58]File name is /storage/kkm_last_timestamp [15:21:58]Write 4 bytes [15:21:58]NVStorageSaveData done [15:21:58]ExternCall_PrintAddStr [15:21:58]wPrintStart [15:21:58]Write to MH i2c: 01 00 00 31 00 31 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 07 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:21:58]RasterBufferAndPrint [15:21:58]line Счет N : (3)16598 [15:21:58]line ИНН: 02508201610067 [15:21:58]line Контрольно-Кассовый Чек [15:21:58]line ПРОДАЖА [15:21:58]line Товар: 2000053020015 [15:21:58]line Бумажные стаканы 250мл 1шт [15:21:58]line 2.000 * 7.00 [15:21:58]line = 14.00 [15:21:58]line НДС 12% НСП 1% [15:21:58]line > о реализуемом товаре [15:21:58]line ИТОГО: 14.00 [15:21:58]line НСП 1% : 0.12 [15:21:58]line НДС 12% : 1.49 [15:21:58]line Наличными: 14.00 [15:21:58]line Безнал.: 0.00 [15:21:58]line Место: АЗС № 176 "Партнер Нефть" [15:21:58]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:21:58]line СНО: Общий режим [15:21:58]line Чек 70 22.09.2024 15:21 [15:21:58]line Смена: 180 ФФД: 1.0 [15:21:58]line ЗНМ: 0300000010 [15:21:58]line РНМ: 0000000000152968 [15:21:58]line Версия ККМ: v1.0 [15:21:58]line ФМ: 0000000000959456 [15:21:58]line ФД: 18674 [15:21:58]line ФПД: 87658100420211 [15:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152157&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18674&fm=87658100420211&tin=02508201610067®Number=0000000000152968&sum=1400 [15:21:58]line 0 [15:21:58]OFD Sender: Processing packet 18674 [packets to send 7, broken 6] [15:21:58]ProducePacketName [15:21:58]name=ofd_packets/00018674 [15:21:58]OFD Sender: To server: pG, [15:21:58]CommunicateWithHost lk.salyk.kg:30040 [15:21:58]ConnectInit lk.salyk.kg [15:21:58]written 0, free lines is 4095 [15:21:58]Connected sock=11 [15:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 94 18 2B 01 94 65 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 00 00 00 00 00 07 04 06 00 78 05 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 15 36 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F2 48 00 00 35 04 06 00 4F B9 7D EF EE 73 E5 7C 51 04 B8 95 76 0D [15:21:59]Write to MH i2c: 01 00 00 5A 00 5A [15:21:59]Write i2c OK [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: 01 [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: 01 07 00 [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 FC 0C 69 [15:21:59]RasterBufferAndPrint [15:21:59]line [15:21:59]line [15:21:59]line [15:21:59]line [15:21:59]line [15:21:59]written 0, free lines is 3348 [15:21:59]MH_Cut [15:21:59]Write to MH i2c: D1 01 00 61 00 01 33 [15:21:59]Write i2c OK [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: D1 [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: D1 01 00 [15:21:59]MH_I2C_Read... [15:21:59]Read from MH i2c: D1 01 00 61 00 00 32 [15:21:59]Write to MH i2c: 01 00 00 62 00 62 [15:21:59]Write i2c OK [15:21:59]MH_I2C_Read... [15:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 44 29 47 00 C7 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F2 48 00 00 F4 03 04 00 7C DF EF 66 B6 04 01 00 00 10 33 51 89 59 77 0D 47 [15:21:59]CommunicateWithHost err = 0 [15:21:59]CheckOFDResponse [15:21:59]1017 (14) - 77093643461234 [15:21:59]1041 (16) - 0000000000959456 [15:21:59]1040 (4) - 18674 [15:21:59]1012 (4) - 22.09.2024 09:12 [15:21:59]1206 (1) - 0 [15:21:59]OFD Sender: Remove packet 18674 [15:21:59]ProducePacketName [15:21:59]name=ofd_packets/00018674 [15:21:59]NVStorageDeleteData [15:21:59]*** Cut start [15:21:59]*** Partial cut [15:21:59]*** CUTSNS_PIN = 1 [15:21:59]*** CUTSNS_PIN = 0 [15:21:59]OFD Sender: No OFD packet to send [15:21:59]*** Brake cut motor [15:22:00]Read from MH i2c: 01 [15:22:00]MH_I2C_Read... [15:22:00]*** Stop cut motor [15:22:00]*** Cut end [15:22:00]Read from MH i2c: 01 07 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [15:22:00]process_action close_receipt done [15:22:00]requested_data is exist [15:22:00]produce_requested_data [15:22:00]requested_item fm.sn is exist - process it [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 11 00 00 [15:22:00]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 17 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 36 [15:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:22:00]wFMCommunicate OK [15:22:00]requested_item fd.num is exist - process it [15:22:00]SAM_PROTO_GetFieldsCounters [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 13 00 00 [15:22:00]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 62 00 [15:22:00]MH_I2C_Read... [15:22:00]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 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F2 48 00 00 0E 04 04 00 B4 00 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 CD [15:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F2 48 00 00 0E 04 04 00 B4 00 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:22:00]wFMCommunicate OK [15:22:00]SAM_PROTO_GetFieldsCounters done [15:22:00]requested_item shift.num is exist - process it [15:22:00]requested_item shift.opened is exist - process it [15:22:00]req_shift_opened [15:22:00]FM_GetShiftState [15:22:00]SAM_PROTO_GetShiftState [15:22:00]wFMCommunicate request_size=4 [15:22:00]MH_SAM_APDU [15:22:00]CAPDU: 80 13 01 00 [15:22:00]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [15:22:00]Write i2c OK [15:22:00]MH_I2C_Read... [15:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:00]Read from MH i2c: E2 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 [15:22:00]MH_I2C_Read... [15:22:00]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 A2 [15:22:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:22:00]wFMCommunicate OK [15:22:00]SAM_PROTO_GetShiftState done [15:22:00]FM_GetShiftState done [15:22:00]req_shift_opened done [15:22:00]requested_item shift.open_date is exist - process it [15:22:00]req_shift_open_date [15:22:00]req_shift_open_date done [15:22:00]produce_requested_data done [15:22:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18674,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:22:00]process_action_free close_receipt [15:22:00]json_value_free [15:22:00]json_value_free done [15:22:00]process_json_proto returns [15:22:00]Send response to host [15:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18674,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:22:00]free response buf [15:22:00]execute_script done [15:22:00]execute_script returns [15:22:00]free content buf [15:22:00]Sock 8.Close socket [15:22:00]Sock 8.Thread stoped [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:27]accept exits with 7 [15:32:27]New connection [15:32:27]New thread 3067129188 created [15:32:27]Thread 3067272548 joined [15:32:27]Waiting for new connection... [15:32:27] Sock 7.Parse request [15:32:27]Sock 7.Check first char [15:32:27]Sock 7.First char is OK [15:32:27]request: POST /json_proto HTTP/1.0 [15:32:27]Method: POST [15:32:27]URL: /json_proto [15:32:27]Method is POST - this is cgi request [15:32:27]url: /json_proto [15:32:27]query_string will be loaded in cgi processing [15:32:27]execute_cgi json_proto POST (null) [15:32:27]execute_cgi path=json_proto method=POST [15:32:27]POST find Content-Length [15:32:27]Host: 172.17.62.196:8080 [15:32:27]Content-Length: 922 [15:32:27]Content-Type: application/json [15:32:27] [15:32:27]POST finish read [15:32:27]Found Content-Length = 922 [15:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16599", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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" ] } } [15:32:27]execute_script... [15:32:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16599", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.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" ] } } [15:32:27]POST & json_proto [15:32:27]process_json_proto [15:32:27]json parsed OK: [15:32:27]protocol is kg_v1.0 [15:32:27]action value=close_receipt [15:32:27]process_action close_receipt [15:32:27]cmd_close_receipt [15:32:27]MH_GetDate [15:32:27]Write to MH i2c: F0 00 00 66 00 55 [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: F0 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: F0 09 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: F0 09 00 66 00 00 8C 38 F0 66 CE CC 0E 66 86 [15:32:27]GetLastDocTimeStamp 1727018517 [15:32:27]current date 1727019148 [15:32:27]FM_GetShiftState [15:32:27]SAM_PROTO_GetShiftState [15:32:27]wFMCommunicate request_size=4 [15:32:27]MH_SAM_APDU [15:32:27]CAPDU: 80 13 01 00 [15:32:27]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:32:27]Write i2c OK [15:32:27]MH_I2C_Read... [15:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:27]Read from MH i2c: E2 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 0E 00 [15:32:27]MH_I2C_Read... [15:32:27]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 A4 [15:32:27]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:32:27]wFMCommunicate OK [15:32:27]SAM_PROTO_GetShiftState done [15:32:27]FM_GetShiftState done [15:32:27]opened in 1726963967 [15:32:27]opened+sec_in_day 1727050367 [15:32:27]quantity*price = 13000 [15:32:27]sum+1 = 13001 [15:32:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47803008 Сигареты Winston XS Blue 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 418.00 НСП 1% : 3.70 НДС 12% : 44.38 Наличными: 418.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 71 22.09.2024 15:32 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18675 ФПД: 57985315941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153228&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18675&fm=57985315941&tin=02508201610067®Number=0000000000152968&sum=41800 0 [15:32:28]StoreToDocumentArchive [15:32:28]shift 180 fd 18675 [15:32:28]save to /storage/0180/doc_00018675 [15:32:28]save last doc name /storage/0180/doc_00018675 to /storage/kkm_last_doc_name [15:32:28]save OK [15:32:28]Clear old archive folders... [15:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=394 [15:32:28]tlvbuf is 001C4D80 [15:32:28]SAM_PROTO_ClearQueue [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 09 00 00 [15:32:28]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [15:32:28]RAPDU: 90 00 [15:32:28]wFMCommunicate OK [15:32:28]SAM_PROTO_ClearQueue done [15:32:28]KKMCreateOFDPacket [15:32:28]OFDProtocolAddRootSTLVToBuf [15:32:28]FM_MakeSignedData [15:32:28]FM_MakeSignedData [15:32:28]SAM_PROTO_SignData [15:32:28]wFMCommunicate request_size=4 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 0D 01 02 [15:32:28]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:32:28]RAPDU: 90 00 [15:32:28]wFMCommunicate OK [15:32:28]wFMCommunicate request_size=255 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 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 40 38 00 00 00 00 13 04 06 00 80 70 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 [15:32:28]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 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 40 38 00 00 00 00 13 04 06 00 80 70 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 00 E3 [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:28]Read from MH i2c: E2 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 [15:32:28]MH_I2C_Read... [15:32:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:32:28]RAPDU: 90 00 [15:32:28]wFMCommunicate OK [15:32:28]wFMCommunicate request_size=153 [15:32:28]MH_SAM_APDU [15:32:28]CAPDU: 80 0D 02 02 94 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 56 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 47 00 00 00 F4 03 04 00 8C 38 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F3 48 00 00 35 04 06 00 00 0D 80 31 B4 65 [15:32:28]Write to MH i2c: E2 9C 00 77 00 80 0D 02 02 94 00 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 56 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 47 00 00 00 F4 03 04 00 8C 38 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F3 48 00 00 35 04 06 00 00 0D 80 31 B4 65 00 00 39 [15:32:28]Write i2c OK [15:32:28]MH_I2C_Read... [15:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:29]Read from MH i2c: E2 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 03 00 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:32:29]RAPDU: 90 00 [15:32:29]wFMCommunicate OK [15:32:29]wFMCommunicate request_size=4 [15:32:29]MH_SAM_APDU [15:32:29]CAPDU: 80 0D 03 02 [15:32:29]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [15:32:29]Write i2c OK [15:32:29]MH_I2C_Read... [15:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:29]Read from MH i2c: E2 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 0B 00 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 0B 00 78 00 00 56 34 75 91 1D 44 09 82 90 00 70 [15:32:29]RAPDU: 56 34 75 91 1D 44 09 82 90 00 [15:32:29]wFMCommunicate OK [15:32:29]SAM_PROTO_SignData done [15:32:29]FM_MakeSignedData done [15:32:29]CreateOFDProtocolMessage [15:32:29]wFMCommunicate request_size=4 [15:32:29]MH_SAM_APDU [15:32:29]CAPDU: 80 11 00 00 [15:32:29]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [15:32:29]Write i2c OK [15:32:29]MH_I2C_Read... [15:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:29]Read from MH i2c: E2 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 17 00 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4C [15:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:32:29]wFMCommunicate OK [15:32:29]CreateOFDProtocolMessage done [15:32:29]OFDSenderStorePacket 18675 [15:32:29]StoreOFDPacket docnum=18675 [15:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9E 01 00 00 57 94 96 01 68 0D 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 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 40 38 00 00 00 00 13 04 06 00 80 70 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 56 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 47 00 00 00 F4 03 04 00 8C 38 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F3 48 00 00 35 04 06 00 00 0D 80 31 B4 65 56 34 75 91 1D 44 09 82 [15:32:29]CheckFolder [15:32:29]dirname=/storage/ofd_packets [15:32:29]CheckFolder done [15:32:29]ProducePacketName [15:32:29]name=ofd_packets/00018675 [15:32:29]NVStorageSaveData ofd_packets/00018675 [15:32:29]File name is /storage/ofd_packets/00018675 [15:32:29]Write 444 bytes [15:32:29]NVStorageSaveData done [15:32:29]OFDSenderStorePacket done [15:32:29]KKMCreateOFDPacket done [15:32:29]NVStorageSaveData kkm_last_timestamp [15:32:29]File name is /storage/kkm_last_timestamp [15:32:29]Write 4 bytes [15:32:29]NVStorageSaveData done [15:32:29]ExternCall_PrintAddStr [15:32:29]wPrintStart [15:32:29]Write to MH i2c: 01 00 00 7A 00 7A [15:32:29]Write i2c OK [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: 01 [15:32:29]MH_I2C_Read... [15:32:29]Read from MH i2c: 01 07 00 [15:32:29]MH_I2C_Read... [15:32:29]OFD Sender: Processing packet 18675 [packets to send 7, broken 6] [15:32:29]ProducePacketName [15:32:29]name=ofd_packets/00018675 [15:32:29]Read from MH i2c: 01 OFD Sender: To server: pG, [15:32:29]07 CommunicateWithHost lk.salyk.kg:30040 [15:32:29]00 ConnectInit lk.salyk.kg [15:32:29]7A 00 00 00 00 00 00 FF 0F 8F [15:32:29]RasterBufferAndPrint [15:32:29]line Счет N : (3)16599 [15:32:29]line ИНН: 02508201610067 [15:32:29]line Контрольно-Кассовый Чек [15:32:29]line ПРОДАЖА [15:32:29]line Товар: 4870002325441 [15:32:29]line Вода ASU пит н.газ лимон ПЭТ 0,5л [15:32:29]line 2.000 * 65.00 [15:32:29]line = 130.00 [15:32:29]line НДС 12% НСП 1% [15:32:29]line > о реализуемом товаре [15:32:29]line Товар: 47803008 [15:32:29]line Сигареты Winston XS Blue [15:32:29]line 2.000 * 144.00 [15:32:29]line = 288.00 [15:32:29]line НДС 12% НСП 1% [15:32:29]line > о реализуемом товаре [15:32:29]line ИТОГО: 418.00 [15:32:29]line НСП 1% : 3.70 [15:32:29]line НДС 12% : 44.38 [15:32:29]line Наличными: 418.00 [15:32:29]line Безнал.: 0.00 [15:32:29]line Место: АЗС № 176 "Партнер Нефть" [15:32:29]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:32:29]line СНО: Общий режим [15:32:29]line Чек 71 22.09.2024 15:32 [15:32:29]line Смена: 180 ФФД: 1.0 [15:32:29]line ЗНМ: 0300000010 [15:32:29]line РНМ: 0000000000152968 [15:32:29]line Версия ККМ: v1.0 [15:32:29]line ФМ: 0000000000959456 [15:32:29]line ФД: 18675 [15:32:29]line ФПД: 57985315941 [15:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153228&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18675&fm=57985315941&tin=02508201610067®Number=0000000000152968&sum=41800 [15:32:29]line 0 [15:32:29]written 0, free lines is 4095 [15:32:29]Connected sock=10 [15:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9E 01 00 00 57 94 96 01 68 0D 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 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 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 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 40 38 00 00 00 00 13 04 06 00 80 70 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 56 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 47 00 00 00 F4 03 04 00 8C 38 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F3 48 00 00 35 04 06 00 00 0D 80 31 B4 65 56 34 75 91 1D 44 09 82 [15:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6F B5 47 00 8D 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F3 48 00 00 F4 03 04 00 F3 E1 EF 66 B6 04 01 00 00 8E E4 60 03 25 5A 85 35 [15:32:30]CommunicateWithHost err = 0 [15:32:30]CheckOFDResponse [15:32:30]1017 (14) - 77093643461234 [15:32:30]1041 (16) - 0000000000959456 [15:32:30]1040 (4) - 18675 [15:32:30]1012 (4) - 22.09.2024 09:22 [15:32:30]1206 (1) - 0 [15:32:30]OFD Sender: Remove packet 18675 [15:32:30]ProducePacketName [15:32:30]name=ofd_packets/00018675 [15:32:30]NVStorageDeleteData [15:32:30]Write to MH i2c: 01 00 00 A9 00 A9 [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: 01 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: 01 07 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 D8 0C 94 [15:32:30]RasterBufferAndPrint [15:32:30]line [15:32:30]line [15:32:30]line [15:32:30]line [15:32:30]line [15:32:30]written 0, free lines is 3297 [15:32:30]MH_Cut [15:32:30]Write to MH i2c: D1 01 00 B0 00 01 82 [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: D1 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: D1 01 00 [15:32:30]MH_I2C_Read... [15:32:30]Read from MH i2c: D1 01 00 B0 00 00 81 [15:32:30]Write to MH i2c: 01 00 00 B1 00 B1 [15:32:30]Write i2c OK [15:32:30]MH_I2C_Read... [15:32:30]OFD Sender: No OFD packet to send [15:32:30]*** Cut start [15:32:30]*** Partial cut [15:32:30]*** CUTSNS_PIN = 1 [15:32:30]*** CUTSNS_PIN = 0 [15:32:30]*** Brake cut motor [15:32:31]Read from MH i2c: 01 [15:32:31]MH_I2C_Read... [15:32:31]*** Stop cut motor [15:32:31]*** Cut end [15:32:31]Read from MH i2c: 01 07 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [15:32:31]process_action close_receipt done [15:32:31]requested_data is exist [15:32:31]produce_requested_data [15:32:31]requested_item fm.sn is exist - process it [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 11 00 00 [15:32:31]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 17 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 85 [15:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:32:31]wFMCommunicate OK [15:32:31]requested_item fd.num is exist - process it [15:32:31]SAM_PROTO_GetFieldsCounters [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 13 00 00 [15:32:31]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 62 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 62 00 B3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F3 48 00 00 0E 04 04 00 B4 00 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 20 [15:32:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F3 48 00 00 0E 04 04 00 B4 00 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:32:31]wFMCommunicate OK [15:32:31]SAM_PROTO_GetFieldsCounters done [15:32:31]requested_item shift.num is exist - process it [15:32:31]requested_item shift.opened is exist - process it [15:32:31]req_shift_opened [15:32:31]FM_GetShiftState [15:32:31]SAM_PROTO_GetShiftState [15:32:31]wFMCommunicate request_size=4 [15:32:31]MH_SAM_APDU [15:32:31]CAPDU: 80 13 01 00 [15:32:31]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [15:32:31]Write i2c OK [15:32:31]MH_I2C_Read... [15:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:31]Read from MH i2c: E2 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 0E 00 [15:32:31]MH_I2C_Read... [15:32:31]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 F1 [15:32:31]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:32:31]wFMCommunicate OK [15:32:31]SAM_PROTO_GetShiftState done [15:32:31]FM_GetShiftState done [15:32:31]req_shift_opened done [15:32:31]requested_item shift.open_date is exist - process it [15:32:31]req_shift_open_date [15:32:31]req_shift_open_date done [15:32:31]produce_requested_data done [15:32:31]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18675,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:32:31]process_action_free close_receipt [15:32:31]json_value_free [15:32:31]json_value_free done [15:32:31]process_json_proto returns [15:32:31]Send response to host [15:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18675,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:32:31]free response buf [15:32:31]execute_script done [15:32:31]execute_script returns [15:32:31]free content buf [15:32:31]Sock 7.Close socket [15:32:31]Sock 7.Thread stoped [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:37:56]accept exits with 9 [15:37:56]New connection [15:37:56]New thread 3067272548 created [15:37:56]Thread 3067129188 joined [15:37:56]Waiting for new connection... [15:37:56] Sock 9.Parse request [15:37:56]Sock 9.Check first char [15:37:56]Sock 9.First char is OK [15:37:56]request: POST /json_proto HTTP/1.0 [15:37:56]Method: POST [15:37:56]URL: /json_proto [15:37:56]Method is POST - this is cgi request [15:37:56]url: /json_proto [15:37:56]query_string will be loaded in cgi processing [15:37:56]execute_cgi json_proto POST (null) [15:37:56]execute_cgi path=json_proto method=POST [15:37:56]POST find Content-Length [15:37:56]Host: 172.17.62.196:8080 [15:37:56]Content-Length: 619 [15:37:56]Content-Type: application/json [15:37:56] [15:37:56]POST finish read [15:37:56]Found Content-Length = 619 [15:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16600", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:56]execute_script... [15:37: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)16600", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:56]POST & json_proto [15:37:56]process_json_proto [15:37:56]json parsed OK: [15:37:56]protocol is kg_v1.0 [15:37:56]action value=close_receipt [15:37:56]process_action close_receipt [15:37:56]cmd_close_receipt [15:37:56]MH_GetDate [15:37:56]Write to MH i2c: F0 00 00 B5 00 A4 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 09 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 09 00 B5 00 00 D4 39 F0 66 CE CC 0E 66 1E [15:37:56]GetLastDocTimeStamp 1727019148 [15:37:56]current date 1727019476 [15:37:56]FM_GetShiftState [15:37:56]SAM_PROTO_GetShiftState [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 13 01 00 [15:37:56]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0E 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 F3 [15:37:56]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:37:56]wFMCommunicate OK [15:37:56]SAM_PROTO_GetShiftState done [15:37:56]FM_GetShiftState done [15:37:56]opened in 1726963967 [15:37:56]opened+sec_in_day 1727050367 [15:37:56]quantity*price = 13900 [15:37:56]sum+1 = 13901 [15:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 72 22.09.2024 15:37 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18676 ФПД: 176586417244346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153756&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18676&fm=176586417244346&tin=02508201610067®Number=0000000000152968&sum=13900 0 [15:37:57]StoreToDocumentArchive [15:37:57]shift 180 fd 18676 [15:37:57]save to /storage/0180/doc_00018676 [15:37:57]save last doc name /storage/0180/doc_00018676 to /storage/kkm_last_doc_name [15:37:57]save OK [15:37:57]Clear old archive folders... [15:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=272 [15:37:57]tlvbuf is 001F2950 [15:37:57]SAM_PROTO_ClearQueue [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 09 00 00 [15:37:57]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]SAM_PROTO_ClearQueue done [15:37:57]KKMCreateOFDPacket [15:37:57]OFDProtocolAddRootSTLVToBuf [15:37:57]FM_MakeSignedData [15:37:57]FM_MakeSignedData [15:37:57]SAM_PROTO_SignData [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 01 02 [15:37:57]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]wFMCommunicate request_size=255 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 48 00 00 00 F4 03 04 00 D4 39 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 [15:37:57]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 48 00 00 00 F4 03 04 00 D4 39 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D3 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]wFMCommunicate request_size=31 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 34 35 36 10 04 04 00 F4 48 00 00 35 04 06 00 A0 9A BA AC 08 BA [15:37:57]Write to MH i2c: E2 22 00 C6 00 80 0D 02 02 1A 00 30 30 39 35 39 34 35 36 10 04 04 00 F4 48 00 00 35 04 06 00 A0 9A BA AC 08 BA 00 00 0F [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 03 02 [15:37:57]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 0B 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 0B 00 C7 00 00 EA 1A 7B EB EF 1D 5B 5E 90 00 72 [15:37:57]RAPDU: EA 1A 7B EB EF 1D 5B 5E 90 00 [15:37:57]wFMCommunicate OK [15:37:57]SAM_PROTO_SignData done [15:37:57]FM_MakeSignedData done [15:37:57]CreateOFDProtocolMessage [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 11 00 00 [15:37:57]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 17 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9B [15:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:37:57]wFMCommunicate OK [15:37:57]CreateOFDProtocolMessage done [15:37:57]OFDSenderStorePacket 18676 [15:37:57]StoreOFDPacket docnum=18676 [15:37:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 5C B3 1C 01 7A 45 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 48 00 00 00 F4 03 04 00 D4 39 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F4 48 00 00 35 04 06 00 A0 9A BA AC 08 BA EA 1A 7B EB EF 1D 5B 5E [15:37:57]CheckFolder [15:37:57]dirname=/storage/ofd_packets [15:37:57]CheckFolder done [15:37:57]ProducePacketName [15:37:57]name=ofd_packets/00018676 [15:37:57]NVStorageSaveData ofd_packets/00018676 [15:37:57]File name is /storage/ofd_packets/00018676 [15:37:57]Write 322 bytes [15:37:57]NVStorageSaveData done [15:37:57]OFDSenderStorePacket done [15:37:57]KKMCreateOFDPacket done [15:37:57]NVStorageSaveData kkm_last_timestamp [15:37:57]File name is /storage/kkm_last_timestamp [15:37:57]Write 4 bytes [15:37:57]NVStorageSaveData done [15:37:57]ExternCall_PrintAddStr [15:37:57]wPrintStart [15:37:57]Write to MH i2c: 01 00 00 C9 00 C9 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 07 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [15:37:57]RasterBufferAndPrint [15:37:57]line Счет N : (3)16600 [15:37:57]line ИНН: 02508201610067 [15:37:57]line Контрольно-Кассовый Чек [15:37:57]line ПРОДАЖА [15:37:57]line Товар: 48745000 [15:37:57]line Сигареты Winston Purple Mix [15:37:57]line 1.000 * 139.00 [15:37:57]line = 139.00 [15:37:57]line НДС 12% НСП 1% [15:37:57]line > о реализуемом товаре [15:37:57]line ИТОГО: 139.00 [15:37:57]line НСП 1% : 1.23 [15:37:57]line НДС 12% : 14.76 [15:37:57]line Наличными: 139.00 [15:37:57]line Безнал.: 0.00 [15:37:57]line Место: АЗС № 176 "Партнер Нефть" [15:37:57]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:37:57]line СНО: Общий режим [15:37:57]line Чек 72 22.09.2024 15:37 [15:37:57]line Смена: 180 ФФД: 1.0 [15:37:57]line ЗНМ: 0300000010 [15:37:57]line РНМ: 0000000000152968 [15:37:57]line Версия ККМ: v1.0 [15:37:57]line ФМ: 0000000000959456 [15:37:57]line ФД: 18676 [15:37:57]line ФПД: 176586417244346 [15:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T153756&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18676&fm=176586417244346&tin=02508201610067®Number=0000000000152968&sum=13900 [15:37:58]line 0 [15:37:58]OFD Sender: Processing packet 18676 [packets to send 7, broken 6] [15:37:58]ProducePacketName [15:37:58]name=ofd_packets/00018676 [15:37:58]OFD Sender: To server: pG, [15:37:58]CommunicateWithHost lk.salyk.kg:30040 [15:37:58]ConnectInit lk.salyk.kg [15:37:58]written 0, free lines is 4095 [15:37:58]Connected sock=11 [15:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 5C B3 1C 01 7A 45 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 48 00 00 00 F4 03 04 00 D4 39 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F4 48 00 00 35 04 06 00 A0 9A BA AC 08 BA EA 1A 7B EB EF 1D 5B 5E [15:37:58]Write to MH i2c: 01 00 00 F1 00 F1 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 0C 0D 11 [15:37:58]RasterBufferAndPrint [15:37:58]line [15:37:58]line [15:37:58]line [15:37:58]line [15:37:58]line [15:37:58]written 0, free lines is 3346 [15:37:58]MH_Cut [15:37:58]Write to MH i2c: D1 01 00 F8 00 01 CA [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: D1 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: D1 01 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: D1 01 00 F8 00 00 C9 [15:37:58]Write to MH i2c: 01 00 00 F9 00 F9 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 41 9E 47 00 B9 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 39 35 39 34 35 36 10 04 04 00 F4 48 00 00 F4 03 04 00 3C E3 EF 66 B6 04 01 00 00 30 E4 0F 1E FE FD 63 AD [15:37:58]CommunicateWithHost err = 0 [15:37:58]CheckOFDResponse [15:37:58]1017 (14) - 77093643461234 [15:37:58]1041 (16) - 0000000000959456 [15:37:58]1040 (4) - 18676 [15:37:58]1012 (4) - 22.09.2024 09:28 [15:37:58]1206 (1) - 0 [15:37:58]OFD Sender: Remove packet 18676 [15:37:58]ProducePacketName [15:37:58]name=ofd_packets/00018676 [15:37:58]NVStorageDeleteData [15:37:59]OFD Sender: No OFD packet to send [15:37:59]*** Cut start [15:37:59]*** Partial cut [15:37:59]*** CUTSNS_PIN = 1 [15:37:59]*** CUTSNS_PIN = 0 [15:37:59]*** Brake cut motor [15:37:59]Read from MH i2c: 01 [15:37:59]MH_I2C_Read... [15:37:59]*** Stop cut motor [15:37:59]*** Cut end [15:37:59]Read from MH i2c: 01 07 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [15:37:59]process_action close_receipt done [15:37:59]requested_data is exist [15:37:59]produce_requested_data [15:37:59]requested_item fm.sn is exist - process it [15:37:59]wFMCommunicate request_size=4 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 11 00 00 [15:37:59]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:59]Read from MH i2c: E2 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 17 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CD [15:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:37:59]wFMCommunicate OK [15:37:59]requested_item fd.num is exist - process it [15:37:59]SAM_PROTO_GetFieldsCounters [15:37:59]wFMCommunicate request_size=4 [15:37:59]MH_SAM_APDU [15:37:59]CAPDU: 80 13 00 00 [15:37:59]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 62 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F4 48 00 00 0E 04 04 00 B4 00 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 6C [15:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F4 48 00 00 0E 04 04 00 B4 00 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:38:00]wFMCommunicate OK [15:38:00]SAM_PROTO_GetFieldsCounters done [15:38:00]requested_item shift.num is exist - process it [15:38:00]requested_item shift.opened is exist - process it [15:38:00]req_shift_opened [15:38:00]FM_GetShiftState [15:38:00]SAM_PROTO_GetShiftState [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 13 01 00 [15:38:00]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0E 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 39 [15:38:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:38:00]wFMCommunicate OK [15:38:00]SAM_PROTO_GetShiftState done [15:38:00]FM_GetShiftState done [15:38:00]req_shift_opened done [15:38:00]requested_item shift.open_date is exist - process it [15:38:00]req_shift_open_date [15:38:00]req_shift_open_date done [15:38:00]produce_requested_data done [15:38:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18676,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:38:00]process_action_free close_receipt [15:38:00]json_value_free [15:38:00]json_value_free done [15:38:00]process_json_proto returns [15:38:00]Send response to host [15:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18676,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:38:00]free response buf [15:38:00]execute_script done [15:38:00]execute_script returns [15:38:00]free content buf [15:38:00]Sock 9.Close socket [15:38:00]Sock 9.Thread stoped [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:52]accept exits with 8 [15:41:52]New connection [15:41:52]New thread 3067129188 created [15:41:52]Thread 3067272548 joined [15:41:52]Waiting for new connection... [15:41:52] Sock 8.Parse request [15:41:52]Sock 8.Check first char [15:41:52]Sock 8.First char is OK [15:41:52]request: POST /json_proto HTTP/1.0 [15:41:52]Method: POST [15:41:52]URL: /json_proto [15:41:52]Method is POST - this is cgi request [15:41:52]url: /json_proto [15:41:52]query_string will be loaded in cgi processing [15:41:52]execute_cgi json_proto POST (null) [15:41:52]execute_cgi path=json_proto method=POST [15:41:52]POST find Content-Length [15:41:52]Host: 172.17.62.196:8080 [15:41:52]Content-Length: 873 [15:41:52]Content-Type: application/json [15:41:52] [15:41:52]POST finish read [15:41:52]Found Content-Length = 873 [15:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16601", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:52]execute_script... [15:41: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)16601", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "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 0,5\u043B", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:52]POST & json_proto [15:41:52]process_json_proto [15:41:52]json parsed OK: [15:41:52]protocol is kg_v1.0 [15:41:52]action value=close_receipt [15:41:52]process_action close_receipt [15:41:52]cmd_close_receipt [15:41:52]MH_GetDate [15:41:52]Write to MH i2c: F0 00 00 FD 00 EC [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: F0 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: F0 09 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: F0 09 00 FD 00 00 C0 3A F0 66 CE CC 0E 66 53 [15:41:52]GetLastDocTimeStamp 1727019476 [15:41:52]current date 1727019712 [15:41:52]FM_GetShiftState [15:41:52]SAM_PROTO_GetShiftState [15:41:52]wFMCommunicate request_size=4 [15:41:52]MH_SAM_APDU [15:41:52]CAPDU: 80 13 01 00 [15:41:52]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [15:41:52]Write i2c OK [15:41:52]MH_I2C_Read... [15:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:52]Read from MH i2c: E2 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 0E 00 [15:41:52]MH_I2C_Read... [15:41:52]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 3B [15:41:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:41:52]wFMCommunicate OK [15:41:52]SAM_PROTO_GetShiftState done [15:41:52]FM_GetShiftState done [15:41:52]opened in 1726963967 [15:41:52]opened+sec_in_day 1727050367 [15:41:52]quantity*price = 6500 [15:41:52]sum+1 = 6501 [15:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 73 22.09.2024 15:41 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18677 ФПД: 3159229775323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154152&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18677&fm=3159229775323&tin=02508201610067®Number=0000000000152968&sum=6500 0 [15:41:53]StoreToDocumentArchive [15:41:53]shift 180 fd 18677 [15:41:53]save to /storage/0180/doc_00018677 [15:41:53]save last doc name /storage/0180/doc_00018677 to /storage/kkm_last_doc_name [15:41:53]save OK [15:41:53]Clear old archive folders... [15:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:41:53]tlvbuf is 001CB970 [15:41:53]SAM_PROTO_ClearQueue [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 09 00 00 [15:41:53]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]SAM_PROTO_ClearQueue done [15:41:53]KKMCreateOFDPacket [15:41:53]OFDProtocolAddRootSTLVToBuf [15:41:53]FM_MakeSignedData [15:41:53]FM_MakeSignedData [15:41:53]SAM_PROTO_SignData [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 01 02 [15:41:53]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]wFMCommunicate request_size=255 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 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 49 00 00 00 F4 03 04 00 C0 3A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 [15:41:53]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 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 49 00 00 00 F4 03 04 00 C0 3A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 00 00 20 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]wFMCommunicate request_size=63 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F5 48 00 00 35 04 06 00 02 DF 90 C4 BD DB [15:41:53]Write to MH i2c: E2 42 00 0E 01 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F5 48 00 00 35 04 06 00 02 DF 90 C4 BD DB 00 00 E9 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:41:53]RAPDU: 90 00 [15:41:53]wFMCommunicate OK [15:41:53]wFMCommunicate request_size=4 [15:41:53]MH_SAM_APDU [15:41:53]CAPDU: 80 0D 03 02 [15:41:53]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:53]Read from MH i2c: E2 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 0B 00 [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: E2 0B 00 0F 01 00 59 47 28 E5 B7 34 D1 64 90 00 59 [15:41:53]RAPDU: 59 47 28 E5 B7 34 D1 64 90 00 [15:41:53]wFMCommunicate OK [15:41:53]SAM_PROTO_SignData done [15:41:53]FM_MakeSignedData done [15:41:53]CreateOFDProtocolMessage [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 10 01 80 11 00 00 00 00 00 00 8B [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 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E4 [15:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:41:53]wFMCommunicate OK [15:41:53]CreateOFDProtocolMessage done [15:41:53]OFDSenderStorePacket 18677 [15:41:53]StoreOFDPacket docnum=18677 [15:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 44 01 00 00 B3 60 3C 01 A2 FA 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 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 49 00 00 00 F4 03 04 00 C0 3A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F5 48 00 00 35 04 06 00 02 DF 90 C4 BD DB 59 47 28 E5 B7 34 D1 64 [15:41:53]CheckFolder [15:41:53]dirname=/storage/ofd_packets [15:41:53]CheckFolder done [15:41:53]ProducePacketName [15:41:53]name=ofd_packets/00018677 [15:41:53]NVStorageSaveData ofd_packets/00018677 [15:41:53]File name is /storage/ofd_packets/00018677 [15:41:53]Write 354 bytes [15:41:53]NVStorageSaveData done [15:41:53]OFDSenderStorePacket done [15:41:53]KKMCreateOFDPacket done [15:41:53]NVStorageSaveData kkm_last_timestamp [15:41:53]File name is /storage/kkm_last_timestamp [15:41:53]Write 4 bytes [15:41:53]NVStorageSaveData done [15:41:53]ExternCall_PrintAddStr [15:41:53]wPrintStart [15:41:53]Write to MH i2c: 01 00 00 11 01 12 [15:41:53]Write i2c OK [15:41:53]MH_I2C_Read... [15:41:53]Read from MH i2c: 01 [15:41:53]MH_I2C_Read... [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 11 01 00 00 00 00 00 FF 0F 27 [15:41:53]RasterBufferAndPrint [15:41:53]line Счет N : (3)16601 [15:41:53]line ИНН: 02508201610067 [15:41:53]line Контрольно-Кассовый Чек [15:41:53]line ПРОДАЖА [15:41:53]line Товар: 4870001571023 [15:41:53]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [15:41:53]line 1.000 * 65.00 [15:41:53]line = 65.00 [15:41:53]line НДС 12% НСП 1% [15:41:53]line > о реализуемом товаре [15:41:53]line ИТОГО: 65.00 [15:41:53]line НСП 1% : 0.57 [15:41:53]line НДС 12% : 6.90 [15:41:53]line Наличными: 0.00 [15:41:53]line Безнал.: 65.00 [15:41:53]line Место: АЗС № 176 "Партнер Нефть" [15:41:53]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:41:53]line СНО: Общий режим [15:41:53]line Чек 73 22.09.2024 15:41 [15:41:53]line Смена: 180 ФФД: 1.0 [15:41:53]line ЗНМ: 0300000010 [15:41:53]line РНМ: 0000000000152968 [15:41:53]line Версия ККМ: v1.0 [15:41:53]line Платежная система: O! деньги [15:41:53]line ФМ: 0000000000959456 [15:41:53]line ФД: 18677 [15:41:53]line ФПД: 3159229775323 [15:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154152&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18677&fm=3159229775323&tin=02508201610067®Number=0000000000152968&sum=6500 [15:41:54]line 0 [15:41:54]OFD Sender: Processing packet 18677 [packets to send 7, broken 6] [15:41:54]ProducePacketName [15:41:54]name=ofd_packets/00018677 [15:41:54]OFD Sender: To server: pG, [15:41:54]CommunicateWithHost lk.salyk.kg:30040 [15:41:54]ConnectInit lk.salyk.kg [15:41:54]written 0, free lines is 4095 [15:41:54]Connected sock=10 [15:41:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 44 01 00 00 B3 60 3C 01 A2 FA 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 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 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 49 00 00 00 F4 03 04 00 C0 3A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F5 48 00 00 35 04 06 00 02 DF 90 C4 BD DB 59 47 28 E5 B7 34 D1 64 [15:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 CB AF 47 00 55 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F5 48 00 00 F4 03 04 00 28 E4 EF 66 B6 04 01 00 00 AD 03 8B E1 9B 72 15 9B [15:41:54]CommunicateWithHost err = 0 [15:41:54]CheckOFDResponse [15:41:54]1017 (14) - 77093643461234 [15:41:54]1041 (16) - 0000000000959456 [15:41:54]1040 (4) - 18677 [15:41:54]1012 (4) - 22.09.2024 09:32 [15:41:54]1206 (1) - 0 [15:41:54]OFD Sender: Remove packet 18677 [15:41:54]ProducePacketName [15:41:54]name=ofd_packets/00018677 [15:41:54]NVStorageDeleteData [15:41:54]Write to MH i2c: 01 00 00 3C 01 3D [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 07 00 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FA 0C 4A [15:41:54]RasterBufferAndPrint [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]line [15:41:54]written 0, free lines is 3328 [15:41:54]MH_Cut [15:41:54]Write to MH i2c: D1 01 00 43 01 01 16 [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 01 00 [15:41:54]MH_I2C_Read... [15:41:54]Read from MH i2c: D1 01 00 43 01 00 15 [15:41:54]Write to MH i2c: 01 00 00 44 01 45 [15:41:54]Write i2c OK [15:41:54]MH_I2C_Read... [15:41:55]OFD Sender: No OFD packet to send [15:41:55]*** Cut start [15:41:55]*** Partial cut [15:41:55]*** CUTSNS_PIN = 1 [15:41:55]*** CUTSNS_PIN = 0 [15:41:55]*** Brake cut motor [15:41:55]Read from MH i2c: 01 [15:41:55]MH_I2C_Read... [15:41:55]*** Stop cut motor [15:41:55]*** Cut end [15:41:55]Read from MH i2c: 01 07 00 [15:41:55]MH_I2C_Read... [15:41:55]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [15:41:55]process_action close_receipt done [15:41:55]requested_data is exist [15:41:55]produce_requested_data [15:41:55]requested_item fm.sn is exist - process it [15:41:55]wFMCommunicate request_size=4 [15:41:55]MH_SAM_APDU [15:41:55]CAPDU: 80 11 00 00 [15:41:55]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [15:41:55]Write i2c OK [15:41:55]MH_I2C_Read... [15:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:56]Read from MH i2c: E2 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 17 00 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 19 [15:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:41:56]wFMCommunicate OK [15:41:56]requested_item fd.num is exist - process it [15:41:56]SAM_PROTO_GetFieldsCounters [15:41:56]wFMCommunicate request_size=4 [15:41:56]MH_SAM_APDU [15:41:56]CAPDU: 80 13 00 00 [15:41:56]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [15:41:56]Write i2c OK [15:41:56]MH_I2C_Read... [15:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:56]Read from MH i2c: E2 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 62 00 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F5 48 00 00 0E 04 04 00 B4 00 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 BC [15:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F5 48 00 00 0E 04 04 00 B4 00 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:56]wFMCommunicate OK [15:41:56]SAM_PROTO_GetFieldsCounters done [15:41:56]requested_item shift.num is exist - process it [15:41:56]requested_item shift.opened is exist - process it [15:41:56]req_shift_opened [15:41:56]FM_GetShiftState [15:41:56]SAM_PROTO_GetShiftState [15:41:56]wFMCommunicate request_size=4 [15:41:56]MH_SAM_APDU [15:41:56]CAPDU: 80 13 01 00 [15:41:56]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [15:41:56]Write i2c OK [15:41:56]MH_I2C_Read... [15:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:56]Read from MH i2c: E2 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 0E 00 [15:41:56]MH_I2C_Read... [15:41:56]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 85 [15:41:56]RAPDU: 09 00 01 FF 60 EF 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]req_shift_opened done [15:41:56]requested_item shift.open_date is exist - process it [15:41:56]req_shift_open_date [15:41:56]req_shift_open_date done [15:41:56]produce_requested_data done [15:41:56]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18677,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:41:56]process_action_free close_receipt [15:41:56]json_value_free [15:41:56]json_value_free done [15:41:56]process_json_proto returns [15:41:56]Send response to host [15:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18677,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:41:56]free response buf [15:41:56]execute_script done [15:41:56]execute_script returns [15:41:56]free content buf [15:41:56]Sock 8.Close socket [15:41:56]Sock 8.Thread stoped [15:42:00]OFD Sender: No OFD packet to send [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 48 01 49 [15:42:00]*** FLAG_PRN_PAP1 set [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 48 01 00 01 00 00 00 FF 0F 5F [15:42:00]state=0 [15:42:00]No paper [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 49 01 4A [15:42:00]*** FLAG_PRN_PAP2 set [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 49 01 00 03 00 00 00 FF 0F 62 [15:42:00]state=0 [15:42:00]No paper [15:42:00]Cover opened [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4A 01 4B [15:42:00]*** FLAG_PRN_PAP2 reset [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 4A 01 00 01 00 00 00 FF 0F 61 [15:42:00]state=3 [15:42:00]No paper [15:42:00]Cover closed [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4B 01 4C [15:42:00]*** FLAG_PRN_PAP2 set [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 4B 01 00 03 00 00 00 FF 0F 64 [15:42:00]state=0 [15:42:00]No paper [15:42:00]Cover opened [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4C 01 4D [15:42:00]*** FLAG_PRN_PAP2 reset [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 4C 01 00 01 00 00 00 FF 0F 63 [15:42:00]state=3 [15:42:00]No paper [15:42:00]Cover closed [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4D 01 4E [15:42:00]*** FLAG_PRN_PAP2 set [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 4D 01 00 03 00 00 00 FF 0F 66 [15:42:00]state=0 [15:42:00]No paper [15:42:00]Cover opened [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4E 01 4F [15:42:00]*** FLAG_PRN_PAP2 reset [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 4E 01 00 01 00 00 00 FF 0F 65 [15:42:00]state=3 [15:42:00]No paper [15:42:00]Cover closed [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 4F 01 50 [15:42:00]*** FLAG_PRN_PAP2 set [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 4F 01 00 03 00 00 00 FF 0F 68 [15:42:00]state=0 [15:42:00]No paper [15:42:00]Cover opened [15:42:00]int [15:42:00]Write to MH i2c: 01 00 00 50 01 51 [15:42:00]*** FLAG_PRN_PAP2 reset [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 50 01 00 01 00 00 00 FF 0F 67 [15:42:00]state=3 [15:42:00]No paper [15:42:00]Cover closed [15:42:01]int [15:42:01]Write to MH i2c: 01 00 00 51 01 52 [15:42:01]*** FLAG_PRN_PAP2 set [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 51 01 00 03 00 00 00 FF 0F 6A [15:42:01]state=0 [15:42:01]No paper [15:42:01]Cover opened [15:42:03]int [15:42:03]Write to MH i2c: 01 00 00 52 01 53 [15:42:03]*** FLAG_PRN_PAP2 reset [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [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 52 01 00 01 00 00 00 FF 0F 69 [15:42:03]state=3 [15:42:03]No paper [15:42:03]Cover closed [15:42:03]int [15:42:03]Write to MH i2c: 01 00 00 53 01 54 [15:42:03]*** FLAG_PRN_PAP2 set [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: 01 [15:42:03]MH_I2C_Read... [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 53 01 00 03 00 00 00 FF 0F 6C [15:42:03]state=0 [15:42:03]No paper [15:42:03]Cover opened [15:42:05]int [15:42:05]Write to MH i2c: 01 00 00 54 01 55 [15:42:05]*** FLAG_PRN_PAP2 reset [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 54 01 00 01 00 00 00 FF 0F 6B [15:42:05]state=3 [15:42:05]No paper [15:42:05]Cover closed [15:42:05]OFD Sender: No OFD packet to send [15:42:05]int [15:42:05]Write to MH i2c: 01 00 00 55 01 56 [15:42:05]*** FLAG_PRN_PAP1 reset [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [15:42:05]state=0 [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]accept exits with 9 [15:49:55]New connection [15:49:55]New thread 3067272548 created [15:49:55]Thread 3067129188 joined [15:49:55]Waiting for new connection... [15:49:55] Sock 9.Parse request [15:49:55]Sock 9.Check first char [15:49:55]Sock 9.First char is OK [15:49:55]request: POST /json_proto HTTP/1.0 [15:49:55]Method: POST [15:49:55]URL: /json_proto [15:49:55]Method is POST - this is cgi request [15:49:55]url: /json_proto [15:49:55]query_string will be loaded in cgi processing [15:49:55]execute_cgi json_proto POST (null) [15:49:55]execute_cgi path=json_proto method=POST [15:49:55]POST find Content-Length [15:49:55]Host: 172.17.62.196:8080 [15:49:55]Content-Length: 710 [15:49:55]Content-Type: application/json [15:49:55] [15:49:55]POST finish read [15:49:55]Found Content-Length = 710 [15:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16602", "tax_sys" : 0, "items" : [ { "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" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]execute_script... [15:49: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)16602", "tax_sys" : 0, "items" : [ { "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" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]POST & json_proto [15:49:55]process_json_proto [15:49:55]json parsed OK: [15:49:55]protocol is kg_v1.0 [15:49:55]action value=close_receipt [15:49:55]process_action close_receipt [15:49:55]cmd_close_receipt [15:49:55]MH_GetDate [15:49:55]Write to MH i2c: F0 00 00 56 01 46 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 09 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 09 00 56 01 00 A4 3C F0 66 CE CC 0E 66 93 [15:49:55]GetLastDocTimeStamp 1727019712 [15:49:55]current date 1727020196 [15:49:55]FM_GetShiftState [15:49:55]SAM_PROTO_GetShiftState [15:49:55]wFMCommunicate request_size=4 [15:49:55]MH_SAM_APDU [15:49:55]CAPDU: 80 13 01 00 [15:49:55]Write to MH i2c: E2 08 00 57 01 80 13 01 00 00 00 00 00 D5 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:55]Read from MH i2c: E2 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: E2 0E 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: E2 0E 00 57 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 95 [15:49:55]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:49:55]wFMCommunicate OK [15:49:55]SAM_PROTO_GetShiftState done [15:49:55]FM_GetShiftState done [15:49:55]opened in 1726963967 [15:49:55]opened+sec_in_day 1727050367 [15:49:55]quantity*price = 7000 [15:49:55]sum+1 = 7001 [15:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 74 22.09.2024 15:49 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18678 ФПД: 94243908538854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154956&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18678&fm=94243908538854&tin=02508201610067®Number=0000000000152968&sum=7000 0 [15:49:56]StoreToDocumentArchive [15:49:56]shift 180 fd 18678 [15:49:56]save to /storage/0180/doc_00018678 [15:49:56]save last doc name /storage/0180/doc_00018678 to /storage/kkm_last_doc_name [15:49:56]save OK [15:49:56]Clear old archive folders... [15:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=302 [15:49:56]tlvbuf is 001DE800 [15:49:56]SAM_PROTO_ClearQueue [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 09 00 00 [15:49:56]Write to MH i2c: E2 08 00 64 01 80 09 00 00 00 00 00 00 D7 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_ClearQueue done [15:49:56]KKMCreateOFDPacket [15:49:56]OFDProtocolAddRootSTLVToBuf [15:49:56]FM_MakeSignedData [15:49:56]FM_MakeSignedData [15:49:56]SAM_PROTO_SignData [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 01 02 [15:49:56]Write to MH i2c: E2 08 00 65 01 80 0D 01 02 00 00 00 00 DF [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=255 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 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 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A4 3C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 [15:49:56]Write to MH i2c: E2 02 01 66 01 80 0D 02 02 FA 00 03 00 2E 01 1E 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 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A4 3C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 00 00 1B [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=61 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F6 48 00 00 35 04 06 00 55 B6 DE B0 D1 E6 [15:49:56]Write to MH i2c: E2 40 00 67 01 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F6 48 00 00 35 04 06 00 55 B6 DE B0 D1 E6 00 00 B1 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 03 02 [15:49:56]Write to MH i2c: E2 08 00 68 01 80 0D 03 02 00 00 00 00 E4 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0B 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0B 00 68 01 00 18 76 FF 87 00 1F CD BF 90 00 A4 [15:49:57]RAPDU: 18 76 FF 87 00 1F CD BF 90 00 [15:49:57]wFMCommunicate OK [15:49:57]SAM_PROTO_SignData done [15:49:57]FM_MakeSignedData done [15:49:57]CreateOFDProtocolMessage [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 11 00 00 [15:49:57]Write to MH i2c: E2 08 00 69 01 80 11 00 00 00 00 00 00 E4 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3D [15:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:49:57]wFMCommunicate OK [15:49:57]CreateOFDProtocolMessage done [15:49:57]OFDSenderStorePacket 18678 [15:49:57]StoreOFDPacket docnum=18678 [15:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 94 1D 3A 01 39 25 5A 03 01 00 03 00 2E 01 1E 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 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A4 3C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F6 48 00 00 35 04 06 00 55 B6 DE B0 D1 E6 18 76 FF 87 00 1F CD BF [15:49:57]CheckFolder [15:49:57]dirname=/storage/ofd_packets [15:49:57]CheckFolder done [15:49:57]ProducePacketName [15:49:57]name=ofd_packets/00018678 [15:49:57]NVStorageSaveData ofd_packets/00018678 [15:49:57]File name is /storage/ofd_packets/00018678 [15:49:57]Write 352 bytes [15:49:57]NVStorageSaveData done [15:49:57]OFDSenderStorePacket done [15:49:57]KKMCreateOFDPacket done [15:49:57]NVStorageSaveData kkm_last_timestamp [15:49:57]File name is /storage/kkm_last_timestamp [15:49:57]Write 4 bytes [15:49:57]NVStorageSaveData done [15:49:57]ExternCall_PrintAddStr [15:49:57]wPrintStart [15:49:57]Write to MH i2c: 01 00 00 6A 01 6B [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 FF 0F 80 [15:49:57]RasterBufferAndPrint [15:49:57]line Счет N : (3)16602 [15:49:57]line ИНН: 02508201610067 [15:49:57]line Контрольно-Кассовый Чек [15:49:57]line ПРОДАЖА [15:49:57]line Товар: 4870001571030 [15:49:57]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [15:49:57]line 1.000 * 70.00 [15:49:57]line = 70.00 [15:49:57]line НДС 12% НСП 1% [15:49:57]line > о реализуемом товаре [15:49:57]line ИТОГО: 70.00 [15:49:57]line НСП 1% : 0.62 [15:49:57]line НДС 12% : 7.43 [15:49:57]line Наличными: 70.00 [15:49:57]line Безнал.: 0.00 [15:49:57]line Место: АЗС № 176 "Партнер Нефть" [15:49:57]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:49:57]line СНО: Общий режим [15:49:57]line Чек 74 22.09.2024 15:49 [15:49:57]line Смена: 180 ФФД: 1.0 [15:49:57]line ЗНМ: 0300000010 [15:49:57]line РНМ: 0000000000152968 [15:49:57]line Версия ККМ: v1.0 [15:49:57]line ФМ: 0000000000959456 [15:49:57]line ФД: 18678 [15:49:57]line ФПД: 94243908538854 [15:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T154956&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18678&fm=94243908538854&tin=02508201610067®Number=0000000000152968&sum=7000 [15:49:57]line 0 [15:49:57]OFD Sender: Processing packet 18678 [packets to send 7, broken 6] [15:49:57]ProducePacketName [15:49:57]name=ofd_packets/00018678 [15:49:57]OFD Sender: To server: pG, [15:49:57]CommunicateWithHost lk.salyk.kg:30040 [15:49:57]ConnectInit lk.salyk.kg [15:49:57]written 0, free lines is 4095 [15:49:57]Connected sock=10 [15:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 94 1D 3A 01 39 25 5A 03 01 00 03 00 2E 01 1E 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 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A4 3C F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F6 48 00 00 35 04 06 00 55 B6 DE B0 D1 E6 18 76 FF 87 00 1F CD BF [15:49:57]Write to MH i2c: 01 00 00 93 01 94 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 0F 0D B7 [15:49:57]RasterBufferAndPrint [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]written 0, free lines is 3349 [15:49:57]MH_Cut [15:49:57]Write to MH i2c: D1 01 00 9A 01 01 6D [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 01 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 01 00 9A 01 00 6C [15:49:57]Write to MH i2c: 01 00 00 9B 01 9C [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 87 94 47 00 5A EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F6 48 00 00 F4 03 04 00 0B E6 EF 66 B6 04 01 00 00 20 95 22 67 CF E0 15 46 [15:49:57]CommunicateWithHost err = 0 [15:49:57]CheckOFDResponse [15:49:57]1017 (14) - 77093643461234 [15:49:57]1041 (16) - 0000000000959456 [15:49:57]1040 (4) - 18678 [15:49:57]1012 (4) - 22.09.2024 09:40 [15:49:57]1206 (1) - 0 [15:49:57]OFD Sender: Remove packet 18678 [15:49:57]ProducePacketName [15:49:57]name=ofd_packets/00018678 [15:49:57]NVStorageDeleteData [15:49:58]OFD Sender: No OFD packet to send [15:49:58]*** Cut start [15:49:58]*** Partial cut [15:49:58]*** CUTSNS_PIN = 1 [15:49:58]*** CUTSNS_PIN = 0 [15:49:58]*** Brake cut motor [15:49:59]Read from MH i2c: 01 [15:49:59]MH_I2C_Read... [15:49:59]*** Stop cut motor [15:49:59]*** Cut end [15:49:59]Read from MH i2c: 01 07 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [15:49:59]process_action close_receipt done [15:49:59]requested_data is exist [15:49:59]produce_requested_data [15:49:59]requested_item fm.sn is exist - process it [15:49:59]wFMCommunicate request_size=4 [15:49:59]MH_SAM_APDU [15:49:59]CAPDU: 80 11 00 00 [15:49:59]Write to MH i2c: E2 08 00 9C 01 80 11 00 00 00 00 00 00 17 [15:49:59]Write i2c OK [15:49:59]MH_I2C_Read... [15:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:59]Read from MH i2c: E2 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 17 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 17 00 9C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 70 [15:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:49:59]wFMCommunicate OK [15:49:59]requested_item fd.num is exist - process it [15:49:59]SAM_PROTO_GetFieldsCounters [15:49:59]wFMCommunicate request_size=4 [15:49:59]MH_SAM_APDU [15:49:59]CAPDU: 80 13 00 00 [15:49:59]Write to MH i2c: E2 08 00 9D 01 80 13 00 00 00 00 00 00 1A [15:49:59]Write i2c OK [15:49:59]MH_I2C_Read... [15:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:59]Read from MH i2c: E2 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 62 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 62 00 9D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F6 48 00 00 0E 04 04 00 B4 00 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 17 [15:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F6 48 00 00 0E 04 04 00 B4 00 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:49:59]wFMCommunicate OK [15:49:59]SAM_PROTO_GetFieldsCounters done [15:49:59]requested_item shift.num is exist - process it [15:49:59]requested_item shift.opened is exist - process it [15:49:59]req_shift_opened [15:49:59]FM_GetShiftState [15:49:59]SAM_PROTO_GetShiftState [15:49:59]wFMCommunicate request_size=4 [15:49:59]MH_SAM_APDU [15:49:59]CAPDU: 80 13 01 00 [15:49:59]Write to MH i2c: E2 08 00 9E 01 80 13 01 00 00 00 00 00 1C [15:49:59]Write i2c OK [15:49:59]MH_I2C_Read... [15:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:59]Read from MH i2c: E2 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 0E 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DC [15:49:59]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [15:49:59]wFMCommunicate OK [15:49:59]SAM_PROTO_GetShiftState done [15:49:59]FM_GetShiftState done [15:49:59]req_shift_opened done [15:49:59]requested_item shift.open_date is exist - process it [15:49:59]req_shift_open_date [15:49:59]req_shift_open_date done [15:49:59]produce_requested_data done [15:49:59]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18678,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [15:49:59]process_action_free close_receipt [15:49:59]json_value_free [15:49:59]json_value_free done [15:49:59]process_json_proto returns [15:49:59]Send response to host [15:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18678,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [15:49:59]free response buf [15:49:59]execute_script done [15:49:59]execute_script returns [15:49:59]free content buf [15:49:59]Sock 9.Close socket [15:49:59]Sock 9.Thread stoped [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:34]accept exits with 8 [16:00:34]New connection [16:00:34]New thread 3067129188 created [16:00:34]Thread 3067272548 joined [16:00:34]Waiting for new connection... [16:00:34] Sock 8.Parse request [16:00:34]Sock 8.Check first char [16:00:34]Sock 8.First char is OK [16:00:34]request: POST /json_proto HTTP/1.0 [16:00:34]Method: POST [16:00:34]URL: /json_proto [16:00:34]Method is POST - this is cgi request [16:00:34]url: /json_proto [16:00:34]query_string will be loaded in cgi processing [16:00:34]execute_cgi json_proto POST (null) [16:00:34]execute_cgi path=json_proto method=POST [16:00:34]POST find Content-Length [16:00:34]Host: 172.17.62.196:8080 [16:00:34]Content-Length: 727 [16:00:34]Content-Type: application/json [16:00:34] [16:00:34]POST finish read [16:00:34]Found Content-Length = 727 [16:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16603", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 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" ] } } [16:00:34]execute_script... [16:00:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16603", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 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" ] } } [16:00:34]POST & json_proto [16:00:34]process_json_proto [16:00:34]json parsed OK: [16:00:34]protocol is kg_v1.0 [16:00:34]action value=close_receipt [16:00:34]process_action close_receipt [16:00:34]cmd_close_receipt [16:00:34]MH_GetDate [16:00:34]Write to MH i2c: F0 00 00 9F 01 8F [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: F0 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: F0 09 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: F0 09 00 9F 01 00 23 3F F0 66 CE CC 0E 66 5E [16:00:34]GetLastDocTimeStamp 1727020196 [16:00:34]current date 1727020835 [16:00:34]FM_GetShiftState [16:00:34]SAM_PROTO_GetShiftState [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 01 00 [16:00:34]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DE [16:00:34]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetShiftState done [16:00:34]FM_GetShiftState done [16:00:34]opened in 1726963967 [16:00:34]opened+sec_in_day 1727050367 [16:00:34]quantity*price = 10500 [16:00:34]sum+1 = 10501 [16:00:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 75 22.09.2024 16:00 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18679 ФПД: 168331660528846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160035&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18679&fm=168331660528846&tin=02508201610067®Number=0000000000152968&sum=10500 0 [16:00:35]StoreToDocumentArchive [16:00:35]shift 180 fd 18679 [16:00:35]save to /storage/0180/doc_00018679 [16:00:35]save last doc name /storage/0180/doc_00018679 to /storage/kkm_last_doc_name [16:00:35]save OK [16:00:35]Clear old archive folders... [16:00:35]ProcessDocumentItem done err = 0, tmpTLVsize=308 [16:00:35]tlvbuf is 001C5C30 [16:00:35]SAM_PROTO_ClearQueue [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 09 00 00 [16:00:35]Write to MH i2c: E2 08 00 AD 01 80 09 00 00 00 00 00 00 20 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [16:00:35]RAPDU: 90 00 [16:00:35]wFMCommunicate OK [16:00:35]SAM_PROTO_ClearQueue done [16:00:35]KKMCreateOFDPacket [16:00:35]OFDProtocolAddRootSTLVToBuf [16:00:35]FM_MakeSignedData [16:00:35]FM_MakeSignedData [16:00:35]SAM_PROTO_SignData [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 0D 01 02 [16:00:35]Write to MH i2c: E2 08 00 AE 01 80 0D 01 02 00 00 00 00 28 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [16:00:35]RAPDU: 90 00 [16:00:35]wFMCommunicate OK [16:00:35]wFMCommunicate request_size=255 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 23 3F F0 66 0E 04 04 00 B4 00 00 00 B9 [16:00:35]Write to MH i2c: E2 02 01 AF 01 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 23 3F F0 66 0E 04 04 00 B4 00 00 00 B9 00 00 DF [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [16:00:35]RAPDU: 90 00 [16:00:35]wFMCommunicate OK [16:00:35]wFMCommunicate request_size=67 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F7 48 00 00 35 04 06 00 99 18 C4 D4 8C CE [16:00:35]Write to MH i2c: E2 46 00 B0 01 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F7 48 00 00 35 04 06 00 99 18 C4 D4 8C CE 00 00 71 [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [16:00:35]RAPDU: 90 00 [16:00:35]wFMCommunicate OK [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 0D 03 02 [16:00:35]Write to MH i2c: E2 08 00 B1 01 80 0D 03 02 00 00 00 00 2D [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0B 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0B 00 B1 01 00 C5 D1 08 A3 ED 7D 73 97 90 00 E3 [16:00:35]RAPDU: C5 D1 08 A3 ED 7D 73 97 90 00 [16:00:35]wFMCommunicate OK [16:00:35]SAM_PROTO_SignData done [16:00:35]FM_MakeSignedData done [16:00:35]CreateOFDProtocolMessage [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 11 00 00 [16:00:35]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 17 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 86 [16:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:00:35]wFMCommunicate OK [16:00:35]CreateOFDProtocolMessage done [16:00:35]OFDSenderStorePacket 18679 [16:00:35]StoreOFDPacket docnum=18679 [16:00:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 48 01 00 00 7B 6B 40 01 EE 38 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 23 3F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F7 48 00 00 35 04 06 00 99 18 C4 D4 8C CE C5 D1 08 A3 ED 7D 73 97 [16:00:35]CheckFolder [16:00:35]dirname=/storage/ofd_packets [16:00:35]CheckFolder done [16:00:35]ProducePacketName [16:00:35]name=ofd_packets/00018679 [16:00:35]NVStorageSaveData ofd_packets/00018679 [16:00:35]File name is /storage/ofd_packets/00018679 [16:00:35]Write 358 bytes [16:00:35]NVStorageSaveData done [16:00:35]OFDSenderStorePacket done [16:00:35]KKMCreateOFDPacket done [16:00:35]NVStorageSaveData kkm_last_timestamp [16:00:35]File name is /storage/kkm_last_timestamp [16:00:35]Write 4 bytes [16:00:35]NVStorageSaveData done [16:00:35]ExternCall_PrintAddStr [16:00:35]wPrintStart [16:00:35]Write to MH i2c: 01 00 00 B3 01 B4 [16:00:35]OFD Sender: Processing packet 18679 [packets to send 7, broken 6] [16:00:35]ProducePacketName [16:00:35]name=ofd_packets/00018679 [16:00:35]OFD Sender: To server: pG, [16:00:35]CommunicateWithHost lk.salyk.kg:30040 [16:00:35]ConnectInit lk.salyk.kg [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 07 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 FF 0F C9 [16:00:35]RasterBufferAndPrint [16:00:35]line Счет N : (3)16603 [16:00:35]line ИНН: 02508201610067 [16:00:35]line Контрольно-Кассовый Чек [16:00:35]line ПРОДАЖА [16:00:35]line Товар: 5449000027474 [16:00:35]line Напиток FuzeTea зел чай манго,ромашка 1л [16:00:35]line 1.000 * 105.00 [16:00:35]line = 105.00 [16:00:35]line НДС 12% НСП 1% [16:00:35]line > о реализуемом товаре [16:00:35]line ИТОГО: 105.00 [16:00:35]line НСП 1% : 0.93 [16:00:35]line НДС 12% : 11.15 [16:00:35]line Наличными: 105.00 [16:00:35]line Безнал.: 0.00 [16:00:35]line Место: АЗС № 176 "Партнер Нефть" [16:00:35]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:00:35]line СНО: Общий режим [16:00:35]line Чек 75 22.09.2024 16:00 [16:00:35]line Смена: 180 ФФД: 1.0 [16:00:35]line ЗНМ: 0300000010 [16:00:35]line РНМ: 0000000000152968 [16:00:35]line Версия ККМ: v1.0 [16:00:36]line ФМ: 0000000000959456 [16:00:36]line ФД: 18679 [16:00:36]line ФПД: 168331660528846 [16:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T160035&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18679&fm=168331660528846&tin=02508201610067®Number=0000000000152968&sum=10500 [16:00:36]line 0 [16:00:36]Connected sock=10 [16:00:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 48 01 00 00 7B 6B 40 01 EE 38 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 04 29 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 23 3F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F7 48 00 00 35 04 06 00 99 18 C4 D4 8C CE C5 D1 08 A3 ED 7D 73 97 [16:00:36]written 0, free lines is 4095 [16:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 3F 1C 47 00 64 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F7 48 00 00 F4 03 04 00 8A E8 EF 66 B6 04 01 00 00 9C 57 B0 BC 76 28 8F 4D [16:00:36]CommunicateWithHost err = 0 [16:00:36]CheckOFDResponse [16:00:36]1017 (14) - 77093643461234 [16:00:36]1041 (16) - 0000000000959456 [16:00:36]1040 (4) - 18679 [16:00:36]1012 (4) - 22.09.2024 09:51 [16:00:36]1206 (1) - 0 [16:00:36]OFD Sender: Remove packet 18679 [16:00:36]ProducePacketName [16:00:36]name=ofd_packets/00018679 [16:00:36]NVStorageDeleteData [16:00:36]Write to MH i2c: 01 00 00 DC 01 DD [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 11 0D 02 [16:00:36]RasterBufferAndPrint [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]line [16:00:36]written 0, free lines is 3351 [16:00:36]MH_Cut [16:00:36]Write to MH i2c: D1 01 00 E3 01 01 B6 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 01 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: D1 01 00 E3 01 00 B5 [16:00:36]Write to MH i2c: 01 00 00 E4 01 E5 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:37]OFD Sender: No OFD packet to send [16:00:37]*** Cut start [16:00:37]*** Partial cut [16:00:37]*** CUTSNS_PIN = 1 [16:00:37]*** CUTSNS_PIN = 0 [16:00:37]*** Brake cut motor [16:00:37]Read from MH i2c: 01 [16:00:37]MH_I2C_Read... [16:00:37]*** Stop cut motor [16:00:37]*** Cut end [16:00:37]Read from MH i2c: 01 07 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [16:00:37]process_action close_receipt done [16:00:37]requested_data is exist [16:00:37]produce_requested_data [16:00:37]requested_item fm.sn is exist - process it [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 11 00 00 [16:00:37]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 17 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B9 [16:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:00:38]wFMCommunicate OK [16:00:38]requested_item fd.num is exist - process it [16:00:38]SAM_PROTO_GetFieldsCounters [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 13 00 00 [16:00:38]Write to MH i2c: E2 08 00 E6 01 80 13 00 00 00 00 00 00 63 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 62 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 62 00 E6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F7 48 00 00 0E 04 04 00 B4 00 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 64 [16:00:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F7 48 00 00 0E 04 04 00 B4 00 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 [16:00:38]wFMCommunicate OK [16:00:38]SAM_PROTO_GetFieldsCounters done [16:00:38]requested_item shift.num is exist - process it [16:00:38]requested_item shift.opened is exist - process it [16:00:38]req_shift_opened [16:00:38]FM_GetShiftState [16:00:38]SAM_PROTO_GetShiftState [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 13 01 00 [16:00:38]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 0E 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 25 [16:00:38]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:00:38]wFMCommunicate OK [16:00:38]SAM_PROTO_GetShiftState done [16:00:38]FM_GetShiftState done [16:00:38]req_shift_opened done [16:00:38]requested_item shift.open_date is exist - process it [16:00:38]req_shift_open_date [16:00:38]req_shift_open_date done [16:00:38]produce_requested_data done [16:00:38]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18679,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [16:00:38]process_action_free close_receipt [16:00:38]json_value_free [16:00:38]json_value_free done [16:00:38]process_json_proto returns [16:00:38]Send response to host [16:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18679,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [16:00:38]free response buf [16:00:38]execute_script done [16:00:38]execute_script returns [16:00:38]free content buf [16:00:38]Sock 8.Close socket [16:00:38]Sock 8.Thread stoped [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:04]accept exits with 9 [16:26:04]New connection [16:26:04]New thread 3067272548 created [16:26:04]Thread 3067129188 joined [16:26:04]Waiting for new connection... [16:26:04] Sock 9.Parse request [16:26:04]Sock 9.Check first char [16:26:04]Sock 9.First char is OK [16:26:04]request: POST /json_proto HTTP/1.0 [16:26:04]Method: POST [16:26:04]URL: /json_proto [16:26:04]Method is POST - this is cgi request [16:26:04]url: /json_proto [16:26:04]query_string will be loaded in cgi processing [16:26:04]execute_cgi json_proto POST (null) [16:26:04]execute_cgi path=json_proto method=POST [16:26:04]POST find Content-Length [16:26:04]Host: 172.17.62.196:8080 [16:26:04]Content-Length: 1052 [16:26:04]Content-Type: application/json [16:26:04] [16:26:04]POST finish read [16:26:04]Found Content-Length = 1052 [16:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16604", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:04]execute_script... [16:26:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16604", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:04]POST & json_proto [16:26:04]process_json_proto [16:26:04]json parsed OK: [16:26:04]protocol is kg_v1.0 [16:26:04]action value=close_receipt [16:26:04]process_action close_receipt [16:26:04]cmd_close_receipt [16:26:04]MH_GetDate [16:26:04]Write to MH i2c: F0 00 00 E8 01 D8 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: F0 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: F0 09 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: F0 09 00 E8 01 00 1D 45 F0 66 CE CC 0E 66 A7 [16:26:04]GetLastDocTimeStamp 1727020835 [16:26:04]current date 1727022365 [16:26:04]FM_GetShiftState [16:26:04]SAM_PROTO_GetShiftState [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 13 01 00 [16:26:04]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0E 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 27 [16:26:04]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:26:04]wFMCommunicate OK [16:26:04]SAM_PROTO_GetShiftState done [16:26:04]FM_GetShiftState done [16:26:04]opened in 1726963967 [16:26:04]opened+sec_in_day 1727050367 [16:26:04]quantity*price = 6000 [16:26:04]sum+1 = 6001 [16:26:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 76 22.09.2024 16:26 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18680 ФПД: 156852232543001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18680&fm=156852232543001&tin=02508201610067®Number=0000000000152968&sum=17000 0 [16:26:05]StoreToDocumentArchive [16:26:05]shift 180 fd 18680 [16:26:05]save to /storage/0180/doc_00018680 [16:26:05]save last doc name /storage/0180/doc_00018680 to /storage/kkm_last_doc_name [16:26:05]save OK [16:26:05]Clear old archive folders... [16:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=372 [16:26:05]tlvbuf is 001C90D0 [16:26:05]SAM_PROTO_ClearQueue [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 09 00 00 [16:26:05]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [16:26:05]RAPDU: 90 00 [16:26:05]wFMCommunicate OK [16:26:05]SAM_PROTO_ClearQueue done [16:26:05]KKMCreateOFDPacket [16:26:05]OFDProtocolAddRootSTLVToBuf [16:26:05]FM_MakeSignedData [16:26:05]FM_MakeSignedData [16:26:05]SAM_PROTO_SignData [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 0D 01 02 [16:26:05]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [16:26:05]RAPDU: 90 00 [16:26:05]wFMCommunicate OK [16:26:05]wFMCommunicate request_size=255 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [16:26:05]Write to MH i2c: E2 02 01 F8 01 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 9B [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [16:26:06]RAPDU: 90 00 [16:26:06]wFMCommunicate OK [16:26:06]wFMCommunicate request_size=131 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 0D 02 02 7E 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 4C 00 00 00 F4 03 04 00 1D 45 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F8 48 00 00 35 04 06 00 8E A8 01 9A 5B 19 [16:26:06]Write to MH i2c: E2 86 00 F9 01 80 0D 02 02 7E 00 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 4C 00 00 00 F4 03 04 00 1D 45 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F8 48 00 00 35 04 06 00 8E A8 01 9A 5B 19 00 00 AF [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [16:26:06]RAPDU: 90 00 [16:26:06]wFMCommunicate OK [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 0D 03 02 [16:26:06]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 0B 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 0B 00 FA 01 00 2F 33 A3 84 19 3A 16 FB 90 00 64 [16:26:06]RAPDU: 2F 33 A3 84 19 3A 16 FB 90 00 [16:26:06]wFMCommunicate OK [16:26:06]SAM_PROTO_SignData done [16:26:06]FM_MakeSignedData done [16:26:06]CreateOFDProtocolMessage [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 11 00 00 [16:26:06]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 17 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 17 00 FB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CF [16:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:26:06]wFMCommunicate OK [16:26:06]CreateOFDProtocolMessage done [16:26:06]OFDSenderStorePacket 18680 [16:26:06]StoreOFDPacket docnum=18680 [16:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 88 01 00 00 7E 70 80 01 C1 DD 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4C 00 00 00 F4 03 04 00 1D 45 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F8 48 00 00 35 04 06 00 8E A8 01 9A 5B 19 2F 33 A3 84 19 3A 16 FB [16:26:06]CheckFolder [16:26:06]dirname=/storage/ofd_packets [16:26:06]CheckFolder done [16:26:06]ProducePacketName [16:26:06]name=ofd_packets/00018680 [16:26:06]NVStorageSaveData ofd_packets/00018680 [16:26:06]File name is /storage/ofd_packets/00018680 [16:26:06]Write 422 bytes [16:26:06]NVStorageSaveData done [16:26:06]OFDSenderStorePacket done [16:26:06]KKMCreateOFDPacket done [16:26:06]NVStorageSaveData kkm_last_timestamp [16:26:06]File name is /storage/kkm_last_timestamp [16:26:06]Write 4 bytes [16:26:06]NVStorageSaveData done [16:26:06]ExternCall_PrintAddStr [16:26:06]wPrintStart [16:26:06]Write to MH i2c: 01 00 00 FC 01 FD [16:26:06]OFD Sender: Processing packet 18680 [packets to send 7, broken 6] [16:26:06]ProducePacketName [16:26:06]name=ofd_packets/00018680 [16:26:06]OFD Sender: To server: pG, [16:26:06]CommunicateWithHost lk.salyk.kg:30040 [16:26:06]ConnectInit lk.salyk.kg [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 07 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [16:26:06]RasterBufferAndPrint [16:26:06]line Счет N : (3)16604 [16:26:06]line ИНН: 02508201610067 [16:26:06]line Контрольно-Кассовый Чек [16:26:06]line ПРОДАЖА [16:26:06]line Товар: 4700000310043 [16:26:06]line Вода Жалалабат 27 1л [16:26:06]line 1.000 * 60.00 [16:26:06]line = 60.00 [16:26:06]line НДС 12% НСП 1% [16:26:06]line > о реализуемом товаре [16:26:06]line Товар: 4870001570071 [16:26:06]line Напиток Pepsi 1л [16:26:06]line 1.000 * 110.00 [16:26:06]line = 110.00 [16:26:06]line НДС 12% НСП 1% [16:26:06]line > о реализуемом товаре [16:26:06]line ИТОГО: 170.00 [16:26:06]line НСП 1% : 1.50 [16:26:06]line НДС 12% : 18.05 [16:26:06]line Наличными: 0.00 [16:26:06]line Безнал.: 170.00 [16:26:06]line Место: АЗС № 176 "Партнер Нефть" [16:26:06]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:26:06]line СНО: Общий режим [16:26:06]line Чек 76 22.09.2024 16:26 [16:26:06]line Смена: 180 ФФД: 1.0 [16:26:06]line ЗНМ: 0300000010 [16:26:06]line РНМ: 0000000000152968 [16:26:06]line Версия ККМ: v1.0 [16:26:06]line Платежная система: Бакай Банк [16:26:06]line ФМ: 0000000000959456 [16:26:06]line ФД: 18680 [16:26:06]line ФПД: 156852232543001 [16:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18680&fm=156852232543001&tin=02508201610067®Number=0000000000152968&sum=17000 [16:26:06]line 0 [16:26:06]written 0, free lines is 4095 [16:26:06]Connected sock=10 [16:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 88 01 00 00 7E 70 80 01 C1 DD 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4C 00 00 00 F4 03 04 00 1D 45 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F8 48 00 00 35 04 06 00 8E A8 01 9A 5B 19 2F 33 A3 84 19 3A 16 FB [16:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4E 97 47 00 EE DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F8 48 00 00 F4 03 04 00 84 EE EF 66 B6 04 01 00 00 06 A7 02 51 49 2F DE B2 [16:26:07]CommunicateWithHost err = 0 [16:26:07]CheckOFDResponse [16:26:07]1017 (14) - 77093643461234 [16:26:07]1041 (16) - 0000000000959456 [16:26:07]1040 (4) - 18680 [16:26:07]1012 (4) - 22.09.2024 10:16 [16:26:07]1206 (1) - 0 [16:26:07]OFD Sender: Remove packet 18680 [16:26:07]ProducePacketName [16:26:07]name=ofd_packets/00018680 [16:26:07]NVStorageDeleteData [16:26:07]Write to MH i2c: 01 00 00 2C 02 2E [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 07 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 C0 0C 01 [16:26:07]RasterBufferAndPrint [16:26:07]line [16:26:07]line [16:26:07]line [16:26:07]line [16:26:07]line [16:26:07]written 0, free lines is 3273 [16:26:07]MH_Cut [16:26:07]Write to MH i2c: D1 01 00 33 02 01 07 [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: D1 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: D1 01 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: D1 01 00 33 02 00 06 [16:26:07]Write to MH i2c: 01 00 00 34 02 36 [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]OFD Sender: No OFD packet to send [16:26:07]*** Cut start [16:26:07]*** Partial cut [16:26:07]*** CUTSNS_PIN = 1 [16:26:07]*** CUTSNS_PIN = 0 [16:26:08]*** Brake cut motor [16:26:08]Read from MH i2c: 01 [16:26:08]MH_I2C_Read... [16:26:08]*** Stop cut motor [16:26:08]*** Cut end [16:26:08]Read from MH i2c: 01 07 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [16:26:08]process_action close_receipt done [16:26:08]requested_data is exist [16:26:08]produce_requested_data [16:26:08]requested_item fm.sn is exist - process it [16:26:08]wFMCommunicate request_size=4 [16:26:08]MH_SAM_APDU [16:26:08]CAPDU: 80 11 00 00 [16:26:08]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:08]Read from MH i2c: E2 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 17 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0A [16:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:26:08]wFMCommunicate OK [16:26:08]requested_item fd.num is exist - process it [16:26:08]SAM_PROTO_GetFieldsCounters [16:26:08]wFMCommunicate request_size=4 [16:26:08]MH_SAM_APDU [16:26:08]CAPDU: 80 13 00 00 [16:26:08]Write to MH i2c: E2 08 00 36 02 80 13 00 00 00 00 00 00 B4 [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:08]Read from MH i2c: E2 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 62 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 62 00 36 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F8 48 00 00 0E 04 04 00 B4 00 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 B9 [16:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F8 48 00 00 0E 04 04 00 B4 00 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 [16:26:08]wFMCommunicate OK [16:26:08]SAM_PROTO_GetFieldsCounters done [16:26:08]requested_item shift.num is exist - process it [16:26:08]requested_item shift.opened is exist - process it [16:26:08]req_shift_opened [16:26:08]FM_GetShiftState [16:26:08]SAM_PROTO_GetShiftState [16:26:08]wFMCommunicate request_size=4 [16:26:08]MH_SAM_APDU [16:26:08]CAPDU: 80 13 01 00 [16:26:08]Write to MH i2c: E2 08 00 37 02 80 13 01 00 00 00 00 00 B6 [16:26:08]Write i2c OK [16:26:08]MH_I2C_Read... [16:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:08]Read from MH i2c: E2 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 0E 00 [16:26:08]MH_I2C_Read... [16:26:08]Read from MH i2c: E2 0E 00 37 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 76 [16:26:08]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:26:08]wFMCommunicate OK [16:26:08]SAM_PROTO_GetShiftState done [16:26:08]FM_GetShiftState done [16:26:08]req_shift_opened done [16:26:08]requested_item shift.open_date is exist - process it [16:26:08]req_shift_open_date [16:26:08]req_shift_open_date done [16:26:08]produce_requested_data done [16:26:08]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18680,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [16:26:08]process_action_free close_receipt [16:26:08]json_value_free [16:26:08]json_value_free done [16:26:08]process_json_proto returns [16:26:08]Send response to host [16:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18680,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [16:26:08]free response buf [16:26:08]execute_script done [16:26:08]execute_script returns [16:26:08]free content buf [16:26:08]Sock 9.Close socket [16:26:08]Sock 9.Thread stoped [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:41]accept exits with 8 [16:51:41]New connection [16:51:41]New thread 3067129188 created [16:51:41]Thread 3067272548 joined [16:51:41]Waiting for new connection... [16:51:41] Sock 8.Parse request [16:51:41]Sock 8.Check first char [16:51:41]Sock 8.First char is OK [16:51:41]request: POST /json_proto HTTP/1.0 [16:51:41]Method: POST [16:51:41]URL: /json_proto [16:51:41]Method is POST - this is cgi request [16:51:41]url: /json_proto [16:51:41]query_string will be loaded in cgi processing [16:51:41]execute_cgi json_proto POST (null) [16:51:41]execute_cgi path=json_proto method=POST [16:51:41]POST find Content-Length [16:51:41]Host: 172.17.62.196:8080 [16:51:41]Content-Length: 616 [16:51:41]Content-Type: application/json [16:51:41] [16:51:41]POST finish read [16:51:41]Found Content-Length = 616 [16:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16605", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:41]execute_script... [16:51: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)16605", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:41]POST & json_proto [16:51:41]process_json_proto [16:51:41]json parsed OK: [16:51:41]protocol is kg_v1.0 [16:51:41]action value=close_receipt [16:51:41]process_action close_receipt [16:51:41]cmd_close_receipt [16:51:41]MH_GetDate [16:51:41]Write to MH i2c: F0 00 00 38 02 29 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: F0 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: F0 09 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: F0 09 00 38 02 00 1E 4B F0 66 CE CC 0E 66 FF [16:51:41]GetLastDocTimeStamp 1727022365 [16:51:41]current date 1727023902 [16:51:41]FM_GetShiftState [16:51:41]SAM_PROTO_GetShiftState [16:51:41]wFMCommunicate request_size=4 [16:51:41]MH_SAM_APDU [16:51:41]CAPDU: 80 13 01 00 [16:51:41]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:41]Read from MH i2c: E2 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 0E 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 78 [16:51:41]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:51:41]wFMCommunicate OK [16:51:41]SAM_PROTO_GetShiftState done [16:51:41]FM_GetShiftState done [16:51:41]opened in 1726963967 [16:51:41]opened+sec_in_day 1727050367 [16:51:41]quantity*price = 14400 [16:51:41]sum+1 = 14401 [16:51:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 77 22.09.2024 16:51 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18681 ФПД: 105053309057423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165142&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18681&fm=105053309057423&tin=02508201610067®Number=0000000000152968&sum=14400 0 [16:51:42]StoreToDocumentArchive [16:51:42]shift 180 fd 18681 [16:51:42]save to /storage/0180/doc_00018681 [16:51:42]save last doc name /storage/0180/doc_00018681 to /storage/kkm_last_doc_name [16:51:42]save OK [16:51:42]Clear old archive folders... [16:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:51:42]tlvbuf is B6DF6010 [16:51:42]SAM_PROTO_ClearQueue [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 09 00 00 [16:51:42]Write to MH i2c: E2 08 00 46 02 80 09 00 00 00 00 00 00 BA [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [16:51:42]RAPDU: 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_ClearQueue done [16:51:42]KKMCreateOFDPacket [16:51:42]OFDProtocolAddRootSTLVToBuf [16:51:42]FM_MakeSignedData [16:51:42]FM_MakeSignedData [16:51:42]SAM_PROTO_SignData [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 0D 01 02 [16:51:42]Write to MH i2c: E2 08 00 47 02 80 0D 01 02 00 00 00 00 C2 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [16:51:42]RAPDU: 90 00 [16:51:42]wFMCommunicate OK [16:51:42]wFMCommunicate request_size=255 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 0D 02 02 FA 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 1E 4B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [16:51:42]Write to MH i2c: E2 02 01 48 02 80 0D 02 02 FA 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 1E 4B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 E9 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [16:51:42]RAPDU: 90 00 [16:51:42]wFMCommunicate OK [16:51:42]wFMCommunicate request_size=28 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 F9 48 00 00 35 04 06 00 5F 8B A1 2B 39 8F [16:51:42]Write to MH i2c: E2 1F 00 49 02 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 F9 48 00 00 35 04 06 00 5F 8B A1 2B 39 8F 00 00 16 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [16:51:42]RAPDU: 90 00 [16:51:42]wFMCommunicate OK [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 0D 03 02 [16:51:42]Write to MH i2c: E2 08 00 4A 02 80 0D 03 02 00 00 00 00 C7 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0B 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0B 00 4A 02 00 EF E2 B4 8D 05 DD A9 85 90 00 EA [16:51:42]RAPDU: EF E2 B4 8D 05 DD A9 85 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_SignData done [16:51:42]FM_MakeSignedData done [16:51:42]CreateOFDProtocolMessage [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 11 00 00 [16:51:42]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 17 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 20 [16:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:51:42]wFMCommunicate OK [16:51:42]CreateOFDProtocolMessage done [16:51:42]OFDSenderStorePacket 18681 [16:51:42]StoreOFDPacket docnum=18681 [16:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 9F 75 19 01 54 F7 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 1E 4B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F9 48 00 00 35 04 06 00 5F 8B A1 2B 39 8F EF E2 B4 8D 05 DD A9 85 [16:51:42]CheckFolder [16:51:42]dirname=/storage/ofd_packets [16:51:42]CheckFolder done [16:51:42]ProducePacketName [16:51:42]name=ofd_packets/00018681 [16:51:42]NVStorageSaveData ofd_packets/00018681 [16:51:42]File name is /storage/ofd_packets/00018681 [16:51:42]Write 319 bytes [16:51:42]NVStorageSaveData done [16:51:42]OFDSenderStorePacket done [16:51:42]KKMCreateOFDPacket done [16:51:42]NVStorageSaveData kkm_last_timestamp [16:51:42]File name is /storage/kkm_last_timestamp [16:51:42]Write 4 bytes [16:51:42]NVStorageSaveData done [16:51:42]ExternCall_PrintAddStr [16:51:42]wPrintStart [16:51:42]Write to MH i2c: 01 00 00 4C 02 4E [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: 01 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: 01 07 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 FF 0F 63 [16:51:42]RasterBufferAndPrint [16:51:42]line Счет N : (3)16605 [16:51:42]line ИНН: 02508201610067 [16:51:42]line Контрольно-Кассовый Чек [16:51:42]line ПРОДАЖА [16:51:42]line Товар: 47803008 [16:51:42]line Сигареты Winston XS Blue [16:51:42]line 1.000 * 144.00 [16:51:42]line = 144.00 [16:51:42]line НДС 12% НСП 1% [16:51:42]line > о реализуемом товаре [16:51:42]line ИТОГО: 144.00 [16:51:42]line НСП 1% : 1.27 [16:51:42]line НДС 12% : 15.29 [16:51:42]line Наличными: 144.00 [16:51:42]line Безнал.: 0.00 [16:51:42]line Место: АЗС № 176 "Партнер Нефть" [16:51:42]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:51:42]line СНО: Общий режим [16:51:43]line Чек 77 22.09.2024 16:51 [16:51:43]line Смена: 180 ФФД: 1.0 [16:51:43]line ЗНМ: 0300000010 [16:51:43]line РНМ: 0000000000152968 [16:51:43]line Версия ККМ: v1.0 [16:51:43]line ФМ: 0000000000959456 [16:51:43]line ФД: 18681 [16:51:43]line ФПД: 105053309057423 [16:51:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165142&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18681&fm=105053309057423&tin=02508201610067®Number=0000000000152968&sum=14400 [16:51:43]line 0 [16:51:43]OFD Sender: Processing packet 18681 [packets to send 7, broken 6] [16:51:43]ProducePacketName [16:51:43]name=ofd_packets/00018681 [16:51:43]OFD Sender: To server: pG, [16:51:43]CommunicateWithHost lk.salyk.kg:30040 [16:51:43]ConnectInit lk.salyk.kg [16:51:43]written 0, free lines is 4095 [16:51:43]Connected sock=10 [16:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 9F 75 19 01 54 F7 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 1E 4B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 F9 48 00 00 35 04 06 00 5F 8B A1 2B 39 8F EF E2 B4 8D 05 DD A9 85 [16:51:43]Write to MH i2c: 01 00 00 74 02 76 [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: 01 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: 01 07 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 21 0D AB [16:51:43]RasterBufferAndPrint [16:51:43]line [16:51:43]line [16:51:43]line [16:51:43]line [16:51:43]line [16:51:43]written 0, free lines is 3367 [16:51:43]MH_Cut [16:51:43]Write to MH i2c: D1 01 00 7B 02 01 4F [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: D1 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: D1 01 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: D1 01 00 7B 02 00 4E [16:51:43]Write to MH i2c: 01 00 00 7C 02 7E [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 37 A3 47 00 BC 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 39 35 39 34 35 36 10 04 04 00 F9 48 00 00 F4 03 04 00 85 F4 EF 66 B6 04 01 00 00 CF 9A 78 6F 37 6B 0D 0A [16:51:43]CommunicateWithHost err = 0 [16:51:43]CheckOFDResponse [16:51:43]1017 (14) - 77093643461234 [16:51:43]1041 (16) - 0000000000959456 [16:51:43]1040 (4) - 18681 [16:51:43]1012 (4) - 22.09.2024 10:42 [16:51:43]1206 (1) - 0 [16:51:43]OFD Sender: Remove packet 18681 [16:51:43]ProducePacketName [16:51:43]name=ofd_packets/00018681 [16:51:43]NVStorageDeleteData [16:51:44]OFD Sender: No OFD packet to send [16:51:44]*** Cut start [16:51:44]*** Partial cut [16:51:44]*** CUTSNS_PIN = 1 [16:51:44]*** CUTSNS_PIN = 0 [16:51:44]*** Brake cut motor [16:51:44]Read from MH i2c: 01 [16:51:44]MH_I2C_Read... [16:51:44]*** Stop cut motor [16:51:44]*** Cut end [16:51:44]Read from MH i2c: 01 07 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [16:51:44]process_action close_receipt done [16:51:44]requested_data is exist [16:51:44]produce_requested_data [16:51:44]requested_item fm.sn is exist - process it [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 11 00 00 [16:51:44]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 17 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 52 [16:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:51:45]wFMCommunicate OK [16:51:45]requested_item fd.num is exist - process it [16:51:45]SAM_PROTO_GetFieldsCounters [16:51:45]wFMCommunicate request_size=4 [16:51:45]MH_SAM_APDU [16:51:45]CAPDU: 80 13 00 00 [16:51:45]Write to MH i2c: E2 08 00 7E 02 80 13 00 00 00 00 00 00 FC [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:45]Read from MH i2c: E2 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 62 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 62 00 7E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F9 48 00 00 0E 04 04 00 B4 00 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 05 [16:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 F9 48 00 00 0E 04 04 00 B4 00 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 [16:51:45]wFMCommunicate OK [16:51:45]SAM_PROTO_GetFieldsCounters done [16:51:45]requested_item shift.num is exist - process it [16:51:45]requested_item shift.opened is exist - process it [16:51:45]req_shift_opened [16:51:45]FM_GetShiftState [16:51:45]SAM_PROTO_GetShiftState [16:51:45]wFMCommunicate request_size=4 [16:51:45]MH_SAM_APDU [16:51:45]CAPDU: 80 13 01 00 [16:51:45]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:45]Read from MH i2c: E2 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 0E 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 BE [16:51:45]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [16:51:45]wFMCommunicate OK [16:51:45]SAM_PROTO_GetShiftState done [16:51:45]FM_GetShiftState done [16:51:45]req_shift_opened done [16:51:45]requested_item shift.open_date is exist - process it [16:51:45]req_shift_open_date [16:51:45]req_shift_open_date done [16:51:45]produce_requested_data done [16:51:45]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18681,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [16:51:45]process_action_free close_receipt [16:51:45]json_value_free [16:51:45]json_value_free done [16:51:45]process_json_proto returns [16:51:45]Send response to host [16:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18681,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [16:51:45]free response buf [16:51:45]execute_script done [16:51:45]execute_script returns [16:51:45]free content buf [16:51:45]Sock 8.Close socket [16:51:45]Sock 8.Thread stoped [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:13]accept exits with 9 [17:05:13]New connection [17:05:13]New thread 3067272548 created [17:05:13]Thread 3067129188 joined [17:05:13]Waiting for new connection... [17:05:13] Sock 9.Parse request [17:05:13]Sock 9.Check first char [17:05:13]Sock 9.First char is OK [17:05:13]request: POST /json_proto HTTP/1.0 [17:05:13]Method: POST [17:05:13]URL: /json_proto [17:05:13]Method is POST - this is cgi request [17:05:13]url: /json_proto [17:05:13]query_string will be loaded in cgi processing [17:05:13]execute_cgi json_proto POST (null) [17:05:13]execute_cgi path=json_proto method=POST [17:05:13]POST find Content-Length [17:05:13]Host: 172.17.62.196:8080 [17:05:13]Content-Length: 629 [17:05:13]Content-Type: application/json [17:05:13] [17:05:13]POST finish read [17:05:13]Found Content-Length = 629 [17:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16606", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "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" ] } } [17:05:13]execute_script... [17:05: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)16606", "tax_sys" : 0, "items" : [ { "code": "5449000066473", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "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" ] } } [17:05:13]POST & json_proto [17:05:13]process_json_proto [17:05:13]json parsed OK: [17:05:13]protocol is kg_v1.0 [17:05:13]action value=close_receipt [17:05:13]process_action close_receipt [17:05:13]cmd_close_receipt [17:05:13]MH_GetDate [17:05:13]Write to MH i2c: F0 00 00 80 02 71 [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: F0 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: F0 09 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: F0 09 00 80 02 00 4A 4E F0 66 CE CC 0E 66 76 [17:05:13]GetLastDocTimeStamp 1727023902 [17:05:13]current date 1727024714 [17:05:13]FM_GetShiftState [17:05:13]SAM_PROTO_GetShiftState [17:05:13]wFMCommunicate request_size=4 [17:05:13]MH_SAM_APDU [17:05:13]CAPDU: 80 13 01 00 [17:05:13]Write to MH i2c: E2 08 00 81 02 80 13 01 00 00 00 00 00 00 [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:13]Read from MH i2c: E2 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 0E 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: E2 0E 00 81 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C0 [17:05:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:05:13]wFMCommunicate OK [17:05:13]SAM_PROTO_GetShiftState done [17:05:13]FM_GetShiftState done [17:05:13]opened in 1726963967 [17:05:13]opened+sec_in_day 1727050367 [17:05:13]quantity*price = 4200 [17:05:13]sum+1 = 4201 [17:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 78 22.09.2024 17:05 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18682 ФПД: 113727955932144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170514&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18682&fm=113727955932144&tin=02508201610067®Number=0000000000152968&sum=4200 0 [17:05:14]StoreToDocumentArchive [17:05:14]shift 180 fd 18682 [17:05:14]save to /storage/0180/doc_00018682 [17:05:14]save last doc name /storage/0180/doc_00018682 to /storage/kkm_last_doc_name [17:05:14]save OK [17:05:14]Clear old archive folders... [17:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:05:14]tlvbuf is 001C3250 [17:05:14]SAM_PROTO_ClearQueue [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 09 00 00 [17:05:14]Write to MH i2c: E2 08 00 8E 02 80 09 00 00 00 00 00 00 02 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_ClearQueue done [17:05:14]KKMCreateOFDPacket [17:05:14]OFDProtocolAddRootSTLVToBuf [17:05:14]FM_MakeSignedData [17:05:14]FM_MakeSignedData [17:05:14]SAM_PROTO_SignData [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 01 02 [17:05:14]Write to MH i2c: E2 08 00 8F 02 80 0D 01 02 00 00 00 00 0A [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=255 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 4A 4E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [17:05:14]Write to MH i2c: E2 02 01 90 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 4A 4E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 3C [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=28 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 FA 48 00 00 35 04 06 00 67 6F 5A 6A 13 F0 [17:05:14]Write to MH i2c: E2 1F 00 91 02 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 FA 48 00 00 35 04 06 00 67 6F 5A 6A 13 F0 00 00 7E [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 03 00 91 02 00 90 00 07 [17:05:14]RAPDU: 90 00 [17:05:14]wFMCommunicate OK [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 0D 03 02 [17:05:14]Write to MH i2c: E2 08 00 92 02 80 0D 03 02 00 00 00 00 0F [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]OFD Sender: No OFD packet to send [17:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 0B 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 0B 00 92 02 00 07 DE 85 E8 21 07 4F EA 90 00 C3 [17:05:14]RAPDU: 07 DE 85 E8 21 07 4F EA 90 00 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_SignData done [17:05:14]FM_MakeSignedData done [17:05:14]CreateOFDProtocolMessage [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 11 00 00 [17:05:14]Write to MH i2c: E2 08 00 93 02 80 11 00 00 00 00 00 00 0F [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:15]Read from MH i2c: E2 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 17 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 17 00 93 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 68 [17:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:05:15]wFMCommunicate OK [17:05:15]CreateOFDProtocolMessage done [17:05:15]OFDSenderStorePacket 18682 [17:05:15]StoreOFDPacket docnum=18682 [17:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 7F 36 19 01 BD AC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 4A 4E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FA 48 00 00 35 04 06 00 67 6F 5A 6A 13 F0 07 DE 85 E8 21 07 4F EA [17:05:15]CheckFolder [17:05:15]dirname=/storage/ofd_packets [17:05:15]CheckFolder done [17:05:15]ProducePacketName [17:05:15]name=ofd_packets/00018682 [17:05:15]NVStorageSaveData ofd_packets/00018682 [17:05:15]File name is /storage/ofd_packets/00018682 [17:05:15]Write 319 bytes [17:05:15]NVStorageSaveData done [17:05:15]OFDSenderStorePacket done [17:05:15]KKMCreateOFDPacket done [17:05:15]NVStorageSaveData kkm_last_timestamp [17:05:15]File name is /storage/kkm_last_timestamp [17:05:15]Write 4 bytes [17:05:15]NVStorageSaveData done [17:05:15]ExternCall_PrintAddStr [17:05:15]wPrintStart [17:05:15]Write to MH i2c: 01 00 00 94 02 96 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 FF 0F AB [17:05:15]RasterBufferAndPrint [17:05:15]line Счет N : (3)16606 [17:05:15]line ИНН: 02508201610067 [17:05:15]line Контрольно-Кассовый Чек [17:05:15]line ПРОДАЖА [17:05:15]line Товар: 5449000066473 [17:05:15]line Вода Бонаква 1л [17:05:15]line 1.000 * 42.00 [17:05:15]line = 42.00 [17:05:15]line НДС 12% НСП 1% [17:05:15]line > о реализуемом товаре [17:05:15]line ИТОГО: 42.00 [17:05:15]line НСП 1% : 0.37 [17:05:15]line НДС 12% : 4.46 [17:05:15]line Наличными: 42.00 [17:05:15]line Безнал.: 0.00 [17:05:15]line Место: АЗС № 176 "Партнер Нефть" [17:05:15]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:05:15]line СНО: Общий режим [17:05:15]line Чек 78 22.09.2024 17:05 [17:05:15]line Смена: 180 ФФД: 1.0 [17:05:15]line ЗНМ: 0300000010 [17:05:15]line РНМ: 0000000000152968 [17:05:15]line Версия ККМ: v1.0 [17:05:15]line ФМ: 0000000000959456 [17:05:15]line ФД: 18682 [17:05:15]line ФПД: 113727955932144 [17:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170514&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18682&fm=113727955932144&tin=02508201610067®Number=0000000000152968&sum=4200 [17:05:15]line 0 [17:05:15]OFD Sender: Processing packet 18682 [packets to send 7, broken 6] [17:05:15]ProducePacketName [17:05:15]name=ofd_packets/00018682 [17:05:15]OFD Sender: To server: pG, [17:05:15]CommunicateWithHost lk.salyk.kg:30040 [17:05:15]ConnectInit lk.salyk.kg [17:05:15]written 0, free lines is 4095 [17:05:15]Connected sock=10 [17:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 7F 36 19 01 BD AC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 36 36 34 37 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 4A 4E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FA 48 00 00 35 04 06 00 67 6F 5A 6A 13 F0 07 DE 85 E8 21 07 4F EA [17:05:15]Write to MH i2c: 01 00 00 BC 02 BE [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 23 0D F5 [17:05:15]RasterBufferAndPrint [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]line [17:05:15]written 0, free lines is 3369 [17:05:15]MH_Cut [17:05:15]Write to MH i2c: D1 01 00 C3 02 01 97 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 01 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: D1 01 00 C3 02 00 96 [17:05:15]Write to MH i2c: 01 00 00 C4 02 C6 [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 0B E8 47 00 05 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 39 35 39 34 35 36 10 04 04 00 FA 48 00 00 F4 03 04 00 B1 F7 EF 66 B6 04 01 00 00 77 70 0E E5 5E 08 95 95 [17:05:15]CommunicateWithHost err = 0 [17:05:15]CheckOFDResponse [17:05:15]1017 (14) - 77093643461234 [17:05:15]1041 (16) - 0000000000959456 [17:05:15]1040 (4) - 18682 [17:05:15]1012 (4) - 22.09.2024 10:55 [17:05:15]1206 (1) - 0 [17:05:15]OFD Sender: Remove packet 18682 [17:05:15]ProducePacketName [17:05:15]name=ofd_packets/00018682 [17:05:15]NVStorageDeleteData [17:05:16]OFD Sender: No OFD packet to send [17:05:16]*** Cut start [17:05:16]*** Partial cut [17:05:16]*** CUTSNS_PIN = 1 [17:05:16]*** CUTSNS_PIN = 0 [17:05:16]*** Brake cut motor [17:05:17]Read from MH i2c: 01 [17:05:17]MH_I2C_Read... [17:05:17]*** Stop cut motor [17:05:17]*** Cut end [17:05:17]Read from MH i2c: 01 07 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [17:05:17]process_action close_receipt done [17:05:17]requested_data is exist [17:05:17]produce_requested_data [17:05:17]requested_item fm.sn is exist - process it [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 11 00 00 [17:05:17]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 17 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9A [17:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:05:17]wFMCommunicate OK [17:05:17]requested_item fd.num is exist - process it [17:05:17]SAM_PROTO_GetFieldsCounters [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 13 00 00 [17:05:17]Write to MH i2c: E2 08 00 C6 02 80 13 00 00 00 00 00 00 44 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 62 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 62 00 C6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FA 48 00 00 0E 04 04 00 B4 00 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 51 [17:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FA 48 00 00 0E 04 04 00 B4 00 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 [17:05:17]wFMCommunicate OK [17:05:17]SAM_PROTO_GetFieldsCounters done [17:05:17]requested_item shift.num is exist - process it [17:05:17]requested_item shift.opened is exist - process it [17:05:17]req_shift_opened [17:05:17]FM_GetShiftState [17:05:17]SAM_PROTO_GetShiftState [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 13 01 00 [17:05:17]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 0E 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 06 [17:05:17]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:05:17]wFMCommunicate OK [17:05:17]SAM_PROTO_GetShiftState done [17:05:17]FM_GetShiftState done [17:05:17]req_shift_opened done [17:05:17]requested_item shift.open_date is exist - process it [17:05:17]req_shift_open_date [17:05:17]req_shift_open_date done [17:05:17]produce_requested_data done [17:05:17]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18682,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:05:17]process_action_free close_receipt [17:05:17]json_value_free [17:05:17]json_value_free done [17:05:17]process_json_proto returns [17:05:17]Send response to host [17:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18682,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:05:17]free response buf [17:05:17]execute_script done [17:05:17]execute_script returns [17:05:17]free content buf [17:05:17]Sock 9.Close socket [17:05:17]Sock 9.Thread stoped [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:50]accept exits with 8 [17:10:50]New connection [17:10:50]New thread 3067129188 created [17:10:50]Thread 3067272548 joined [17:10:50]Waiting for new connection... [17:10:50] Sock 8.Parse request [17:10:50]Sock 8.Check first char [17:10:50]Sock 8.First char is OK [17:10:50]request: POST /json_proto HTTP/1.0 [17:10:50]Method: POST [17:10:50]URL: /json_proto [17:10:50]Method is POST - this is cgi request [17:10:50]url: /json_proto [17:10:50]query_string will be loaded in cgi processing [17:10:50]execute_cgi json_proto POST (null) [17:10:50]execute_cgi path=json_proto method=POST [17:10:50]POST find Content-Length [17:10:50]Host: 172.17.62.196:8080 [17:10:50]Content-Length: 697 [17:10:50]Content-Type: application/json [17:10:50] [17:10:50]POST finish read [17:10:50]Found Content-Length = 697 [17:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16607", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:50]execute_script... [17: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)16607", "tax_sys" : 0, "items" : [ { "code": "4680988568943", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:50]POST & json_proto [17:10:50]process_json_proto [17:10:50]json parsed OK: [17:10:50]protocol is kg_v1.0 [17:10:50]action value=close_receipt [17:10:50]process_action close_receipt [17:10:50]cmd_close_receipt [17:10:50]MH_GetDate [17:10:50]Write to MH i2c: F0 00 00 C8 02 B9 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: F0 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: F0 09 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: F0 09 00 C8 02 00 9B 4F F0 66 CE CC 0E 66 10 [17:10:50]GetLastDocTimeStamp 1727024714 [17:10:50]current date 1727025051 [17:10:50]FM_GetShiftState [17:10:50]SAM_PROTO_GetShiftState [17:10:50]wFMCommunicate request_size=4 [17:10:50]MH_SAM_APDU [17:10:50]CAPDU: 80 13 01 00 [17:10:50]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:50]Read from MH i2c: E2 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 0E 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 08 [17:10:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:10:50]wFMCommunicate OK [17:10:50]SAM_PROTO_GetShiftState done [17:10:50]FM_GetShiftState done [17:10:50]opened in 1726963967 [17:10:50]opened+sec_in_day 1727050367 [17:10:50]quantity*price = 16500 [17:10:50]sum+1 = 16501 [17:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 79 22.09.2024 17:10 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18683 ФПД: 32064261295993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171051&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18683&fm=32064261295993&tin=02508201610067®Number=0000000000152968&sum=16500 0 [17:10:51]StoreToDocumentArchive [17:10:51]shift 180 fd 18683 [17:10:51]save to /storage/0180/doc_00018683 [17:10:51]save last doc name /storage/0180/doc_00018683 to /storage/kkm_last_doc_name [17:10:51]save OK [17:10:51]Clear old archive folders... [17:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:10:51]tlvbuf is 001C9FE0 [17:10:51]SAM_PROTO_ClearQueue [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 09 00 00 [17:10:51]Write to MH i2c: E2 08 00 D6 02 80 09 00 00 00 00 00 00 4A [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [17:10:51]RAPDU: 90 00 [17:10:51]wFMCommunicate OK [17:10:51]SAM_PROTO_ClearQueue done [17:10:51]KKMCreateOFDPacket [17:10:51]OFDProtocolAddRootSTLVToBuf [17:10:51]FM_MakeSignedData [17:10:51]FM_MakeSignedData [17:10:51]SAM_PROTO_SignData [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 0D 01 02 [17:10:51]Write to MH i2c: E2 08 00 D7 02 80 0D 01 02 00 00 00 00 52 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [17:10:51]RAPDU: 90 00 [17:10:51]wFMCommunicate OK [17:10:51]wFMCommunicate request_size=255 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9B 4F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:10:51]Write to MH i2c: E2 02 01 D8 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9B 4F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5C [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]OFD Sender: No OFD packet to send [17:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [17:10:51]RAPDU: 90 00 [17:10:51]wFMCommunicate OK [17:10:51]wFMCommunicate request_size=53 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 0D 02 02 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FB 48 00 00 35 04 06 00 1D 29 8A E7 8F 79 [17:10:51]Write to MH i2c: E2 38 00 D9 02 80 0D 02 02 30 00 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FB 48 00 00 35 04 06 00 1D 29 8A E7 8F 79 00 00 58 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [17:10:51]RAPDU: 90 00 [17:10:51]wFMCommunicate OK [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 0D 03 02 [17:10:51]Write to MH i2c: E2 08 00 DA 02 80 0D 03 02 00 00 00 00 57 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:52]Read from MH i2c: E2 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 0B 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 0B 00 DA 02 00 FD EF 73 8E 3E D3 1A F2 90 00 62 [17:10:52]RAPDU: FD EF 73 8E 3E D3 1A F2 90 00 [17:10:52]wFMCommunicate OK [17:10:52]SAM_PROTO_SignData done [17:10:52]FM_MakeSignedData done [17:10:52]CreateOFDProtocolMessage [17:10:52]wFMCommunicate request_size=4 [17:10:52]MH_SAM_APDU [17:10:52]CAPDU: 80 11 00 00 [17:10:52]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:52]Read from MH i2c: E2 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 17 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B0 [17:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:10:52]wFMCommunicate OK [17:10:52]CreateOFDProtocolMessage done [17:10:52]OFDSenderStorePacket 18683 [17:10:52]StoreOFDPacket docnum=18683 [17:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 71 80 32 01 DB 3A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9B 4F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FB 48 00 00 35 04 06 00 1D 29 8A E7 8F 79 FD EF 73 8E 3E D3 1A F2 [17:10:52]CheckFolder [17:10:52]dirname=/storage/ofd_packets [17:10:52]CheckFolder done [17:10:52]ProducePacketName [17:10:52]name=ofd_packets/00018683 [17:10:52]NVStorageSaveData ofd_packets/00018683 [17:10:52]File name is /storage/ofd_packets/00018683 [17:10:52]Write 344 bytes [17:10:52]NVStorageSaveData done [17:10:52]OFDSenderStorePacket done [17:10:52]KKMCreateOFDPacket done [17:10:52]NVStorageSaveData kkm_last_timestamp [17:10:52]File name is /storage/kkm_last_timestamp [17:10:52]Write 4 bytes [17:10:52]NVStorageSaveData done [17:10:52]ExternCall_PrintAddStr [17:10:52]wPrintStart [17:10:52]Write to MH i2c: 01 00 00 DC 02 DE [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 FF 0F F3 [17:10:52]RasterBufferAndPrint [17:10:52]line Счет N : (3)16607 [17:10:52]line ИНН: 02508201610067 [17:10:52]line Контрольно-Кассовый Чек [17:10:52]line ПРОДАЖА [17:10:52]line Товар: 4680988568943 [17:10:52]line Жид/ст ПН апельсин летняя 4,5л [17:10:52]line 1.000 * 165.00 [17:10:52]line = 165.00 [17:10:52]line НДС 12% НСП 1% [17:10:52]line > о реализуемом товаре [17:10:52]line ИТОГО: 165.00 [17:10:52]line НСП 1% : 1.46 [17:10:52]line НДС 12% : 17.52 [17:10:52]line Наличными: 165.00 [17:10:52]line Безнал.: 0.00 [17:10:52]line Место: АЗС № 176 "Партнер Нефть" [17:10:52]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:10:52]line СНО: Общий режим [17:10:52]line Чек 79 22.09.2024 17:10 [17:10:52]line Смена: 180 ФФД: 1.0 [17:10:52]line ЗНМ: 0300000010 [17:10:52]line РНМ: 0000000000152968 [17:10:52]line Версия ККМ: v1.0 [17:10:52]line ФМ: 0000000000959456 [17:10:52]line ФД: 18683 [17:10:52]line ФПД: 32064261295993 [17:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171051&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18683&fm=32064261295993&tin=02508201610067®Number=0000000000152968&sum=16500 [17:10:52]line 0 [17:10:52]OFD Sender: Processing packet 18683 [packets to send 7, broken 6] [17:10:52]ProducePacketName [17:10:52]name=ofd_packets/00018683 [17:10:52]OFD Sender: To server: pG, [17:10:52]CommunicateWithHost lk.salyk.kg:30040 [17:10:52]ConnectInit lk.salyk.kg [17:10:52]written 0, free lines is 4095 [17:10:52]Write to MH i2c: 01 00 00 05 03 08 [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 03 0D 1F [17:10:52]RasterBufferAndPrint [17:10:52]line [17:10:52]line [17:10:52]line [17:10:52]line [17:10:52]line [17:10:52]written 0, free lines is 3337 [17:10:52]MH_Cut [17:10:52]Write to MH i2c: D1 01 00 0C 03 01 E1 [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D1 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D1 01 00 [17:10:52]MH_I2C_Read... [17:10:52]Read from MH i2c: D1 01 00 0C 03 00 E0 [17:10:52]Write to MH i2c: 01 00 00 0D 03 10 [17:10:52]Write i2c OK [17:10:52]MH_I2C_Read... [17:10:53]*** Cut start [17:10:53]*** Partial cut [17:10:53]*** CUTSNS_PIN = 1 [17:10:53]*** CUTSNS_PIN = 0 [17:10:53]*** Brake cut motor [17:10:54]Read from MH i2c: 01 [17:10:54]MH_I2C_Read... [17:10:54]*** Stop cut motor [17:10:54]*** Cut end [17:10:54]Read from MH i2c: 01 07 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [17:10:54]process_action close_receipt done [17:10:54]requested_data is exist [17:10:54]produce_requested_data [17:10:54]requested_item fm.sn is exist - process it [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 11 00 00 [17:10:54]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 17 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E4 [17:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:10:54]wFMCommunicate OK [17:10:54]requested_item fd.num is exist - process it [17:10:54]SAM_PROTO_GetFieldsCounters [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 13 00 00 [17:10:54]Write to MH i2c: E2 08 00 0F 03 80 13 00 00 00 00 00 00 8E [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 62 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 62 00 0F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FB 48 00 00 0E 04 04 00 B4 00 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 9F [17:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FB 48 00 00 0E 04 04 00 B4 00 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 [17:10:54]wFMCommunicate OK [17:10:54]SAM_PROTO_GetFieldsCounters done [17:10:54]requested_item shift.num is exist - process it [17:10:54]requested_item shift.opened is exist - process it [17:10:54]req_shift_opened [17:10:54]FM_GetShiftState [17:10:54]SAM_PROTO_GetShiftState [17:10:54]wFMCommunicate request_size=4 [17:10:54]MH_SAM_APDU [17:10:54]CAPDU: 80 13 01 00 [17:10:54]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:54]Read from MH i2c: E2 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 0E 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 50 [17:10:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:10:54]wFMCommunicate OK [17:10:54]SAM_PROTO_GetShiftState done [17:10:54]FM_GetShiftState done [17:10:54]req_shift_opened done [17:10:54]requested_item shift.open_date is exist - process it [17:10:54]req_shift_open_date [17:10:54]req_shift_open_date done [17:10:54]produce_requested_data done [17:10:54]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18683,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:10:54]process_action_free close_receipt [17:10:54]json_value_free [17:10:54]json_value_free done [17:10:54]process_json_proto returns [17:10:54]Send response to host [17:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18683,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:10:54]free response buf [17:10:54]execute_script done [17:10:54]execute_script returns [17:10:54]free content buf [17:10:54]Sock 8.Close socket [17:10:54]Sock 8.Thread stoped [17:12:48]accept exits with 9 [17:12:48]New connection [17:12:48]New thread 3067272548 created [17:12:48]Thread 3067129188 joined [17:12:48]Waiting for new connection... [17:12:48] Sock 9.Parse request [17:12:48]Sock 9.Check first char [17:12:48]Sock 9.First char is OK [17:12:48]request: POST /json_proto HTTP/1.0 [17:12:48]Method: POST [17:12:48]URL: /json_proto [17:12:48]Method is POST - this is cgi request [17:12:48]url: /json_proto [17:12:48]query_string will be loaded in cgi processing [17:12:48]execute_cgi json_proto POST (null) [17:12:48]execute_cgi path=json_proto method=POST [17:12:48]POST find Content-Length [17:12:48]Host: 172.17.62.196:8080 [17:12:48]Content-Length: 790 [17:12:48]Content-Type: application/json [17:12:48] [17:12:48]POST finish read [17:12:48]Found Content-Length = 790 [17:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16608", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:48]execute_script... [17:12: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)16608", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:48]POST & json_proto [17:12:48]process_json_proto [17:12:48]json parsed OK: [17:12:48]protocol is kg_v1.0 [17:12:48]action value=close_receipt [17:12:48]process_action close_receipt [17:12:48]cmd_close_receipt [17:12:48]MH_GetDate [17:12:48]Write to MH i2c: F0 00 00 11 03 03 [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: F0 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: F0 09 00 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: F0 09 00 11 03 00 11 50 F0 66 CE CC 0E 66 D1 [17:12:48]GetLastDocTimeStamp 1727025051 [17:12:48]current date 1727025169 [17:12:48]FM_GetShiftState [17:12:48]SAM_PROTO_GetShiftState [17:12:48]wFMCommunicate request_size=4 [17:12:48]MH_SAM_APDU [17:12:48]CAPDU: 80 13 01 00 [17:12:48]Write to MH i2c: E2 08 00 12 03 80 13 01 00 00 00 00 00 92 [17:12:48]Write i2c OK [17:12:48]MH_I2C_Read... [17:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:48]Read from MH i2c: E2 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: E2 0E 00 [17:12:48]MH_I2C_Read... [17:12:48]Read from MH i2c: E2 0E 00 12 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 52 [17:12:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:12:48]wFMCommunicate OK [17:12:48]SAM_PROTO_GetShiftState done [17:12:48]FM_GetShiftState done [17:12:48]opened in 1726963967 [17:12:48]opened+sec_in_day 1727050367 [17:12:48]quantity*price = 5000 [17:12:48]sum+1 = 5001 [17:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 80 22.09.2024 17:12 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18684 ФПД: 89252635750507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171249&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18684&fm=89252635750507&tin=02508201610067®Number=0000000000152968&sum=5000 0 [17:12:49]StoreToDocumentArchive [17:12:49]shift 180 fd 18684 [17:12:49]save to /storage/0180/doc_00018684 [17:12:49]save last doc name /storage/0180/doc_00018684 to /storage/kkm_last_doc_name [17:12:49]save OK [17:12:49]Clear old archive folders... [17:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:12:49]tlvbuf is 001CCFF0 [17:12:49]SAM_PROTO_ClearQueue [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 09 00 00 [17:12:49]Write to MH i2c: E2 08 00 1F 03 80 09 00 00 00 00 00 00 94 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [17:12:49]RAPDU: 90 00 [17:12:49]wFMCommunicate OK [17:12:49]SAM_PROTO_ClearQueue done [17:12:49]KKMCreateOFDPacket [17:12:49]OFDProtocolAddRootSTLVToBuf [17:12:49]FM_MakeSignedData [17:12:49]FM_MakeSignedData [17:12:49]SAM_PROTO_SignData [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 0D 01 02 [17:12:49]Write to MH i2c: E2 08 00 20 03 80 0D 01 02 00 00 00 00 9C [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [17:12:49]RAPDU: 90 00 [17:12:49]wFMCommunicate OK [17:12:49]wFMCommunicate request_size=255 [17:12:49]MH_SAM_APDU [17:12:49]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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [17:12:49]Write to MH i2c: E2 02 01 21 03 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 75 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [17:12:49]RAPDU: 90 00 [17:12:49]wFMCommunicate OK [17:12:49]wFMCommunicate request_size=28 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 FC 48 00 00 35 04 06 00 51 2C BF A6 30 6B [17:12:49]Write to MH i2c: E2 1F 00 22 03 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 FC 48 00 00 35 04 06 00 51 2C BF A6 30 6B 00 00 F2 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [17:12:49]RAPDU: 90 00 [17:12:49]wFMCommunicate OK [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 0D 03 02 [17:12:49]Write to MH i2c: E2 08 00 23 03 80 0D 03 02 00 00 00 00 A1 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:49]Read from MH i2c: E2 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 0B 00 [17:12:49]MH_I2C_Read... [17:12:49]Read from MH i2c: E2 0B 00 23 03 00 09 C3 B2 21 E3 1E 6A F2 90 00 9E [17:12:49]RAPDU: 09 C3 B2 21 E3 1E 6A F2 90 00 [17:12:49]wFMCommunicate OK [17:12:49]SAM_PROTO_SignData done [17:12:49]FM_MakeSignedData done [17:12:49]CreateOFDProtocolMessage [17:12:49]wFMCommunicate request_size=4 [17:12:49]MH_SAM_APDU [17:12:49]CAPDU: 80 11 00 00 [17:12:49]Write to MH i2c: E2 08 00 24 03 80 11 00 00 00 00 00 00 A1 [17:12:49]Write i2c OK [17:12:49]MH_I2C_Read... [17:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:50]Read from MH i2c: E2 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 17 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 17 00 24 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FA [17:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:12:50]wFMCommunicate OK [17:12:50]CreateOFDProtocolMessage done [17:12:50]OFDSenderStorePacket 18684 [17:12:50]StoreOFDPacket docnum=18684 [17:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 FE D2 19 01 BE 9A 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FC 48 00 00 35 04 06 00 51 2C BF A6 30 6B 09 C3 B2 21 E3 1E 6A F2 [17:12:50]CheckFolder [17:12:50]dirname=/storage/ofd_packets [17:12:50]CheckFolder done [17:12:50]ProducePacketName [17:12:50]name=ofd_packets/00018684 [17:12:50]NVStorageSaveData ofd_packets/00018684 [17:12:50]File name is /storage/ofd_packets/00018684 [17:12:50]Write 319 bytes [17:12:50]NVStorageSaveData done [17:12:50]OFDSenderStorePacket done [17:12:50]KKMCreateOFDPacket done [17:12:50]NVStorageSaveData kkm_last_timestamp [17:12:50]File name is /storage/kkm_last_timestamp [17:12:50]Write 4 bytes [17:12:50]NVStorageSaveData done [17:12:50]ExternCall_PrintAddStr [17:12:50]wPrintStart [17:12:50]Write to MH i2c: 01 00 00 25 03 28 [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 07 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 FF 0F 3D [17:12:50]RasterBufferAndPrint [17:12:50]line Счет N : (3)16608 [17:12:50]line ИНН: 02508201610067 [17:12:50]line Контрольно-Кассовый Чек [17:12:50]line ПРОДАЖА [17:12:50]line Товар: 4700000160358 [17:12:50]line Вода Легенда 1л [17:12:50]line 1.000 * 50.00 [17:12:50]line = 50.00 [17:12:50]line НДС 12% НСП 1% [17:12:50]line > о реализуемом товаре [17:12:50]line ИТОГО: 50.00 [17:12:50]line НСП 1% : 0.44 [17:12:50]line НДС 12% : 5.31 [17:12:50]line Наличными: 0.00 [17:12:50]line Безнал.: 50.00 [17:12:50]line Место: АЗС № 176 "Партнер Нефть" [17:12:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:12:50]line СНО: Общий режим [17:12:50]line Чек 80 22.09.2024 17:12 [17:12:50]line Смена: 180 ФФД: 1.0 [17:12:50]line ЗНМ: 0300000010 [17:12:50]line РНМ: 0000000000152968 [17:12:50]line Версия ККМ: v1.0 [17:12:50]line Платежная система: O! деньги [17:12:50]line ФМ: 0000000000959456 [17:12:50]line ФД: 18684 [17:12:50]line ФПД: 89252635750507 [17:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171249&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18684&fm=89252635750507&tin=02508201610067®Number=0000000000152968&sum=5000 [17:12:50]line 0 [17:12:50]written 0, free lines is 4095 [17:12:50]Write to MH i2c: 01 00 00 4F 03 52 [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 07 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 F2 0C 57 [17:12:50]RasterBufferAndPrint [17:12:50]line [17:12:50]line [17:12:50]line [17:12:50]line [17:12:50]line [17:12:50]written 0, free lines is 3321 [17:12:50]MH_Cut [17:12:50]Write to MH i2c: D1 01 00 56 03 01 2B [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: D1 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: D1 01 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: D1 01 00 56 03 00 2A [17:12:50]Write to MH i2c: 01 00 00 57 03 5A [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:51]*** Cut start [17:12:51]*** Partial cut [17:12:51]*** CUTSNS_PIN = 1 [17:12:51]*** CUTSNS_PIN = 0 [17:12:51]*** Brake cut motor [17:12:52]Read from MH i2c: 01 [17:12:52]MH_I2C_Read... [17:12:52]*** Stop cut motor [17:12:52]*** Cut end [17:12:52]Read from MH i2c: 01 07 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [17:12:52]process_action close_receipt done [17:12:52]requested_data is exist [17:12:52]produce_requested_data [17:12:52]requested_item fm.sn is exist - process it [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 11 00 00 [17:12:52]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 17 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2E [17:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:12:52]wFMCommunicate OK [17:12:52]requested_item fd.num is exist - process it [17:12:52]SAM_PROTO_GetFieldsCounters [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 13 00 00 [17:12:52]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 62 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 62 00 59 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FC 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FC 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:52]wFMCommunicate OK [17:12:52]SAM_PROTO_GetFieldsCounters done [17:12:52]requested_item shift.num is exist - process it [17:12:52]requested_item shift.opened is exist - process it [17:12:52]req_shift_opened [17:12:52]FM_GetShiftState [17:12:52]SAM_PROTO_GetShiftState [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 13 01 00 [17:12:52]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 0E 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9A [17:12:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:12:52]wFMCommunicate OK [17:12:52]SAM_PROTO_GetShiftState done [17:12:52]FM_GetShiftState done [17:12:52]req_shift_opened done [17:12:52]requested_item shift.open_date is exist - process it [17:12:52]req_shift_open_date [17:12:52]req_shift_open_date done [17:12:52]produce_requested_data done [17:12:52]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18684,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:12:52]process_action_free close_receipt [17:12:52]json_value_free [17:12:52]json_value_free done [17:12:52]process_json_proto returns [17:12:52]Send response to host [17:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18684,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:12:52]free response buf [17:12:52]execute_script done [17:12:52]execute_script returns [17:12:52]free content buf [17:12:52]Sock 9.Close socket [17:12:52]Sock 9.Thread stoped [17:13:05]ConnectInit Can't connect to host [17:13:05]CommunicateWithHost connect error [17:13:05]CommunicateWithHost err = -1 [17:13:05]OFD Sender: Server communicate error [17:13:05]OFD Sender: Processing packet 18683 [packets to send 8, broken 6] [17:13:05]ProducePacketName [17:13:05]name=ofd_packets/00018683 [17:13:05]OFD Sender: To server: pG, [17:13:05]CommunicateWithHost lk.salyk.kg:30040 [17:13:05]ConnectInit lk.salyk.kg [17:13:05]Connected sock=9 [17:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 71 80 32 01 DB 3A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 38 30 39 38 38 35 36 38 39 34 33 06 04 34 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 9B 4F F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FB 48 00 00 35 04 06 00 1D 29 8A E7 8F 79 FD EF 73 8E 3E D3 1A F2 [17:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 3C 70 47 00 03 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 39 35 39 34 35 36 10 04 04 00 FB 48 00 00 F4 03 04 00 87 F9 EF 66 B6 04 01 00 00 23 DA 20 CC 91 F8 F4 16 [17:13:05]CommunicateWithHost err = 0 [17:13:05]CheckOFDResponse [17:13:05]1017 (14) - 77093643461234 [17:13:05]1041 (16) - 0000000000959456 [17:13:05]1040 (4) - 18683 [17:13:05]1012 (4) - 22.09.2024 11:03 [17:13:05]1206 (1) - 0 [17:13:05]OFD Sender: Remove packet 18683 [17:13:05]ProducePacketName [17:13:05]name=ofd_packets/00018683 [17:13:05]NVStorageDeleteData [17:13:06]OFD Sender: Processing packet 18684 [packets to send 7, broken 6] [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00018684 [17:13:06]OFD Sender: To server: pG, [17:13:06]CommunicateWithHost lk.salyk.kg:30040 [17:13:06]ConnectInit lk.salyk.kg [17:13:06]Connected sock=9 [17:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 FE D2 19 01 BE 9A 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 11 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FC 48 00 00 35 04 06 00 51 2C BF A6 30 6B 09 C3 B2 21 E3 1E 6A F2 [17:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D8 FE 47 00 E1 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FC 48 00 00 F4 03 04 00 88 F9 EF 66 B6 04 01 00 00 A2 29 CC 01 33 25 BE 6D [17:13:06]CommunicateWithHost err = 0 [17:13:06]CheckOFDResponse [17:13:06]1017 (14) - 77093643461234 [17:13:06]1041 (16) - 0000000000959456 [17:13:06]1040 (4) - 18684 [17:13:06]1012 (4) - 22.09.2024 11:03 [17:13:06]1206 (1) - 0 [17:13:06]OFD Sender: Remove packet 18684 [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00018684 [17:13:06]NVStorageDeleteData [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:49]accept exits with 8 [17:13:49]New connection [17:13:49]New thread 3067129188 created [17:13:49]Thread 3067272548 joined [17:13:49]Waiting for new connection... [17:13:49] Sock 8.Parse request [17:13:49]Sock 8.Check first char [17:13:49]Sock 8.First char is OK [17:13:49]request: POST /json_proto HTTP/1.0 [17:13:49]Method: POST [17:13:49]URL: /json_proto [17:13:49]Method is POST - this is cgi request [17:13:49]url: /json_proto [17:13:49]query_string will be loaded in cgi processing [17:13:49]execute_cgi json_proto POST (null) [17:13:49]execute_cgi path=json_proto method=POST [17:13:49]POST find Content-Length [17:13:49]Host: 172.17.62.196:8080 [17:13:49]Content-Length: 1143 [17:13:49]Content-Type: application/json [17:13:49] [17:13:49]POST finish read [17:13:49]Found Content-Length = 1143 [17:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16609", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 399.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]execute_script... [17:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16609", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 399.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:49]POST & json_proto [17:13:49]process_json_proto [17:13:49]json parsed OK: [17:13:49]protocol is kg_v1.0 [17:13:49]action value=close_receipt [17:13:49]process_action close_receipt [17:13:49]cmd_close_receipt [17:13:49]MH_GetDate [17:13:49]Write to MH i2c: F0 00 00 5B 03 4D [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: F0 09 00 5B 03 00 4E 50 F0 66 CE CC 0E 66 58 [17:13:49]GetLastDocTimeStamp 1727025169 [17:13:49]current date 1727025230 [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9C [17:13:49]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]opened in 1726963967 [17:13:49]opened+sec_in_day 1727050367 [17:13:49]quantity*price = 14400 [17:13:49]sum+1 = 14401 [17:13:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189318 Холодный чай Fuse лимон 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 399.00 НСП 1% : 3.53 НДС 12% : 42.37 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 81 22.09.2024 17:13 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18685 ФПД: 206594836179927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171350&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18685&fm=206594836179927&tin=02508201610067®Number=0000000000152968&sum=39900 0 [17:13:50]StoreToDocumentArchive [17:13:50]shift 180 fd 18685 [17:13:50]save to /storage/0180/doc_00018685 [17:13:50]save last doc name /storage/0180/doc_00018685 to /storage/kkm_last_doc_name [17:13:50]save OK [17:13:50]Clear old archive folders... [17:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=492 [17:13:50]tlvbuf is 001CCBD0 [17:13:50]SAM_PROTO_ClearQueue [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 09 00 00 [17:13:50]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]SAM_PROTO_ClearQueue done [17:13:50]KKMCreateOFDPacket [17:13:50]OFDProtocolAddRootSTLVToBuf [17:13:50]FM_MakeSignedData [17:13:50]FM_MakeSignedData [17:13:50]SAM_PROTO_SignData [17:13:50]wFMCommunicate request_size=4 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 01 02 [17:13:50]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [17:13:50]Write i2c OK [17:13:50]MH_I2C_Read... [17:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:50]Read from MH i2c: E2 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 [17:13:50]MH_I2C_Read... [17:13:50]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [17:13:50]RAPDU: 90 00 [17:13:50]wFMCommunicate OK [17:13:50]wFMCommunicate request_size=255 [17:13:50]MH_SAM_APDU [17:13:50]CAPDU: 80 0D 02 02 FA 03 00 EC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 [17:13:51]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 EC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 00 00 38 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=251 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 02 02 F6 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4E 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FD 48 00 00 35 04 06 00 BB E5 9B D2 AB D7 [17:13:51]Write to MH i2c: E2 FE 00 6C 03 80 0D 02 02 F6 00 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4E 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FD 48 00 00 35 04 06 00 BB E5 9B D2 AB D7 00 00 51 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [17:13:51]RAPDU: 90 00 [17:13:51]wFMCommunicate OK [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 0D 03 02 [17:13:51]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0B 00 6D 03 00 A9 6C 46 7E 62 AD DC B9 90 00 69 [17:13:51]RAPDU: A9 6C 46 7E 62 AD DC B9 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_SignData done [17:13:51]FM_MakeSignedData done [17:13:51]CreateOFDProtocolMessage [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 11 00 00 [17:13:51]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 44 [17:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:13:51]wFMCommunicate OK [17:13:51]CreateOFDProtocolMessage done [17:13:51]OFDSenderStorePacket 18685 [17:13:51]StoreOFDPacket docnum=18685 [17:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 00 02 00 00 D9 8B F8 01 C7 4A 5A 03 01 00 03 00 EC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4E 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FD 48 00 00 35 04 06 00 BB E5 9B D2 AB D7 A9 6C 46 7E 62 AD DC B9 [17:13:51]CheckFolder [17:13:51]dirname=/storage/ofd_packets [17:13:51]CheckFolder done [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00018685 [17:13:51]NVStorageSaveData ofd_packets/00018685 [17:13:51]File name is /storage/ofd_packets/00018685 [17:13:51]Write 542 bytes [17:13:51]NVStorageSaveData done [17:13:51]OFDSenderStorePacket done [17:13:51]KKMCreateOFDPacket done [17:13:51]NVStorageSaveData kkm_last_timestamp [17:13:51]File name is /storage/kkm_last_timestamp [17:13:51]Write 4 bytes [17:13:51]NVStorageSaveData done [17:13:51]ExternCall_PrintAddStr [17:13:51]wPrintStart [17:13:51]Write to MH i2c: 01 00 00 6F 03 72 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [17:13:51]RasterBufferAndPrint [17:13:51]line Счет N : (3)16609 [17:13:51]line ИНН: 02508201610067 [17:13:51]line Контрольно-Кассовый Чек [17:13:51]line ПРОДАЖА [17:13:51]line Товар: 48743587 [17:13:51]line Сигареты Winston XStyle Silver [17:13:51]line 1.000 * 144.00 [17:13:51]line = 144.00 [17:13:51]line НДС 12% НСП 1% [17:13:51]line > о реализуемом товаре [17:13:51]line Товар: 4640030091607 [17:13:51]line Сигареты ESSE Exchange [17:13:51]line 1.000 * 150.00 [17:13:51]line = 150.00 [17:13:51]line НДС 12% НСП 1% [17:13:51]line > о реализуемом товаре [17:13:51]line Товар: 5449000189318 [17:13:51]line Холодный чай Fuse лимон 1л [17:13:51]line 1.000 * 105.00 [17:13:51]line = 105.00 [17:13:51]line НДС 12% НСП 1% [17:13:51]line > о реализуемом товаре [17:13:51]line ИТОГО: 399.00 [17:13:51]line НСП 1% : 3.53 [17:13:51]line НДС 12% : 42.37 [17:13:51]line Наличными: 399.00 [17:13:51]line Безнал.: 0.00 [17:13:51]line Место: АЗС № 176 "Партнер Нефть" [17:13:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:13:51]line СНО: Общий режим [17:13:51]line Чек 81 22.09.2024 17:13 [17:13:51]line Смена: 180 ФФД: 1.0 [17:13:51]line ЗНМ: 0300000010 [17:13:51]line РНМ: 0000000000152968 [17:13:51]line Версия ККМ: v1.0 [17:13:51]line ФМ: 0000000000959456 [17:13:51]line ФД: 18685 [17:13:51]line ФПД: 206594836179927 [17:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T171350&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18685&fm=206594836179927&tin=02508201610067®Number=0000000000152968&sum=39900 [17:13:51]line 0 [17:13:51]written 0, free lines is 4095 [17:13:51]OFD Sender: Processing packet 18685 [packets to send 7, broken 6] [17:13:51]ProducePacketName [17:13:51]name=ofd_packets/00018685 [17:13:51]OFD Sender: To server: pG, [17:13:51]CommunicateWithHost lk.salyk.kg:30040 [17:13:51]ConnectInit lk.salyk.kg [17:13:52]Connected sock=10 [17:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 00 02 00 00 D9 8B F8 01 C7 4A 5A 03 01 00 03 00 EC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 4E 50 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FD 48 00 00 35 04 06 00 BB E5 9B D2 AB D7 A9 6C 46 7E 62 AD DC B9 [17:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 1F BD 47 00 D5 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FD 48 00 00 F4 03 04 00 B6 F9 EF 66 B6 04 01 00 00 A0 71 15 CD 21 D2 0F 3F [17:13:52]CommunicateWithHost err = 0 [17:13:52]CheckOFDResponse [17:13:52]1017 (14) - 77093643461234 [17:13:52]1041 (16) - 0000000000959456 [17:13:52]1040 (4) - 18685 [17:13:52]1012 (4) - 22.09.2024 11:04 [17:13:52]1206 (1) - 0 [17:13:52]OFD Sender: Remove packet 18685 [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00018685 [17:13:52]NVStorageDeleteData [17:13:52]Write to MH i2c: 01 00 00 A4 03 A7 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 8D 0C 47 [17:13:52]RasterBufferAndPrint [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]line [17:13:52]written 0, free lines is 3223 [17:13:52]MH_Cut [17:13:52]Write to MH i2c: D1 01 00 AB 03 01 80 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: D1 01 00 AB 03 00 7F [17:13:52]Write to MH i2c: 01 00 00 AC 03 AF [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]OFD Sender: No OFD packet to send [17:13:53]*** Cut start [17:13:53]*** Partial cut [17:13:53]*** CUTSNS_PIN = 1 [17:13:53]*** CUTSNS_PIN = 0 [17:13:53]*** Brake cut motor [17:13:53]Read from MH i2c: 01 [17:13:53]MH_I2C_Read... [17:13:53]*** Stop cut motor [17:13:53]*** Cut end [17:13:53]Read from MH i2c: 01 07 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [17:13:53]process_action close_receipt done [17:13:53]requested_data is exist [17:13:53]produce_requested_data [17:13:53]requested_item fm.sn is exist - process it [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 11 00 00 [17:13:53]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 83 [17:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:13:53]wFMCommunicate OK [17:13:53]requested_item fd.num is exist - process it [17:13:53]SAM_PROTO_GetFieldsCounters [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 13 00 00 [17:13:53]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 62 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FD 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FD 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetFieldsCounters done [17:13:54]requested_item shift.num is exist - process it [17:13:54]requested_item shift.opened is exist - process it [17:13:54]req_shift_opened [17:13:54]FM_GetShiftState [17:13:54]SAM_PROTO_GetShiftState [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 01 00 [17:13:54]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 EF [17:13:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetShiftState done [17:13:54]FM_GetShiftState done [17:13:54]req_shift_opened done [17:13:54]requested_item shift.open_date is exist - process it [17:13:54]req_shift_open_date [17:13:54]req_shift_open_date done [17:13:54]produce_requested_data done [17:13:54]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18685,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:13:54]process_action_free close_receipt [17:13:54]json_value_free [17:13:54]json_value_free done [17:13:54]process_json_proto returns [17:13:54]Send response to host [17:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18685,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:13:54]free response buf [17:13:54]execute_script done [17:13:54]execute_script returns [17:13:54]free content buf [17:13:54]Sock 8.Close socket [17:13:54]Sock 8.Thread stoped [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:23]accept exits with 9 [17:38:23]New connection [17:38:23]New thread 3067272548 created [17:38:23]Thread 3067129188 joined [17:38:23]Waiting for new connection... [17:38:23] Sock 9.Parse request [17:38:23]Sock 9.Check first char [17:38:23]Sock 9.First char is OK [17:38:23]request: POST /json_proto HTTP/1.0 [17:38:23]Method: POST [17:38:23]URL: /json_proto [17:38:23]Method is POST - this is cgi request [17:38:23]url: /json_proto [17:38:23]query_string will be loaded in cgi processing [17:38:23]execute_cgi json_proto POST (null) [17:38:23]execute_cgi path=json_proto method=POST [17:38:23]POST find Content-Length [17:38:23]Host: 172.17.62.196:8080 [17:38:23]Content-Length: 652 [17:38:23]Content-Type: application/json [17:38:23] [17:38:23]POST finish read [17:38:23]Found Content-Length = 652 [17:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16610", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "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" ] } } [17:38:23]execute_script... [17:38: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)16610", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "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" ] } } [17:38:23]POST & json_proto [17:38:23]process_json_proto [17:38:23]json parsed OK: [17:38:23]protocol is kg_v1.0 [17:38:23]action value=close_receipt [17:38:23]process_action close_receipt [17:38:23]cmd_close_receipt [17:38:23]MH_GetDate [17:38:23]Write to MH i2c: F0 00 00 B0 03 A2 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 09 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 09 00 B0 03 00 10 56 F0 66 CE CC 0E 66 75 [17:38:23]GetLastDocTimeStamp 1727025230 [17:38:23]current date 1727026704 [17:38:23]FM_GetShiftState [17:38:23]SAM_PROTO_GetShiftState [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 13 01 00 [17:38:23]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0E 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 F1 [17:38:23]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:38:23]wFMCommunicate OK [17:38:23]SAM_PROTO_GetShiftState done [17:38:23]FM_GetShiftState done [17:38:23]opened in 1726963967 [17:38:23]opened+sec_in_day 1727050367 [17:38:23]quantity*price = 9000 [17:38:23]sum+1 = 9001 [17:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 82 22.09.2024 17:38 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18686 ФПД: 274234878372610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173824&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18686&fm=274234878372610&tin=02508201610067®Number=0000000000152968&sum=9000 0 [17:38:24]StoreToDocumentArchive [17:38:24]shift 180 fd 18686 [17:38:24]save to /storage/0180/doc_00018686 [17:38:24]save last doc name /storage/0180/doc_00018686 to /storage/kkm_last_doc_name [17:38:24]save OK [17:38:24]Clear old archive folders... [17:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:38:24]tlvbuf is 001C8520 [17:38:24]SAM_PROTO_ClearQueue [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 09 00 00 [17:38:24]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_ClearQueue done [17:38:24]KKMCreateOFDPacket [17:38:24]OFDProtocolAddRootSTLVToBuf [17:38:24]FM_MakeSignedData [17:38:24]FM_MakeSignedData [17:38:24]SAM_PROTO_SignData [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 01 02 [17:38:24]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=255 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 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 52 00 00 00 F4 03 04 00 10 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [17:38:24]Write to MH i2c: E2 02 01 C0 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 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 52 00 00 00 F4 03 04 00 10 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 2F [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=35 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FE 48 00 00 35 04 06 00 F9 6A 48 82 AB 02 [17:38:24]Write to MH i2c: E2 26 00 C1 03 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FE 48 00 00 35 04 06 00 F9 6A 48 82 AB 02 00 00 57 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [17:38:25]RAPDU: 90 00 [17:38:25]wFMCommunicate OK [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 0D 03 02 [17:38:25]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 0B 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 0B 00 C2 03 00 B2 96 53 BB 62 2D F3 21 90 00 3A [17:38:25]RAPDU: B2 96 53 BB 62 2D F3 21 90 00 [17:38:25]wFMCommunicate OK [17:38:25]SAM_PROTO_SignData done [17:38:25]FM_MakeSignedData done [17:38:25]CreateOFDProtocolMessage [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 11 00 00 [17:38:25]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 99 [17:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:38:25]wFMCommunicate OK [17:38:25]CreateOFDProtocolMessage done [17:38:25]OFDSenderStorePacket 18686 [17:38:25]StoreOFDPacket docnum=18686 [17:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 C0 7F 20 01 8D 7D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 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 52 00 00 00 F4 03 04 00 10 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FE 48 00 00 35 04 06 00 F9 6A 48 82 AB 02 B2 96 53 BB 62 2D F3 21 [17:38:25]CheckFolder [17:38:25]dirname=/storage/ofd_packets [17:38:25]CheckFolder done [17:38:25]ProducePacketName [17:38:25]name=ofd_packets/00018686 [17:38:25]NVStorageSaveData ofd_packets/00018686 [17:38:25]File name is /storage/ofd_packets/00018686 [17:38:25]Write 326 bytes [17:38:25]NVStorageSaveData done [17:38:25]OFDSenderStorePacket done [17:38:25]KKMCreateOFDPacket done [17:38:25]NVStorageSaveData kkm_last_timestamp [17:38:25]File name is /storage/kkm_last_timestamp [17:38:25]Write 4 bytes [17:38:25]NVStorageSaveData done [17:38:25]ExternCall_PrintAddStr [17:38:25]wPrintStart [17:38:25]Write to MH i2c: 01 00 00 C4 03 C7 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [17:38:25]RasterBufferAndPrint [17:38:25]line Счет N : (3)16610 [17:38:25]line ИНН: 02508201610067 [17:38:25]line Контрольно-Кассовый Чек [17:38:25]line ПРОДАЖА [17:38:25]line Товар: 54492509 [17:38:25]line Напиток Кока-Кола 0,25л [17:38:25]line 1.000 * 90.00 [17:38:25]line = 90.00 [17:38:25]line НДС 12% НСП 1% [17:38:25]line > о реализуемом товаре [17:38:25]line ИТОГО: 90.00 [17:38:25]line НСП 1% : 0.80 [17:38:25]line НДС 12% : 9.56 [17:38:25]line Наличными: 90.00 [17:38:25]line Безнал.: 0.00 [17:38:25]line Место: АЗС № 176 "Партнер Нефть" [17:38:25]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:38:25]line СНО: Общий режим [17:38:25]line Чек 82 22.09.2024 17:38 [17:38:25]line Смена: 180 ФФД: 1.0 [17:38:25]line ЗНМ: 0300000010 [17:38:25]line РНМ: 0000000000152968 [17:38:25]line Версия ККМ: v1.0 [17:38:25]line ФМ: 0000000000959456 [17:38:25]line ФД: 18686 [17:38:25]line ФПД: 274234878372610 [17:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173824&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18686&fm=274234878372610&tin=02508201610067®Number=0000000000152968&sum=9000 [17:38:25]line 0 [17:38:25]OFD Sender: Processing packet 18686 [packets to send 7, broken 6] [17:38:25]ProducePacketName [17:38:25]name=ofd_packets/00018686 [17:38:25]OFD Sender: To server: pG, [17:38:25]CommunicateWithHost lk.salyk.kg:30040 [17:38:25]ConnectInit lk.salyk.kg [17:38:25]written 0, free lines is 4095 [17:38:25]Connected sock=10 [17:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 C0 7F 20 01 8D 7D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 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 52 00 00 00 F4 03 04 00 10 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FE 48 00 00 35 04 06 00 F9 6A 48 82 AB 02 B2 96 53 BB 62 2D F3 21 [17:38:25]Write to MH i2c: 01 00 00 EC 03 EF [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 28 0D 2B [17:38:25]RasterBufferAndPrint [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]written 0, free lines is 3374 [17:38:25]MH_Cut [17:38:25]Write to MH i2c: D1 01 00 F3 03 01 C8 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 F3 03 00 C7 [17:38:25]Write to MH i2c: 01 00 00 F4 03 F7 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 84 76 47 00 A1 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 39 35 39 34 35 36 10 04 04 00 FE 48 00 00 F4 03 04 00 77 FF EF 66 B6 04 01 00 00 85 92 A1 CB 92 4D D2 00 [17:38:26]CommunicateWithHost err = 0 [17:38:26]CheckOFDResponse [17:38:26]1017 (14) - 77093643461234 [17:38:26]1041 (16) - 0000000000959456 [17:38:26]1040 (4) - 18686 [17:38:26]1012 (4) - 22.09.2024 11:28 [17:38:26]1206 (1) - 0 [17:38:26]OFD Sender: Remove packet 18686 [17:38:26]ProducePacketName [17:38:26]name=ofd_packets/00018686 [17:38:26]NVStorageDeleteData [17:38:26]OFD Sender: No OFD packet to send [17:38:26]*** Cut start [17:38:26]*** Partial cut [17:38:26]*** CUTSNS_PIN = 1 [17:38:26]*** CUTSNS_PIN = 0 [17:38:26]*** Brake cut motor [17:38:27]Read from MH i2c: 01 [17:38:27]MH_I2C_Read... [17:38:27]*** Stop cut motor [17:38:27]*** Cut end [17:38:27]Read from MH i2c: 01 07 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [17:38:27]process_action close_receipt done [17:38:27]requested_data is exist [17:38:27]produce_requested_data [17:38:27]requested_item fm.sn is exist - process it [17:38:27]wFMCommunicate request_size=4 [17:38:27]MH_SAM_APDU [17:38:27]CAPDU: 80 11 00 00 [17:38:27]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [17:38:27]Write i2c OK [17:38:27]MH_I2C_Read... [17:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:27]Read from MH i2c: E2 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 17 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CB [17:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:38:27]wFMCommunicate OK [17:38:27]requested_item fd.num is exist - process it [17:38:27]SAM_PROTO_GetFieldsCounters [17:38:27]wFMCommunicate request_size=4 [17:38:27]MH_SAM_APDU [17:38:27]CAPDU: 80 13 00 00 [17:38:27]Write to MH i2c: E2 08 00 F6 03 80 13 00 00 00 00 00 00 75 [17:38:27]Write i2c OK [17:38:27]MH_I2C_Read... [17:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:27]Read from MH i2c: E2 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 62 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 62 00 F6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FE 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [17:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FE 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:27]wFMCommunicate OK [17:38:27]SAM_PROTO_GetFieldsCounters done [17:38:27]requested_item shift.num is exist - process it [17:38:27]requested_item shift.opened is exist - process it [17:38:27]req_shift_opened [17:38:27]FM_GetShiftState [17:38:27]SAM_PROTO_GetShiftState [17:38:27]wFMCommunicate request_size=4 [17:38:27]MH_SAM_APDU [17:38:27]CAPDU: 80 13 01 00 [17:38:27]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [17:38:27]Write i2c OK [17:38:27]MH_I2C_Read... [17:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:27]Read from MH i2c: E2 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 0E 00 [17:38:27]MH_I2C_Read... [17:38:27]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 37 [17:38:27]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:38:27]wFMCommunicate OK [17:38:27]SAM_PROTO_GetShiftState done [17:38:27]FM_GetShiftState done [17:38:27]req_shift_opened done [17:38:27]requested_item shift.open_date is exist - process it [17:38:27]req_shift_open_date [17:38:27]req_shift_open_date done [17:38:27]produce_requested_data done [17:38:27]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18686,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:38:27]process_action_free close_receipt [17:38:27]json_value_free [17:38:27]json_value_free done [17:38:27]process_json_proto returns [17:38:27]Send response to host [17:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18686,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:38:27]free response buf [17:38:27]execute_script done [17:38:27]execute_script returns [17:38:27]free content buf [17:38:27]Sock 9.Close socket [17:38:27]Sock 9.Thread stoped [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:34]accept exits with 8 [17:39:34]New connection [17:39:34]New thread 3067129188 created [17:39:34]Thread 3067272548 joined [17:39:34]Waiting for new connection... [17:39:34] Sock 8.Parse request [17:39:34]Sock 8.Check first char [17:39:34]Sock 8.First char is OK [17:39:34]request: POST /json_proto HTTP/1.0 [17:39:34]Method: POST [17:39:34]URL: /json_proto [17:39:34]Method is POST - this is cgi request [17:39:34]url: /json_proto [17:39:34]query_string will be loaded in cgi processing [17:39:34]execute_cgi json_proto POST (null) [17:39:34]execute_cgi path=json_proto method=POST [17:39:34]POST find Content-Length [17:39:34]Host: 172.17.62.196:8080 [17:39:34]Content-Length: 654 [17:39:34]Content-Type: application/json [17:39:34] [17:39:34]POST finish read [17:39:34]Found Content-Length = 654 [17:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16611", "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" : 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:39:34]execute_script... [17:39:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16611", "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" : 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:39:34]POST & json_proto [17:39:34]process_json_proto [17:39:34]json parsed OK: [17:39:34]protocol is kg_v1.0 [17:39:34]action value=close_receipt [17:39:34]process_action close_receipt [17:39:34]cmd_close_receipt [17:39:34]MH_GetDate [17:39:34]Write to MH i2c: F0 00 00 F8 03 EA [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: F0 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: F0 09 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: F0 09 00 F8 03 00 57 56 F0 66 CE CC 0E 66 04 [17:39:34]GetLastDocTimeStamp 1727026704 [17:39:34]current date 1727026775 [17:39:34]FM_GetShiftState [17:39:34]SAM_PROTO_GetShiftState [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 13 01 00 [17:39:34]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 39 [17:39:34]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_GetShiftState done [17:39:34]FM_GetShiftState done [17:39:34]opened in 1726963967 [17:39:34]opened+sec_in_day 1727050367 [17:39:34]quantity*price = 8500 [17:39:34]sum+1 = 8501 [17:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 83 22.09.2024 17:39 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18687 ФПД: 194205991063637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173935&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18687&fm=194205991063637&tin=02508201610067®Number=0000000000152968&sum=8500 0 [17:39:35]StoreToDocumentArchive [17:39:35]shift 180 fd 18687 [17:39:35]save to /storage/0180/doc_00018687 [17:39:35]save last doc name /storage/0180/doc_00018687 to /storage/kkm_last_doc_name [17:39:35]save OK [17:39:35]Clear old archive folders... [17:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:39:35]tlvbuf is 001CA3E0 [17:39:35]SAM_PROTO_ClearQueue [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 09 00 00 [17:39:35]Write to MH i2c: E2 08 00 06 04 80 09 00 00 00 00 00 00 7C [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_ClearQueue done [17:39:35]KKMCreateOFDPacket [17:39:35]OFDProtocolAddRootSTLVToBuf [17:39:35]FM_MakeSignedData [17:39:35]FM_MakeSignedData [17:39:35]SAM_PROTO_SignData [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 01 02 [17:39:35]Write to MH i2c: E2 08 00 07 04 80 0D 01 02 00 00 00 00 84 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]wFMCommunicate request_size=255 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 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 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 53 00 00 00 F4 03 04 00 57 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:39:35]Write to MH i2c: E2 02 01 08 04 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 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 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 53 00 00 00 F4 03 04 00 57 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 72 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]wFMCommunicate request_size=53 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 02 02 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FF 48 00 00 35 04 06 00 B0 A1 1B 1C 50 55 [17:39:35]Write to MH i2c: E2 38 00 09 04 80 0D 02 02 30 00 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FF 48 00 00 35 04 06 00 B0 A1 1B 1C 50 55 00 00 FC [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 03 02 [17:39:35]Write to MH i2c: E2 08 00 0A 04 80 0D 03 02 00 00 00 00 89 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 0B 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 0B 00 0A 04 00 63 9D 58 D3 A9 71 9C DB 90 00 46 [17:39:35]RAPDU: 63 9D 58 D3 A9 71 9C DB 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_SignData done [17:39:35]FM_MakeSignedData done [17:39:35]CreateOFDProtocolMessage [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 11 00 00 [17:39:35]Write to MH i2c: E2 08 00 0B 04 80 11 00 00 00 00 00 00 89 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 0B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E2 [17:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:39:36]wFMCommunicate OK [17:39:36]CreateOFDProtocolMessage done [17:39:36]OFDSenderStorePacket 18687 [17:39:36]StoreOFDPacket docnum=18687 [17:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 90 68 32 01 BC E9 5A 03 01 00 03 00 26 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 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 53 00 00 00 F4 03 04 00 57 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FF 48 00 00 35 04 06 00 B0 A1 1B 1C 50 55 63 9D 58 D3 A9 71 9C DB [17:39:36]CheckFolder [17:39:36]dirname=/storage/ofd_packets [17:39:36]CheckFolder done [17:39:36]ProducePacketName [17:39:36]name=ofd_packets/00018687 [17:39:36]NVStorageSaveData ofd_packets/00018687 [17:39:36]File name is /storage/ofd_packets/00018687 [17:39:36]Write 344 bytes [17:39:36]NVStorageSaveData done [17:39:36]OFDSenderStorePacket done [17:39:36]KKMCreateOFDPacket done [17:39:36]NVStorageSaveData kkm_last_timestamp [17:39:36]File name is /storage/kkm_last_timestamp [17:39:36]Write 4 bytes [17:39:36]NVStorageSaveData done [17:39:36]ExternCall_PrintAddStr [17:39:36]wPrintStart [17:39:36]Write to MH i2c: 01 00 00 0C 04 10 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [17:39:36]RasterBufferAndPrint [17:39:36]line Счет N : (3)16611 [17:39:36]line ИНН: 02508201610067 [17:39:36]line Контрольно-Кассовый Чек [17:39:36]line ПРОДАЖА [17:39:36]line Товар: 4600682557456 [17:39:36]line Напиток FLash up energy эн ж/б 0,5/0,45л [17:39:36]line 1.000 * 85.00 [17:39:36]line = 85.00 [17:39:36]line НДС 12% НСП 1% [17:39:36]line > о реализуемом товаре [17:39:36]line ИТОГО: 85.00 [17:39:36]line НСП 1% : 0.75 [17:39:36]line НДС 12% : 9.03 [17:39:36]line Наличными: 85.00 [17:39:36]line Безнал.: 0.00 [17:39:36]line Место: АЗС № 176 "Партнер Нефть" [17:39:36]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:39:36]line СНО: Общий режим [17:39:36]line Чек 83 22.09.2024 17:39 [17:39:36]line Смена: 180 ФФД: 1.0 [17:39:36]line ЗНМ: 0300000010 [17:39:36]line РНМ: 0000000000152968 [17:39:36]line Версия ККМ: v1.0 [17:39:36]line ФМ: 0000000000959456 [17:39:36]line ФД: 18687 [17:39:36]line ФПД: 194205991063637 [17:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T173935&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18687&fm=194205991063637&tin=02508201610067®Number=0000000000152968&sum=8500 [17:39:36]line 0 [17:39:36]OFD Sender: Processing packet 18687 [packets to send 7, broken 6] [17:39:36]ProducePacketName [17:39:36]name=ofd_packets/00018687 [17:39:36]OFD Sender: To server: pG, [17:39:36]CommunicateWithHost lk.salyk.kg:30040 [17:39:36]ConnectInit lk.salyk.kg [17:39:36]written 0, free lines is 4095 [17:39:36]Connected sock=10 [17:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 90 68 32 01 BC E9 5A 03 01 00 03 00 26 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 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 53 00 00 00 F4 03 04 00 57 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 FF 48 00 00 35 04 06 00 B0 A1 1B 1C 50 55 63 9D 58 D3 A9 71 9C DB [17:39:36]Write to MH i2c: 01 00 00 35 04 39 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 0B 0D 58 [17:39:36]RasterBufferAndPrint [17:39:36]line [17:39:36]line [17:39:36]line [17:39:36]line [17:39:36]line [17:39:36]written 0, free lines is 3345 [17:39:36]MH_Cut [17:39:36]Write to MH i2c: D1 01 00 3C 04 01 12 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: D1 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: D1 01 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: D1 01 00 3C 04 00 11 [17:39:36]Write to MH i2c: 01 00 00 3D 04 41 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 85 0C 47 00 8B 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 39 35 39 34 35 36 10 04 04 00 FF 48 00 00 F4 03 04 00 BE FF EF 66 B6 04 01 00 00 A8 EA D1 5C 8B 39 3A 45 [17:39:36]CommunicateWithHost err = 0 [17:39:36]CheckOFDResponse [17:39:36]1017 (14) - 77093643461234 [17:39:36]1041 (16) - 0000000000959456 [17:39:36]1040 (4) - 18687 [17:39:36]1012 (4) - 22.09.2024 11:30 [17:39:36]1206 (1) - 0 [17:39:36]OFD Sender: Remove packet 18687 [17:39:36]ProducePacketName [17:39:36]name=ofd_packets/00018687 [17:39:36]NVStorageDeleteData [17:39:37]OFD Sender: No OFD packet to send [17:39:37]*** Cut start [17:39:37]*** Partial cut [17:39:37]*** CUTSNS_PIN = 1 [17:39:37]*** CUTSNS_PIN = 0 [17:39:37]*** Brake cut motor [17:39:38]Read from MH i2c: 01 [17:39:38]MH_I2C_Read... [17:39:38]*** Stop cut motor [17:39:38]*** Cut end [17:39:38]Read from MH i2c: 01 07 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [17:39:38]process_action close_receipt done [17:39:38]requested_data is exist [17:39:38]produce_requested_data [17:39:38]requested_item fm.sn is exist - process it [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 11 00 00 [17:39:38]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 17 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 15 [17:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:39:38]wFMCommunicate OK [17:39:38]requested_item fd.num is exist - process it [17:39:38]SAM_PROTO_GetFieldsCounters [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 13 00 00 [17:39:38]Write to MH i2c: E2 08 00 3F 04 80 13 00 00 00 00 00 00 BF [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 62 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 62 00 3F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FF 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [17:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 FF 48 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_GetFieldsCounters done [17:39:38]requested_item shift.num is exist - process it [17:39:38]requested_item shift.opened is exist - process it [17:39:38]req_shift_opened [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 40 04 80 13 01 00 00 00 00 00 C1 [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 40 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 81 [17:39:38]RAPDU: 09 00 01 FF 60 EF 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]req_shift_opened done [17:39:38]requested_item shift.open_date is exist - process it [17:39:38]req_shift_open_date [17:39:38]req_shift_open_date done [17:39:38]produce_requested_data done [17:39:38]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18687,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:39:38]process_action_free close_receipt [17:39:38]json_value_free [17:39:38]json_value_free done [17:39:38]process_json_proto returns [17:39:38]Send response to host [17:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18687,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:39:38]free response buf [17:39:38]execute_script done [17:39:38]execute_script returns [17:39:38]free content buf [17:39:38]Sock 8.Close socket [17:39:38]Sock 8.Thread stoped [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:49]accept exits with 9 [17:40:49]New connection [17:40:49]New thread 3067272548 created [17:40:49]Thread 3067129188 joined [17:40:49]Waiting for new connection... [17:40:49] Sock 9.Parse request [17:40:49]Sock 9.Check first char [17:40:49]Sock 9.First char is OK [17:40:49]request: POST /json_proto HTTP/1.0 [17:40:49]Method: POST [17:40:49]URL: /json_proto [17:40:49]Method is POST - this is cgi request [17:40:49]url: /json_proto [17:40:49]query_string will be loaded in cgi processing [17:40:49]execute_cgi json_proto POST (null) [17:40:49]execute_cgi path=json_proto method=POST [17:40:49]POST find Content-Length [17:40:49]Host: 172.17.62.196:8080 [17:40:49]Content-Length: 569 [17:40:49]Content-Type: application/json [17:40:49] [17:40:49]POST finish read [17:40:49]Found Content-Length = 569 [17:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16612", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:49]execute_script... [17:40: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)16612", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:49]POST & json_proto [17:40:49]process_json_proto [17:40:49]json parsed OK: [17:40:49]protocol is kg_v1.0 [17:40:49]action value=close_receipt [17:40:49]process_action close_receipt [17:40:49]cmd_close_receipt [17:40:49]MH_GetDate [17:40:49]Write to MH i2c: F0 00 00 41 04 34 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: F0 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: F0 09 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: F0 09 00 41 04 00 A2 56 F0 66 CE CC 0E 66 99 [17:40:49]GetLastDocTimeStamp 1727026775 [17:40:49]current date 1727026850 [17:40:49]FM_GetShiftState [17:40:49]SAM_PROTO_GetShiftState [17:40:49]wFMCommunicate request_size=4 [17:40:49]MH_SAM_APDU [17:40:49]CAPDU: 80 13 01 00 [17:40:49]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [17:40:49]Write i2c OK [17:40:49]MH_I2C_Read... [17:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:49]Read from MH i2c: E2 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 0E 00 [17:40:49]MH_I2C_Read... [17:40:49]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 83 [17:40:49]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:40:49]wFMCommunicate OK [17:40:49]SAM_PROTO_GetShiftState done [17:40:49]FM_GetShiftState done [17:40:49]opened in 1726963967 [17:40:49]opened+sec_in_day 1727050367 [17:40:49]quantity*price = 13400 [17:40:49]sum+1 = 13401 [17:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 84 22.09.2024 17:40 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18688 ФПД: 220687873210247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174050&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18688&fm=220687873210247&tin=02508201610067®Number=0000000000152968&sum=13400 0 [17:40:50]StoreToDocumentArchive [17:40:50]shift 180 fd 18688 [17:40:50]save to /storage/0180/doc_00018688 [17:40:50]save last doc name /storage/0180/doc_00018688 to /storage/kkm_last_doc_name [17:40:50]save OK [17:40:50]Clear old archive folders... [17:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=254 [17:40:50]tlvbuf is 001C03A0 [17:40:50]SAM_PROTO_ClearQueue [17:40:50]wFMCommunicate request_size=4 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 09 00 00 [17:40:50]Write to MH i2c: E2 08 00 4F 04 80 09 00 00 00 00 00 00 C5 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:50]Read from MH i2c: E2 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [17:40:50]RAPDU: 90 00 [17:40:50]wFMCommunicate OK [17:40:50]SAM_PROTO_ClearQueue done [17:40:50]KKMCreateOFDPacket [17:40:50]OFDProtocolAddRootSTLVToBuf [17:40:50]FM_MakeSignedData [17:40:50]FM_MakeSignedData [17:40:50]SAM_PROTO_SignData [17:40:50]wFMCommunicate request_size=4 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 0D 01 02 [17:40:50]Write to MH i2c: E2 08 00 50 04 80 0D 01 02 00 00 00 00 CD [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:50]Read from MH i2c: E2 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [17:40:50]RAPDU: 90 00 [17:40:50]wFMCommunicate OK [17:40:50]wFMCommunicate request_size=255 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 54 00 00 00 F4 03 04 00 A2 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 00 49 00 00 35 04 [17:40:50]Write to MH i2c: E2 02 01 51 04 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 54 00 00 00 F4 03 04 00 A2 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 00 49 00 00 35 04 00 00 F3 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:50]Read from MH i2c: E2 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [17:40:50]RAPDU: 90 00 [17:40:50]wFMCommunicate OK [17:40:50]wFMCommunicate request_size=13 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 0D 02 02 08 06 00 C8 B6 E6 49 F7 87 [17:40:50]Write to MH i2c: E2 10 00 52 04 80 0D 02 02 08 00 06 00 C8 B6 E6 49 F7 87 00 00 11 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:50]Read from MH i2c: E2 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [17:40:50]RAPDU: 90 00 [17:40:50]wFMCommunicate OK [17:40:50]wFMCommunicate request_size=4 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 0D 03 02 [17:40:50]Write to MH i2c: E2 08 00 53 04 80 0D 03 02 00 00 00 00 D2 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:50]Read from MH i2c: E2 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 0B 00 [17:40:50]MH_I2C_Read... [17:40:50]Read from MH i2c: E2 0B 00 53 04 00 EA 2F F7 F8 AE B2 5A E7 90 00 7C [17:40:50]RAPDU: EA 2F F7 F8 AE B2 5A E7 90 00 [17:40:50]wFMCommunicate OK [17:40:50]SAM_PROTO_SignData done [17:40:50]FM_MakeSignedData done [17:40:50]CreateOFDProtocolMessage [17:40:50]wFMCommunicate request_size=4 [17:40:50]MH_SAM_APDU [17:40:50]CAPDU: 80 11 00 00 [17:40:50]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [17:40:50]Write i2c OK [17:40:50]MH_I2C_Read... [17:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:51]Read from MH i2c: E2 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: E2 17 00 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2B [17:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:40:51]wFMCommunicate OK [17:40:51]CreateOFDProtocolMessage done [17:40:51]OFDSenderStorePacket 18688 [17:40:51]StoreOFDPacket docnum=18688 [17:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 12 01 00 00 18 52 0A 01 5F 6B 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 54 00 00 00 F4 03 04 00 A2 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 00 49 00 00 35 04 06 00 C8 B6 E6 49 F7 87 EA 2F F7 F8 AE B2 5A E7 [17:40:51]CheckFolder [17:40:51]dirname=/storage/ofd_packets [17:40:51]CheckFolder done [17:40:51]ProducePacketName [17:40:51]name=ofd_packets/00018688 [17:40:51]NVStorageSaveData ofd_packets/00018688 [17:40:51]File name is /storage/ofd_packets/00018688 [17:40:51]Write 304 bytes [17:40:51]NVStorageSaveData done [17:40:51]OFDSenderStorePacket done [17:40:51]KKMCreateOFDPacket done [17:40:51]NVStorageSaveData kkm_last_timestamp [17:40:51]File name is /storage/kkm_last_timestamp [17:40:51]Write 4 bytes [17:40:51]NVStorageSaveData done [17:40:51]ExternCall_PrintAddStr [17:40:51]wPrintStart [17:40:51]Write to MH i2c: 01 00 00 55 04 59 [17:40:51]Write i2c OK [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 07 00 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [17:40:51]RasterBufferAndPrint [17:40:51]line Счет N : (3)16612 [17:40:51]line ИНН: 02508201610067 [17:40:51]line Контрольно-Кассовый Чек [17:40:51]line ПРОДАЖА [17:40:51]line Товар: 48744546 [17:40:51]line LD Compact Silver [17:40:51]line 1.000 * 134.00 [17:40:51]line = 134.00 [17:40:51]line НДС 12% НСП 1% [17:40:51]line > о реализуемом товаре [17:40:51]line ИТОГО: 134.00 [17:40:51]line НСП 1% : 1.19 [17:40:51]line НДС 12% : 14.23 [17:40:51]line Наличными: 134.00 [17:40:51]line Безнал.: 0.00 [17:40:51]line Место: АЗС № 176 "Партнер Нефть" [17:40:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:40:51]line СНО: Общий режим [17:40:51]line Чек 84 22.09.2024 17:40 [17:40:51]line Смена: 180 ФФД: 1.0 [17:40:51]line ЗНМ: 0300000010 [17:40:51]line РНМ: 0000000000152968 [17:40:51]line Версия ККМ: v1.0 [17:40:51]line ФМ: 0000000000959456 [17:40:51]line ФД: 18688 [17:40:51]line ФПД: 220687873210247 [17:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174050&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18688&fm=220687873210247&tin=02508201610067®Number=0000000000152968&sum=13400 [17:40:51]line 0 [17:40:51]OFD Sender: Processing packet 18688 [packets to send 7, broken 6] [17:40:51]ProducePacketName [17:40:51]name=ofd_packets/00018688 [17:40:51]OFD Sender: To server: pG, [17:40:51]CommunicateWithHost lk.salyk.kg:30040 [17:40:51]ConnectInit lk.salyk.kg [17:40:51]written 0, free lines is 4095 [17:40:51]Connected sock=10 [17:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 12 01 00 00 18 52 0A 01 5F 6B 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 8F 05 00 00 00 00 07 04 06 00 58 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 54 00 00 00 F4 03 04 00 A2 56 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 00 49 00 00 35 04 06 00 C8 B6 E6 49 F7 87 EA 2F F7 F8 AE B2 5A E7 [17:40:51]Write to MH i2c: 01 00 00 7D 04 81 [17:40:51]Write i2c OK [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 07 00 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 1D 0D B2 [17:40:51]RasterBufferAndPrint [17:40:51]line [17:40:51]line [17:40:51]line [17:40:51]line [17:40:51]line [17:40:51]written 0, free lines is 3363 [17:40:51]MH_Cut [17:40:51]Write to MH i2c: D1 01 00 84 04 01 5A [17:40:51]Write i2c OK [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: D1 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: D1 01 00 [17:40:51]MH_I2C_Read... [17:40:51]Read from MH i2c: D1 01 00 84 04 00 59 [17:40:51]Write to MH i2c: 01 00 00 85 04 89 [17:40:51]Write i2c OK [17:40:51]MH_I2C_Read... [17:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B0 C9 47 00 D3 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 39 35 39 34 35 36 10 04 04 00 00 49 00 00 F4 03 04 00 09 00 F0 66 B6 04 01 00 00 8A 14 1B 39 69 C8 DA 95 [17:40:51]CommunicateWithHost err = 0 [17:40:51]CheckOFDResponse [17:40:51]1017 (14) - 77093643461234 [17:40:51]1041 (16) - 0000000000959456 [17:40:51]1040 (4) - 18688 [17:40:51]1012 (4) - 22.09.2024 11:31 [17:40:51]1206 (1) - 0 [17:40:51]OFD Sender: Remove packet 18688 [17:40:51]ProducePacketName [17:40:51]name=ofd_packets/00018688 [17:40:51]NVStorageDeleteData [17:40:52]OFD Sender: No OFD packet to send [17:40:52]*** Cut start [17:40:52]*** Partial cut [17:40:52]*** CUTSNS_PIN = 1 [17:40:52]*** CUTSNS_PIN = 0 [17:40:52]*** Brake cut motor [17:40:53]Read from MH i2c: 01 [17:40:53]MH_I2C_Read... [17:40:53]*** Stop cut motor [17:40:53]*** Cut end [17:40:53]Read from MH i2c: 01 07 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [17:40:53]process_action close_receipt done [17:40:53]requested_data is exist [17:40:53]produce_requested_data [17:40:53]requested_item fm.sn is exist - process it [17:40:53]wFMCommunicate request_size=4 [17:40:53]MH_SAM_APDU [17:40:53]CAPDU: 80 11 00 00 [17:40:53]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [17:40:53]Write i2c OK [17:40:53]MH_I2C_Read... [17:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:53]Read from MH i2c: E2 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 17 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5D [17:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:40:53]wFMCommunicate OK [17:40:53]requested_item fd.num is exist - process it [17:40:53]SAM_PROTO_GetFieldsCounters [17:40:53]wFMCommunicate request_size=4 [17:40:53]MH_SAM_APDU [17:40:53]CAPDU: 80 13 00 00 [17:40:53]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [17:40:53]Write i2c OK [17:40:53]MH_I2C_Read... [17:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:53]Read from MH i2c: E2 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 62 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 62 00 87 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 00 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 00 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:53]wFMCommunicate OK [17:40:53]SAM_PROTO_GetFieldsCounters done [17:40:53]requested_item shift.num is exist - process it [17:40:53]requested_item shift.opened is exist - process it [17:40:53]req_shift_opened [17:40:53]FM_GetShiftState [17:40:53]SAM_PROTO_GetShiftState [17:40:53]wFMCommunicate request_size=4 [17:40:53]MH_SAM_APDU [17:40:53]CAPDU: 80 13 01 00 [17:40:53]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [17:40:53]Write i2c OK [17:40:53]MH_I2C_Read... [17:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:53]Read from MH i2c: E2 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 0E 00 [17:40:53]MH_I2C_Read... [17:40:53]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C9 [17:40:53]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:40:53]wFMCommunicate OK [17:40:53]SAM_PROTO_GetShiftState done [17:40:53]FM_GetShiftState done [17:40:53]req_shift_opened done [17:40:53]requested_item shift.open_date is exist - process it [17:40:53]req_shift_open_date [17:40:53]req_shift_open_date done [17:40:53]produce_requested_data done [17:40:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18688,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:40:53]process_action_free close_receipt [17:40:53]json_value_free [17:40:53]json_value_free done [17:40:53]process_json_proto returns [17:40:53]Send response to host [17:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18688,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:40:53]free response buf [17:40:53]execute_script done [17:40:53]execute_script returns [17:40:53]free content buf [17:40:53]Sock 9.Close socket [17:40:53]Sock 9.Thread stoped [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:44]accept exits with 8 [17:49:44]New connection [17:49:44]New thread 3067129188 created [17:49:44]Thread 3067272548 joined [17:49:44]Waiting for new connection... [17:49:44] Sock 8.Parse request [17:49:44]Sock 8.Check first char [17:49:44]Sock 8.First char is OK [17:49:44]request: POST /json_proto HTTP/1.0 [17:49:44]Method: POST [17:49:44]URL: /json_proto [17:49:44]Method is POST - this is cgi request [17:49:44]url: /json_proto [17:49:44]query_string will be loaded in cgi processing [17:49:44]execute_cgi json_proto POST (null) [17:49:44]execute_cgi path=json_proto method=POST [17:49:44]POST find Content-Length [17:49:44]Host: 172.17.62.196:8080 [17:49:44]Content-Length: 670 [17:49:44]Content-Type: application/json [17:49:44] [17:49:44]POST finish read [17:49:44]Found Content-Length = 670 [17:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16613", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:44]execute_script... [17:49: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)16613", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:44]POST & json_proto [17:49:44]process_json_proto [17:49:44]json parsed OK: [17:49:44]protocol is kg_v1.0 [17:49:44]action value=close_receipt [17:49:44]process_action close_receipt [17:49:44]cmd_close_receipt [17:49:44]MH_GetDate [17:49:44]Write to MH i2c: F0 00 00 89 04 7C [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 09 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 09 00 89 04 00 B9 58 F0 66 CE CC 0E 66 FA [17:49:44]GetLastDocTimeStamp 1727026850 [17:49:44]current date 1727027385 [17:49:44]FM_GetShiftState [17:49:44]SAM_PROTO_GetShiftState [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 01 00 [17:49:44]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 CB [17:49:44]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetShiftState done [17:49:44]FM_GetShiftState done [17:49:44]opened in 1726963967 [17:49:44]opened+sec_in_day 1727050367 [17:49:44]quantity*price = 10000 [17:49:44]sum+1 = 10001 [17:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 85 22.09.2024 17:49 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18689 ФПД: 131634600580280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174945&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18689&fm=131634600580280&tin=02508201610067®Number=0000000000152968&sum=10000 0 [17:49:45]StoreToDocumentArchive [17:49:45]shift 180 fd 18689 [17:49:45]save to /storage/0180/doc_00018689 [17:49:45]save last doc name /storage/0180/doc_00018689 to /storage/kkm_last_doc_name [17:49:45]save OK [17:49:45]Clear old archive folders... [17:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=292 [17:49:45]tlvbuf is 001C1130 [17:49:45]SAM_PROTO_ClearQueue [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 09 00 00 [17:49:45]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]SAM_PROTO_ClearQueue done [17:49:45]KKMCreateOFDPacket [17:49:45]OFDProtocolAddRootSTLVToBuf [17:49:45]FM_MakeSignedData [17:49:45]FM_MakeSignedData [17:49:45]SAM_PROTO_SignData [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 01 02 [17:49:45]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=255 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B9 58 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [17:49:45]Write to MH i2c: E2 02 01 99 04 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B9 58 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 D7 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=51 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 02 02 2E 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 01 49 00 00 35 04 06 00 77 B8 91 9B 94 B8 [17:49:45]Write to MH i2c: E2 36 00 9A 04 80 0D 02 02 2E 00 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 01 49 00 00 35 04 06 00 77 B8 91 9B 94 B8 00 00 A6 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 03 02 [17:49:45]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0B 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0B 00 9B 04 00 82 1B 83 3A 02 0E 5C B7 90 00 98 [17:49:45]RAPDU: 82 1B 83 3A 02 0E 5C B7 90 00 [17:49:45]wFMCommunicate OK [17:49:45]SAM_PROTO_SignData done [17:49:45]FM_MakeSignedData done [17:49:45]CreateOFDProtocolMessage [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 11 00 00 [17:49:45]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 17 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 73 [17:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:49:46]wFMCommunicate OK [17:49:46]CreateOFDProtocolMessage done [17:49:46]OFDSenderStorePacket 18689 [17:49:46]StoreOFDPacket docnum=18689 [17:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 38 01 00 00 E2 8D 30 01 9F 3A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B9 58 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 01 49 00 00 35 04 06 00 77 B8 91 9B 94 B8 82 1B 83 3A 02 0E 5C B7 [17:49:46]CheckFolder [17:49:46]dirname=/storage/ofd_packets [17:49:46]CheckFolder done [17:49:46]ProducePacketName [17:49:46]name=ofd_packets/00018689 [17:49:46]NVStorageSaveData ofd_packets/00018689 [17:49:46]File name is /storage/ofd_packets/00018689 [17:49:46]Write 342 bytes [17:49:46]NVStorageSaveData done [17:49:46]OFDSenderStorePacket done [17:49:46]KKMCreateOFDPacket done [17:49:46]NVStorageSaveData kkm_last_timestamp [17:49:46]File name is /storage/kkm_last_timestamp [17:49:46]Write 4 bytes [17:49:46]NVStorageSaveData done [17:49:46]ExternCall_PrintAddStr [17:49:46]wPrintStart [17:49:46]Write to MH i2c: 01 00 00 9D 04 A1 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [17:49:46]RasterBufferAndPrint [17:49:46]line Счет N : (3)16613 [17:49:46]line ИНН: 02508201610067 [17:49:46]line Контрольно-Кассовый Чек [17:49:46]line ПРОДАЖА [17:49:46]line Товар: 4700003010018 [17:49:46]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [17:49:46]line 2.000 * 50.00 [17:49:46]line = 100.00 [17:49:46]line НДС 12% НСП 1% [17:49:46]line > о реализуемом товаре [17:49:46]line ИТОГО: 100.00 [17:49:46]line НСП 1% : 0.88 [17:49:46]line НДС 12% : 10.62 [17:49:46]line Наличными: 100.00 [17:49:46]line Безнал.: 0.00 [17:49:46]line Место: АЗС № 176 "Партнер Нефть" [17:49:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:49:46]line СНО: Общий режим [17:49:46]line Чек 85 22.09.2024 17:49 [17:49:46]line Смена: 180 ФФД: 1.0 [17:49:46]line ЗНМ: 0300000010 [17:49:46]line РНМ: 0000000000152968 [17:49:46]line Версия ККМ: v1.0 [17:49:46]line ФМ: 0000000000959456 [17:49:46]line ФД: 18689 [17:49:46]line ФПД: 131634600580280 [17:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174945&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18689&fm=131634600580280&tin=02508201610067®Number=0000000000152968&sum=10000 [17:49:46]OFD Sender: Processing packet 18689 [packets to send 7, broken 6] [17:49:46]ProducePacketName [17:49:46]name=ofd_packets/00018689 [17:49:46]OFD Sender: To server: pG, [17:49:46]CommunicateWithHost lk.salyk.kg:30040 [17:49:46]ConnectInit lk.salyk.kg [17:49:46]line 0 [17:49:46]written 0, free lines is 4095 [17:49:46]Connected sock=9 [17:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 38 01 00 00 E2 8D 30 01 9F 3A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B9 58 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 01 49 00 00 35 04 06 00 77 B8 91 9B 94 B8 82 1B 83 3A 02 0E 5C B7 [17:49:46]Write to MH i2c: 01 00 00 C6 04 CA [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 10 0D EE [17:49:46]RasterBufferAndPrint [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]written 0, free lines is 3350 [17:49:46]MH_Cut [17:49:46]Write to MH i2c: D1 01 00 CD 04 01 A3 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 01 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 01 00 CD 04 00 A2 [17:49:46]Write to MH i2c: 01 00 00 CE 04 D2 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 AE C0 47 00 75 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 01 49 00 00 F4 03 04 00 20 02 F0 66 B6 04 01 00 00 81 7A F3 C2 07 49 A8 AA [17:49:46]CommunicateWithHost err = 0 [17:49:46]CheckOFDResponse [17:49:46]1017 (14) - 77093643461234 [17:49:46]1041 (16) - 0000000000959456 [17:49:46]1040 (4) - 18689 [17:49:46]1012 (4) - 22.09.2024 11:40 [17:49:46]1206 (1) - 0 [17:49:46]OFD Sender: Remove packet 18689 [17:49:46]ProducePacketName [17:49:46]name=ofd_packets/00018689 [17:49:46]NVStorageDeleteData [17:49:47]OFD Sender: No OFD packet to send [17:49:47]*** Cut start [17:49:47]*** Partial cut [17:49:47]*** CUTSNS_PIN = 1 [17:49:47]*** CUTSNS_PIN = 0 [17:49:47]*** Brake cut motor [17:49:48]Read from MH i2c: 01 [17:49:48]MH_I2C_Read... [17:49:48]*** Stop cut motor [17:49:48]*** Cut end [17:49:48]Read from MH i2c: 01 07 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [17:49:48]process_action close_receipt done [17:49:48]requested_data is exist [17:49:48]produce_requested_data [17:49:48]requested_item fm.sn is exist - process it [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 11 00 00 [17:49:48]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 17 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A6 [17:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:49:48]wFMCommunicate OK [17:49:48]requested_item fd.num is exist - process it [17:49:48]SAM_PROTO_GetFieldsCounters [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 13 00 00 [17:49:48]Write to MH i2c: E2 08 00 D0 04 80 13 00 00 00 00 00 00 50 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 62 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 62 00 D0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 01 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 01 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:48]wFMCommunicate OK [17:49:48]SAM_PROTO_GetFieldsCounters done [17:49:48]requested_item shift.num is exist - process it [17:49:48]requested_item shift.opened is exist - process it [17:49:48]req_shift_opened [17:49:48]FM_GetShiftState [17:49:48]SAM_PROTO_GetShiftState [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 13 01 00 [17:49:48]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 0E 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 12 [17:49:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:49:48]wFMCommunicate OK [17:49:48]SAM_PROTO_GetShiftState done [17:49:48]FM_GetShiftState done [17:49:48]req_shift_opened done [17:49:48]requested_item shift.open_date is exist - process it [17:49:48]req_shift_open_date [17:49:48]req_shift_open_date done [17:49:48]produce_requested_data done [17:49:48]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18689,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:49:48]process_action_free close_receipt [17:49:48]json_value_free [17:49:48]json_value_free done [17:49:48]process_json_proto returns [17:49:48]Send response to host [17:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18689,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:49:48]free response buf [17:49:48]execute_script done [17:49:48]execute_script returns [17:49:48]free content buf [17:49:48]Sock 8.Close socket [17:49:48]Sock 8.Thread stoped [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:48]accept exits with 10 [17:59:48]New connection [17:59:48]New thread 3067272548 created [17:59:48]Thread 3067129188 joined [17:59:48]Waiting for new connection... [17:59:48] Sock 10.Parse request [17:59:48]Sock 10.Check first char [17:59:48]Sock 10.First char is OK [17:59:48]request: POST /json_proto HTTP/1.0 [17:59:48]Method: POST [17:59:48]URL: /json_proto [17:59:48]Method is POST - this is cgi request [17:59:48]url: /json_proto [17:59:48]query_string will be loaded in cgi processing [17:59:48]execute_cgi json_proto POST (null) [17:59:48]execute_cgi path=json_proto method=POST [17:59:48]POST find Content-Length [17:59:48]Host: 172.17.62.196:8080 [17:59:48]Content-Length: 1238 [17:59:48]Content-Type: application/json [17:59:48] [17:59:48]POST finish read [17:59:48]Found Content-Length = 1238 [17:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16614", "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" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 4.000, "sum" : 400.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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:48]execute_script... [17:59:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16614", "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" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 4.000, "sum" : 400.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" : 560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:48]POST & json_proto [17:59:48]process_json_proto [17:59:48]json parsed OK: [17:59:48]protocol is kg_v1.0 [17:59:48]action value=close_receipt [17:59:48]process_action close_receipt [17:59:48]cmd_close_receipt [17:59:48]MH_GetDate [17:59:48]Write to MH i2c: F0 00 00 D2 04 C5 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: F0 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: F0 09 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: F0 09 00 D2 04 00 15 5B F0 66 CE CC 0E 66 A2 [17:59:48]GetLastDocTimeStamp 1727027385 [17:59:48]current date 1727027989 [17:59:48]FM_GetShiftState [17:59:48]SAM_PROTO_GetShiftState [17:59:48]wFMCommunicate request_size=4 [17:59:48]MH_SAM_APDU [17:59:48]CAPDU: 80 13 01 00 [17:59:48]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [17:59:48]Write i2c OK [17:59:48]MH_I2C_Read... [17:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:48]Read from MH i2c: E2 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 0E 00 [17:59:48]MH_I2C_Read... [17:59:48]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 14 [17:59:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:59:48]wFMCommunicate OK [17:59:48]SAM_PROTO_GetShiftState done [17:59:48]FM_GetShiftState done [17:59:48]opened in 1726963967 [17:59:48]opened+sec_in_day 1727050367 [17:59:48]quantity*price = 16000 [17:59:48]sum+1 = 16001 [17:59:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001810 Вода Боржоми минеральная ж/б 0,33л 4.000 * 100.00 = 400.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 560.00 НСП 1% : 4.96 НДС 12% : 59.47 Наличными: 0.00 Безнал.: 560.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 86 22.09.2024 17:59 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18690 ФПД: 128781900461037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175949&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18690&fm=128781900461037&tin=02508201610067®Number=0000000000152968&sum=56000 0 [17:59:49]StoreToDocumentArchive [17:59:49]shift 180 fd 18690 [17:59:49]save to /storage/0180/doc_00018690 [17:59:49]save last doc name /storage/0180/doc_00018690 to /storage/kkm_last_doc_name [17:59:49]save OK [17:59:49]Clear old archive folders... [17:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=437 [17:59:49]tlvbuf is 001BF9F0 [17:59:49]SAM_PROTO_ClearQueue [17:59:49]wFMCommunicate request_size=4 [17:59:49]MH_SAM_APDU [17:59:49]CAPDU: 80 09 00 00 [17:59:49]Write to MH i2c: E2 08 00 E0 04 80 09 00 00 00 00 00 00 56 [17:59:49]Write i2c OK [17:59:49]MH_I2C_Read... [17:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:49]Read from MH i2c: E2 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: E2 03 00 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [17:59:49]RAPDU: 90 00 [17:59:49]wFMCommunicate OK [17:59:49]SAM_PROTO_ClearQueue done [17:59:49]KKMCreateOFDPacket [17:59:49]OFDProtocolAddRootSTLVToBuf [17:59:49]FM_MakeSignedData [17:59:49]FM_MakeSignedData [17:59:49]SAM_PROTO_SignData [17:59:49]wFMCommunicate request_size=4 [17:59:49]MH_SAM_APDU [17:59:49]CAPDU: 80 0D 01 02 [17:59:49]Write to MH i2c: E2 08 00 E1 04 80 0D 01 02 00 00 00 00 5E [17:59:49]Write i2c OK [17:59:49]MH_I2C_Read... [17:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:49]Read from MH i2c: E2 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: E2 03 00 [17:59:49]MH_I2C_Read... [17:59:49]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [17:59:49]RAPDU: 90 00 [17:59:49]wFMCommunicate OK [17:59:49]wFMCommunicate request_size=255 [17:59:49]MH_SAM_APDU [17:59:49]CAPDU: 80 0D 02 02 FA 03 00 B5 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 [17:59:49]Write to MH i2c: E2 02 01 E2 04 80 0D 02 02 FA 00 03 00 B5 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 00 A9 [17:59:50]Write i2c OK [17:59:50]MH_I2C_Read... [17:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:50]Read from MH i2c: E2 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 03 00 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [17:59:50]RAPDU: 90 00 [17:59:50]wFMCommunicate OK [17:59:50]wFMCommunicate request_size=196 [17:59:50]MH_SAM_APDU [17:59:50]CAPDU: 80 0D 02 02 BF 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 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 15 5B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 02 49 00 00 35 04 06 00 75 20 5F 6E 33 ED [17:59:50]Write to MH i2c: E2 C7 00 E3 04 80 0D 02 02 BF 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 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 15 5B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 02 49 00 00 35 04 06 00 75 20 5F 6E 33 ED 00 00 EE [17:59:50]Write i2c OK [17:59:50]MH_I2C_Read... [17:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:50]Read from MH i2c: E2 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 03 00 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [17:59:50]RAPDU: 90 00 [17:59:50]wFMCommunicate OK [17:59:50]wFMCommunicate request_size=4 [17:59:50]MH_SAM_APDU [17:59:50]CAPDU: 80 0D 03 02 [17:59:50]Write to MH i2c: E2 08 00 E4 04 80 0D 03 02 00 00 00 00 63 [17:59:50]Write i2c OK [17:59:50]MH_I2C_Read... [17:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:50]Read from MH i2c: E2 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 0B 00 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 0B 00 E4 04 00 4D BD AE 24 CA F3 32 04 90 00 33 [17:59:50]RAPDU: 4D BD AE 24 CA F3 32 04 90 00 [17:59:50]wFMCommunicate OK [17:59:50]SAM_PROTO_SignData done [17:59:50]FM_MakeSignedData done [17:59:50]CreateOFDProtocolMessage [17:59:50]wFMCommunicate request_size=4 [17:59:50]MH_SAM_APDU [17:59:50]CAPDU: 80 11 00 00 [17:59:50]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [17:59:50]Write i2c OK [17:59:50]MH_I2C_Read... [17:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:50]Read from MH i2c: E2 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 17 00 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BC [17:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:59:50]wFMCommunicate OK [17:59:50]CreateOFDProtocolMessage done [17:59:50]OFDSenderStorePacket 18690 [17:59:50]StoreOFDPacket docnum=18690 [17:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 C9 01 00 00 02 F9 C1 01 3A 9F 5A 03 01 00 03 00 B5 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 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 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 15 5B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 02 49 00 00 35 04 06 00 75 20 5F 6E 33 ED 4D BD AE 24 CA F3 32 04 [17:59:50]CheckFolder [17:59:50]dirname=/storage/ofd_packets [17:59:50]CheckFolder done [17:59:50]ProducePacketName [17:59:50]name=ofd_packets/00018690 [17:59:50]NVStorageSaveData ofd_packets/00018690 [17:59:50]File name is /storage/ofd_packets/00018690 [17:59:50]Write 487 bytes [17:59:50]NVStorageSaveData done [17:59:50]OFDSenderStorePacket done [17:59:50]KKMCreateOFDPacket done [17:59:50]NVStorageSaveData kkm_last_timestamp [17:59:50]File name is /storage/kkm_last_timestamp [17:59:50]Write 4 bytes [17:59:50]NVStorageSaveData done [17:59:50]ExternCall_PrintAddStr [17:59:50]wPrintStart [17:59:50]Write to MH i2c: 01 00 00 E6 04 EA [17:59:50]Write i2c OK [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: 01 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: 01 07 00 [17:59:50]MH_I2C_Read... [17:59:50]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 FF 0F FF [17:59:50]RasterBufferAndPrint [17:59:50]line Счет N : (3)16614 [17:59:50]line ИНН: 02508201610067 [17:59:50]line Контрольно-Кассовый Чек [17:59:50]line ПРОДАЖА [17:59:50]line Товар: 4600338001623 [17:59:50]line Вода Фруто НЯНЯ негазир д/детей 0,33л [17:59:50]line 2.000 * 80.00 [17:59:50]line = 160.00 [17:59:50]line НДС 12% НСП 1% [17:59:50]line > о реализуемом товаре [17:59:50]line Товар: 4860019001810 [17:59:50]line Вода Боржоми минеральная ж/б 0,33л [17:59:50]line 4.000 * 100.00 [17:59:50]line = 400.00 [17:59:50]line НДС 12% НСП 1% [17:59:50]line > о реализуемом товаре [17:59:50]line ИТОГО: 560.00 [17:59:50]line НСП 1% : 4.96 [17:59:50]line НДС 12% : 59.47 [17:59:50]line Наличными: 0.00 [17:59:50]line Безнал.: 560.00 [17:59:50]line Место: АЗС № 176 "Партнер Нефть" [17:59:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:59:50]line СНО: Общий режим [17:59:50]line Чек 86 22.09.2024 17:59 [17:59:50]line Смена: 180 ФФД: 1.0 [17:59:50]line ЗНМ: 0300000010 [17:59:50]line РНМ: 0000000000152968 [17:59:50]line Версия ККМ: v1.0 [17:59:50]line Платежная система: Бакай Банк [17:59:50]line ФМ: 0000000000959456 [17:59:50]line ФД: 18690 [17:59:50]line ФПД: 128781900461037 [17:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175949&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18690&fm=128781900461037&tin=02508201610067®Number=0000000000152968&sum=56000 [17:59:50]line 0 [17:59:50]written 0, free lines is 4095 [17:59:50]OFD Sender: Processing packet 18690 [packets to send 7, broken 6] [17:59:50]ProducePacketName [17:59:50]name=ofd_packets/00018690 [17:59:50]OFD Sender: To server: pG, [17:59:50]CommunicateWithHost lk.salyk.kg:30040 [17:59:50]ConnectInit lk.salyk.kg [17:59:51]Connected sock=9 [17:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 C9 01 00 00 02 F9 C1 01 3A 9F 5A 03 01 00 03 00 B5 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 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 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 DA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 15 5B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 02 49 00 00 35 04 06 00 75 20 5F 6E 33 ED 4D BD AE 24 CA F3 32 04 [17:59:51]Write to MH i2c: 01 00 00 18 05 1D [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: 01 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: 01 07 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 9E 0C CE [17:59:51]RasterBufferAndPrint [17:59:51]line [17:59:51]line [17:59:51]line [17:59:51]line [17:59:51]line [17:59:51]written 0, free lines is 3236 [17:59:51]MH_Cut [17:59:51]Write to MH i2c: D1 01 00 1F 05 01 F6 [17:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 09 5B 47 00 7A 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 39 35 39 34 35 36 10 04 04 00 02 49 00 00 F4 03 04 00 7D 04 F0 66 B6 04 01 00 00 FA 2C 3D F8 DA CA F9 FB [17:59:51]CommunicateWithHost err = 0 [17:59:51]CheckOFDResponse [17:59:51]1017 (14) - 77093643461234 [17:59:51]1041 (16) - 0000000000959456 [17:59:51]1040 (4) - 18690 [17:59:51]1012 (4) - 22.09.2024 11:50 [17:59:51]1206 (1) - 0 [17:59:51]OFD Sender: Remove packet 18690 [17:59:51]ProducePacketName [17:59:51]name=ofd_packets/00018690 [17:59:51]NVStorageDeleteData [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: D1 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: D1 01 00 [17:59:51]MH_I2C_Read... [17:59:51]Read from MH i2c: D1 01 00 1F 05 00 F5 [17:59:51]Write to MH i2c: 01 00 00 20 05 25 [17:59:51]Write i2c OK [17:59:51]MH_I2C_Read... [17:59:51]OFD Sender: No OFD packet to send [17:59:52]*** Cut start [17:59:52]*** Partial cut [17:59:52]*** CUTSNS_PIN = 1 [17:59:52]*** CUTSNS_PIN = 0 [17:59:52]*** Brake cut motor [17:59:52]Read from MH i2c: 01 [17:59:52]MH_I2C_Read... [17:59:52]*** Stop cut motor [17:59:52]*** Cut end [17:59:52]Read from MH i2c: 01 07 00 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: 01 07 00 20 05 00 00 00 00 00 FF 0F 3A [17:59:52]process_action close_receipt done [17:59:52]requested_data is exist [17:59:52]produce_requested_data [17:59:52]requested_item fm.sn is exist - process it [17:59:52]wFMCommunicate request_size=4 [17:59:52]MH_SAM_APDU [17:59:52]CAPDU: 80 11 00 00 [17:59:52]Write to MH i2c: E2 08 00 21 05 80 11 00 00 00 00 00 00 A0 [17:59:52]Write i2c OK [17:59:52]MH_I2C_Read... [17:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:52]Read from MH i2c: E2 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 17 00 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 17 00 21 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F9 [17:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:59:52]wFMCommunicate OK [17:59:52]requested_item fd.num is exist - process it [17:59:52]SAM_PROTO_GetFieldsCounters [17:59:52]wFMCommunicate request_size=4 [17:59:52]MH_SAM_APDU [17:59:52]CAPDU: 80 13 00 00 [17:59:52]Write to MH i2c: E2 08 00 22 05 80 13 00 00 00 00 00 00 A3 [17:59:52]Write i2c OK [17:59:52]MH_I2C_Read... [17:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:52]Read from MH i2c: E2 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 62 00 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 62 00 22 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 02 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 02 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:52]wFMCommunicate OK [17:59:52]SAM_PROTO_GetFieldsCounters done [17:59:52]requested_item shift.num is exist - process it [17:59:52]requested_item shift.opened is exist - process it [17:59:52]req_shift_opened [17:59:52]FM_GetShiftState [17:59:52]SAM_PROTO_GetShiftState [17:59:52]wFMCommunicate request_size=4 [17:59:52]MH_SAM_APDU [17:59:52]CAPDU: 80 13 01 00 [17:59:52]Write to MH i2c: E2 08 00 23 05 80 13 01 00 00 00 00 00 A5 [17:59:52]Write i2c OK [17:59:52]MH_I2C_Read... [17:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:52]Read from MH i2c: E2 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 0E 00 [17:59:52]MH_I2C_Read... [17:59:52]Read from MH i2c: E2 0E 00 23 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 65 [17:59:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [17:59:52]wFMCommunicate OK [17:59:52]SAM_PROTO_GetShiftState done [17:59:52]FM_GetShiftState done [17:59:52]req_shift_opened done [17:59:52]requested_item shift.open_date is exist - process it [17:59:52]req_shift_open_date [17:59:52]req_shift_open_date done [17:59:52]produce_requested_data done [17:59:52]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18690,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [17:59:52]process_action_free close_receipt [17:59:52]json_value_free [17:59:52]json_value_free done [17:59:52]process_json_proto returns [17:59:52]Send response to host [17:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18690,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [17:59:52]free response buf [17:59:52]execute_script done [17:59:52]execute_script returns [17:59:52]free content buf [17:59:52]Sock 10.Close socket [17:59:52]Sock 10.Thread stoped [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:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]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:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:52]accept exits with 8 [18:47:52]New connection [18:47:52]New thread 3067129188 created [18:47:52]Thread 3067272548 joined [18:47:52]Waiting for new connection... [18:47:52] Sock 8.Parse request [18:47:52]Sock 8.Check first char [18:47:52]Sock 8.First char is OK [18:47:52]request: POST /json_proto HTTP/1.0 [18:47:52]Method: POST [18:47:52]URL: /json_proto [18:47:52]Method is POST - this is cgi request [18:47:52]url: /json_proto [18:47:52]query_string will be loaded in cgi processing [18:47:52]execute_cgi json_proto POST (null) [18:47:52]execute_cgi path=json_proto method=POST [18:47:52]POST find Content-Length [18:47:52]Host: 172.17.62.196:8080 [18:47:52]Content-Length: 1085 [18:47:52]Content-Type: application/json [18:47:52] [18:47:52]POST finish read [18:47:52]Found Content-Length = 1085 [18:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16615", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:52]execute_script... [18:47: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)16615", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:52]POST & json_proto [18:47:52]process_json_proto [18:47:52]json parsed OK: [18:47:52]protocol is kg_v1.0 [18:47:52]action value=close_receipt [18:47:52]process_action close_receipt [18:47:52]cmd_close_receipt [18:47:52]MH_GetDate [18:47:52]Write to MH i2c: F0 00 00 24 05 18 [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: F0 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: F0 09 00 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: F0 09 00 24 05 00 59 66 F0 66 CE CC 0E 66 44 [18:47:52]GetLastDocTimeStamp 1727027989 [18:47:52]current date 1727030873 [18:47:52]FM_GetShiftState [18:47:52]SAM_PROTO_GetShiftState [18:47:52]wFMCommunicate request_size=4 [18:47:52]MH_SAM_APDU [18:47:52]CAPDU: 80 13 01 00 [18:47:52]Write to MH i2c: E2 08 00 25 05 80 13 01 00 00 00 00 00 A7 [18:47:52]Write i2c OK [18:47:52]MH_I2C_Read... [18:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:52]Read from MH i2c: E2 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: E2 0E 00 [18:47:52]MH_I2C_Read... [18:47:52]Read from MH i2c: E2 0E 00 25 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 67 [18:47:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:47:52]wFMCommunicate OK [18:47:52]SAM_PROTO_GetShiftState done [18:47:52]FM_GetShiftState done [18:47:52]opened in 1726963967 [18:47:52]opened+sec_in_day 1727050367 [18:47:52]quantity*price = 4000 [18:47:52]sum+1 = 4001 [18:47:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.01 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 87 22.09.2024 18:47 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18691 ФПД: 95931041677892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184754&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18691&fm=95931041677892&tin=02508201610067®Number=0000000000152968&sum=11500 0 [18:47:53]StoreToDocumentArchive [18:47:53]shift 180 fd 18691 [18:47:53]save to /storage/0180/doc_00018691 [18:47:53]save last doc name /storage/0180/doc_00018691 to /storage/kkm_last_doc_name [18:47:53]save OK [18:47:53]Clear old archive folders... [18:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=395 [18:47:53]tlvbuf is 001CD9F0 [18:47:53]SAM_PROTO_ClearQueue [18:47:53]wFMCommunicate request_size=4 [18:47:53]MH_SAM_APDU [18:47:53]CAPDU: 80 09 00 00 [18:47:53]Write to MH i2c: E2 08 00 32 05 80 09 00 00 00 00 00 00 A9 [18:47:53]Write i2c OK [18:47:53]MH_I2C_Read... [18:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:53]Read from MH i2c: E2 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 03 00 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [18:47:53]RAPDU: 90 00 [18:47:53]wFMCommunicate OK [18:47:53]SAM_PROTO_ClearQueue done [18:47:53]KKMCreateOFDPacket [18:47:53]OFDProtocolAddRootSTLVToBuf [18:47:53]FM_MakeSignedData [18:47:53]FM_MakeSignedData [18:47:53]SAM_PROTO_SignData [18:47:53]wFMCommunicate request_size=4 [18:47:53]MH_SAM_APDU [18:47:53]CAPDU: 80 0D 01 02 [18:47:53]Write to MH i2c: E2 08 00 33 05 80 0D 01 02 00 00 00 00 B1 [18:47:53]Write i2c OK [18:47:53]MH_I2C_Read... [18:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:53]Read from MH i2c: E2 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 03 00 [18:47:53]MH_I2C_Read... [18:47:53]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [18:47:53]RAPDU: 90 00 [18:47:53]wFMCommunicate OK [18:47:53]wFMCommunicate request_size=255 [18:47:53]MH_SAM_APDU [18:47:53]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 [18:47:53]Write to MH i2c: E2 02 01 34 05 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 00 00 74 [18:47:53]Write i2c OK [18:47:53]MH_I2C_Read... [18:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 03 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [18:47:54]RAPDU: 90 00 [18:47:54]wFMCommunicate OK [18:47:54]wFMCommunicate request_size=154 [18:47:54]MH_SAM_APDU [18:47:54]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5A 66 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 03 49 00 00 35 04 06 00 57 3F AF A9 82 44 [18:47:54]Write to MH i2c: E2 9D 00 35 05 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5A 66 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 03 49 00 00 35 04 06 00 57 3F AF A9 82 44 00 00 88 [18:47:54]Write i2c OK [18:47:54]MH_I2C_Read... [18:47:54]OFD Sender: No OFD packet to send [18:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 03 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [18:47:54]RAPDU: 90 00 [18:47:54]wFMCommunicate OK [18:47:54]wFMCommunicate request_size=4 [18:47:54]MH_SAM_APDU [18:47:54]CAPDU: 80 0D 03 02 [18:47:54]Write to MH i2c: E2 08 00 36 05 80 0D 03 02 00 00 00 00 B6 [18:47:54]Write i2c OK [18:47:54]MH_I2C_Read... [18:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 0B 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 0B 00 36 05 00 5B E0 96 40 C3 82 0E 6C 90 00 87 [18:47:54]RAPDU: 5B E0 96 40 C3 82 0E 6C 90 00 [18:47:54]wFMCommunicate OK [18:47:54]SAM_PROTO_SignData done [18:47:54]FM_MakeSignedData done [18:47:54]CreateOFDProtocolMessage [18:47:54]wFMCommunicate request_size=4 [18:47:54]MH_SAM_APDU [18:47:54]CAPDU: 80 11 00 00 [18:47:54]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [18:47:54]Write i2c OK [18:47:54]MH_I2C_Read... [18:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:54]Read from MH i2c: E2 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 17 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0F [18:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:47:54]wFMCommunicate OK [18:47:54]CreateOFDProtocolMessage done [18:47:54]OFDSenderStorePacket 18691 [18:47:54]StoreOFDPacket docnum=18691 [18:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9F 01 00 00 4A B7 97 01 EB 89 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5A 66 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 03 49 00 00 35 04 06 00 57 3F AF A9 82 44 5B E0 96 40 C3 82 0E 6C [18:47:54]CheckFolder [18:47:54]dirname=/storage/ofd_packets [18:47:54]CheckFolder done [18:47:54]ProducePacketName [18:47:54]name=ofd_packets/00018691 [18:47:54]NVStorageSaveData ofd_packets/00018691 [18:47:54]File name is /storage/ofd_packets/00018691 [18:47:54]Write 445 bytes [18:47:54]NVStorageSaveData done [18:47:54]OFDSenderStorePacket done [18:47:54]KKMCreateOFDPacket done [18:47:54]NVStorageSaveData kkm_last_timestamp [18:47:54]File name is /storage/kkm_last_timestamp [18:47:54]Write 4 bytes [18:47:54]NVStorageSaveData done [18:47:54]ExternCall_PrintAddStr [18:47:54]wPrintStart [18:47:54]Write to MH i2c: 01 00 00 38 05 3D [18:47:54]Write i2c OK [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: 01 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: 01 07 00 [18:47:54]MH_I2C_Read... [18:47:54]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 FF 0F 52 [18:47:54]RasterBufferAndPrint [18:47:54]line Счет N : (3)16615 [18:47:54]line ИНН: 02508201610067 [18:47:54]line Контрольно-Кассовый Чек [18:47:54]line ПРОДАЖА [18:47:54]line Товар: 4870001157913 [18:47:54]line Вода ASU 0,5л c без газа [18:47:54]line 1.000 * 40.00 [18:47:54]line = 40.00 [18:47:54]line НДС 12% НСП 1% [18:47:54]line > о реализуемом товаре [18:47:54]line Товар: 5449000189394 [18:47:54]line Холодный чай Fuse ягода 0,5л [18:47:54]line 1.000 * 75.00 [18:47:54]line = 75.00 [18:47:54]line НДС 12% НСП 1% [18:47:54]line > о реализуемом товаре [18:47:54]line ИТОГО: 115.00 [18:47:54]line НСП 1% : 1.01 [18:47:54]line НДС 12% : 12.21 [18:47:54]line Наличными: 0.00 [18:47:54]line Безнал.: 115.00 [18:47:54]line Место: АЗС № 176 "Партнер Нефть" [18:47:54]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:47:54]line СНО: Общий режим [18:47:54]line Чек 87 22.09.2024 18:47 [18:47:54]line Смена: 180 ФФД: 1.0 [18:47:54]line ЗНМ: 0300000010 [18:47:54]line РНМ: 0000000000152968 [18:47:54]line Версия ККМ: v1.0 [18:47:54]line Платежная система: O! деньги [18:47:54]line ФМ: 0000000000959456 [18:47:54]line ФД: 18691 [18:47:54]line ФПД: 95931041677892 [18:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T184754&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18691&fm=95931041677892&tin=02508201610067®Number=0000000000152968&sum=11500 [18:47:54]line 0 [18:47:54]written 0, free lines is 4095 [18:47:54]OFD Sender: Processing packet 18691 [packets to send 7, broken 6] [18:47:54]ProducePacketName [18:47:54]name=ofd_packets/00018691 [18:47:54]OFD Sender: To server: pG, [18:47:54]CommunicateWithHost lk.salyk.kg:30040 [18:47:54]ConnectInit lk.salyk.kg [18:47:54]Connected sock=10 [18:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9F 01 00 00 4A B7 97 01 EB 89 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 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 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5A 66 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 03 49 00 00 35 04 06 00 57 3F AF A9 82 44 5B E0 96 40 C3 82 0E 6C [18:47:55]Write to MH i2c: 01 00 00 68 05 6D [18:47:55]Write i2c OK [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: 01 [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: 01 07 00 [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 B2 0C 32 [18:47:55]RasterBufferAndPrint [18:47:55]line [18:47:55]line [18:47:55]line [18:47:55]line [18:47:55]line [18:47:55]written 0, free lines is 3259 [18:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8F E2 47 00 50 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 39 35 39 34 35 36 10 04 04 00 03 49 00 00 F4 03 04 00 C0 0F F0 66 B6 04 01 00 00 83 7D CE CE 42 68 54 BE [18:47:55]CommunicateWithHost err = 0 [18:47:55]CheckOFDResponse [18:47:55]1017 (14) - 77093643461234 [18:47:55]1041 (16) - 0000000000959456 [18:47:55]1040 (4) - 18691 [18:47:55]1012 (4) - 22.09.2024 12:38 [18:47:55]1206 (1) - 0 [18:47:55]OFD Sender: Remove packet 18691 [18:47:55]ProducePacketName [18:47:55]name=ofd_packets/00018691 [18:47:55]NVStorageDeleteData [18:47:55]MH_Cut [18:47:55]Write to MH i2c: D1 01 00 6F 05 01 46 [18:47:55]Write i2c OK [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: D1 [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: D1 01 00 [18:47:55]MH_I2C_Read... [18:47:55]Read from MH i2c: D1 01 00 6F 05 00 45 [18:47:55]Write to MH i2c: 01 00 00 70 05 75 [18:47:55]Write i2c OK [18:47:55]MH_I2C_Read... [18:47:55]OFD Sender: No OFD packet to send [18:47:55]*** Cut start [18:47:55]*** Partial cut [18:47:55]*** CUTSNS_PIN = 1 [18:47:55]*** CUTSNS_PIN = 0 [18:47:56]*** Brake cut motor [18:47:56]Read from MH i2c: 01 [18:47:56]MH_I2C_Read... [18:47:56]*** Stop cut motor [18:47:56]*** Cut end [18:47:56]Read from MH i2c: 01 07 00 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [18:47:56]process_action close_receipt done [18:47:56]requested_data is exist [18:47:56]produce_requested_data [18:47:56]requested_item fm.sn is exist - process it [18:47:56]wFMCommunicate request_size=4 [18:47:56]MH_SAM_APDU [18:47:56]CAPDU: 80 11 00 00 [18:47:56]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [18:47:56]Write i2c OK [18:47:56]MH_I2C_Read... [18:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:56]Read from MH i2c: E2 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 17 00 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 49 [18:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:47:56]wFMCommunicate OK [18:47:56]requested_item fd.num is exist - process it [18:47:56]SAM_PROTO_GetFieldsCounters [18:47:56]wFMCommunicate request_size=4 [18:47:56]MH_SAM_APDU [18:47:56]CAPDU: 80 13 00 00 [18:47:56]Write to MH i2c: E2 08 00 72 05 80 13 00 00 00 00 00 00 F3 [18:47:56]Write i2c OK [18:47:56]MH_I2C_Read... [18:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:56]Read from MH i2c: E2 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 62 00 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 62 00 72 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 03 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 03 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:56]wFMCommunicate OK [18:47:56]SAM_PROTO_GetFieldsCounters done [18:47:56]requested_item shift.num is exist - process it [18:47:56]requested_item shift.opened is exist - process it [18:47:56]req_shift_opened [18:47:56]FM_GetShiftState [18:47:56]SAM_PROTO_GetShiftState [18:47:56]wFMCommunicate request_size=4 [18:47:56]MH_SAM_APDU [18:47:56]CAPDU: 80 13 01 00 [18:47:56]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [18:47:56]Write i2c OK [18:47:56]MH_I2C_Read... [18:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:56]Read from MH i2c: E2 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 0E 00 [18:47:56]MH_I2C_Read... [18:47:56]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B5 [18:47:56]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:47:56]wFMCommunicate OK [18:47:56]SAM_PROTO_GetShiftState done [18:47:56]FM_GetShiftState done [18:47:56]req_shift_opened done [18:47:56]requested_item shift.open_date is exist - process it [18:47:56]req_shift_open_date [18:47:56]req_shift_open_date done [18:47:56]produce_requested_data done [18:47:56]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18691,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [18:47:56]process_action_free close_receipt [18:47:56]json_value_free [18:47:56]json_value_free done [18:47:56]process_json_proto returns [18:47:56]Send response to host [18:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18691,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [18:47:56]free response buf [18:47:56]execute_script done [18:47:56]execute_script returns [18:47:56]free content buf [18:47:56]Sock 8.Close socket [18:47:56]Sock 8.Thread stoped [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:28]accept exits with 9 [18:53:28]New connection [18:53:28]New thread 3067272548 created [18:53:28]Thread 3067129188 joined [18:53:28]Waiting for new connection... [18:53:28] Sock 9.Parse request [18:53:28]Sock 9.Check first char [18:53:28]Sock 9.First char is OK [18:53:28]request: POST /json_proto HTTP/1.0 [18:53:28]Method: POST [18:53:28]URL: /json_proto [18:53:28]Method is POST - this is cgi request [18:53:28]url: /json_proto [18:53:28]query_string will be loaded in cgi processing [18:53:28]execute_cgi json_proto POST (null) [18:53:28]execute_cgi path=json_proto method=POST [18:53:28]POST find Content-Length [18:53:28]Host: 172.17.62.196:8080 [18:53:28]Content-Length: 665 [18:53:28]Content-Type: application/json [18:53:28] [18:53:28]POST finish read [18:53:28]Found Content-Length = 665 [18:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16616", "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 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:28]execute_script... [18:53:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16616", "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 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:28]POST & json_proto [18:53:28]process_json_proto [18:53:28]json parsed OK: [18:53:28]protocol is kg_v1.0 [18:53:28]action value=close_receipt [18:53:28]process_action close_receipt [18:53:28]cmd_close_receipt [18:53:28]MH_GetDate [18:53:28]Write to MH i2c: F0 00 00 74 05 68 [18:53:28]Write i2c OK [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: F0 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: F0 09 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: F0 09 00 74 05 00 A9 67 F0 66 CE CC 0E 66 E5 [18:53:28]GetLastDocTimeStamp 1727030874 [18:53:28]current date 1727031209 [18:53:28]FM_GetShiftState [18:53:28]SAM_PROTO_GetShiftState [18:53:28]wFMCommunicate request_size=4 [18:53:28]MH_SAM_APDU [18:53:28]CAPDU: 80 13 01 00 [18:53:28]Write to MH i2c: E2 08 00 75 05 80 13 01 00 00 00 00 00 F7 [18:53:28]Write i2c OK [18:53:28]MH_I2C_Read... [18:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:28]Read from MH i2c: E2 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 0E 00 [18:53:28]MH_I2C_Read... [18:53:28]Read from MH i2c: E2 0E 00 75 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B7 [18:53:28]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:53:28]wFMCommunicate OK [18:53:28]SAM_PROTO_GetShiftState done [18:53:28]FM_GetShiftState done [18:53:28]opened in 1726963967 [18:53:28]opened+sec_in_day 1727050367 [18:53:28]quantity*price = 9000 [18:53:28]sum+1 = 9001 [18:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 88 22.09.2024 18:53 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18692 ФПД: 148898860420197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185329&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18692&fm=148898860420197&tin=02508201610067®Number=0000000000152968&sum=9000 0 [18:53:29]StoreToDocumentArchive [18:53:29]shift 180 fd 18692 [18:53:29]save to /storage/0180/doc_00018692 [18:53:29]save last doc name /storage/0180/doc_00018692 to /storage/kkm_last_doc_name [18:53:29]save OK [18:53:29]Clear old archive folders... [18:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:53:29]tlvbuf is 001BA6B0 [18:53:29]SAM_PROTO_ClearQueue [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 09 00 00 [18:53:29]Write to MH i2c: E2 08 00 82 05 80 09 00 00 00 00 00 00 F9 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [18:53:29]RAPDU: 90 00 [18:53:29]wFMCommunicate OK [18:53:29]SAM_PROTO_ClearQueue done [18:53:29]KKMCreateOFDPacket [18:53:29]OFDProtocolAddRootSTLVToBuf [18:53:29]FM_MakeSignedData [18:53:29]FM_MakeSignedData [18:53:29]SAM_PROTO_SignData [18:53:29]wFMCommunicate request_size=4 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 0D 01 02 [18:53:29]Write to MH i2c: E2 08 00 83 05 80 0D 01 02 00 00 00 00 01 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [18:53:29]RAPDU: 90 00 [18:53:29]wFMCommunicate OK [18:53:29]wFMCommunicate request_size=255 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 A9 67 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:53:29]Write to MH i2c: E2 02 01 84 05 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 A9 67 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 4B [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:29]Read from MH i2c: E2 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 [18:53:29]MH_I2C_Read... [18:53:29]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [18:53:29]RAPDU: 90 00 [18:53:29]wFMCommunicate OK [18:53:29]wFMCommunicate request_size=52 [18:53:29]MH_SAM_APDU [18:53:29]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 04 49 00 00 35 04 06 00 87 6C 37 AE CC 65 [18:53:29]Write to MH i2c: E2 37 00 85 05 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 04 49 00 00 35 04 06 00 87 6C 37 AE CC 65 00 00 29 [18:53:29]Write i2c OK [18:53:29]MH_I2C_Read... [18:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:30]Read from MH i2c: E2 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 03 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [18:53:30]RAPDU: 90 00 [18:53:30]wFMCommunicate OK [18:53:30]wFMCommunicate request_size=4 [18:53:30]MH_SAM_APDU [18:53:30]CAPDU: 80 0D 03 02 [18:53:30]Write to MH i2c: E2 08 00 86 05 80 0D 03 02 00 00 00 00 06 [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:30]Read from MH i2c: E2 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 0B 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 0B 00 86 05 00 DA 06 7C F6 6E 4E 9B B4 90 00 64 [18:53:30]RAPDU: DA 06 7C F6 6E 4E 9B B4 90 00 [18:53:30]wFMCommunicate OK [18:53:30]SAM_PROTO_SignData done [18:53:30]FM_MakeSignedData done [18:53:30]CreateOFDProtocolMessage [18:53:30]wFMCommunicate request_size=4 [18:53:30]MH_SAM_APDU [18:53:30]CAPDU: 80 11 00 00 [18:53:30]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:30]Read from MH i2c: E2 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 17 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5F [18:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:53:30]wFMCommunicate OK [18:53:30]CreateOFDProtocolMessage done [18:53:30]OFDSenderStorePacket 18692 [18:53:30]StoreOFDPacket docnum=18692 [18:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 B2 2C 31 01 8A C4 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 A9 67 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 04 49 00 00 35 04 06 00 87 6C 37 AE CC 65 DA 06 7C F6 6E 4E 9B B4 [18:53:30]CheckFolder [18:53:30]dirname=/storage/ofd_packets [18:53:30]CheckFolder done [18:53:30]ProducePacketName [18:53:30]name=ofd_packets/00018692 [18:53:30]NVStorageSaveData ofd_packets/00018692 [18:53:30]File name is /storage/ofd_packets/00018692 [18:53:30]Write 343 bytes [18:53:30]NVStorageSaveData done [18:53:30]OFDSenderStorePacket done [18:53:30]KKMCreateOFDPacket done [18:53:30]NVStorageSaveData kkm_last_timestamp [18:53:30]File name is /storage/kkm_last_timestamp [18:53:30]Write 4 bytes [18:53:30]NVStorageSaveData done [18:53:30]ExternCall_PrintAddStr [18:53:30]wPrintStart [18:53:30]Write to MH i2c: 01 00 00 88 05 8D [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 07 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [18:53:30]RasterBufferAndPrint [18:53:30]line Счет N : (3)16616 [18:53:30]line ИНН: 02508201610067 [18:53:30]line Контрольно-Кассовый Чек [18:53:30]line ПРОДАЖА [18:53:30]line Товар: 4870022003305 [18:53:30]line Напиток Gorilla эн нат ж/б 0,5/0,45л [18:53:30]line 1.000 * 90.00 [18:53:30]line = 90.00 [18:53:30]line НДС 12% НСП 1% [18:53:30]line > о реализуемом товаре [18:53:30]line ИТОГО: 90.00 [18:53:30]line НСП 1% : 0.80 [18:53:30]line НДС 12% : 9.56 [18:53:30]line Наличными: 90.00 [18:53:30]line Безнал.: 0.00 [18:53:30]line Место: АЗС № 176 "Партнер Нефть" [18:53:30]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:53:30]line СНО: Общий режим [18:53:30]line Чек 88 22.09.2024 18:53 [18:53:30]line Смена: 180 ФФД: 1.0 [18:53:30]line ЗНМ: 0300000010 [18:53:30]line РНМ: 0000000000152968 [18:53:30]line Версия ККМ: v1.0 [18:53:30]line ФМ: 0000000000959456 [18:53:30]line ФД: 18692 [18:53:30]line ФПД: 148898860420197 [18:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185329&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18692&fm=148898860420197&tin=02508201610067®Number=0000000000152968&sum=9000 [18:53:30]line 0 [18:53:30]OFD Sender: Processing packet 18692 [packets to send 7, broken 6] [18:53:30]ProducePacketName [18:53:30]name=ofd_packets/00018692 [18:53:30]OFD Sender: To server: pG, [18:53:30]CommunicateWithHost lk.salyk.kg:30040 [18:53:30]ConnectInit lk.salyk.kg [18:53:30]written 0, free lines is 4095 [18:53:30]Connected sock=8 [18:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 B2 2C 31 01 8A C4 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 58 00 00 00 F4 03 04 00 A9 67 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 04 49 00 00 35 04 06 00 87 6C 37 AE CC 65 DA 06 7C F6 6E 4E 9B B4 [18:53:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FE 65 47 00 C1 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 39 35 39 34 35 36 10 04 04 00 04 49 00 00 F4 03 04 00 10 11 F0 66 B6 04 01 00 00 6B 89 17 84 84 F3 69 AB [18:53:30]CommunicateWithHost err = 0 [18:53:30]CheckOFDResponse [18:53:30]1017 (14) - 77093643461234 [18:53:30]1041 (16) - 0000000000959456 [18:53:30]1040 (4) - 18692 [18:53:30]1012 (4) - 22.09.2024 12:44 [18:53:30]1206 (1) - 0 [18:53:30]OFD Sender: Remove packet 18692 [18:53:30]ProducePacketName [18:53:30]name=ofd_packets/00018692 [18:53:30]NVStorageDeleteData [18:53:30]Write to MH i2c: 01 00 00 B1 05 B6 [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 07 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 0B 0D D5 [18:53:30]RasterBufferAndPrint [18:53:30]line [18:53:30]line [18:53:30]line [18:53:30]line [18:53:30]line [18:53:30]written 0, free lines is 3345 [18:53:30]MH_Cut [18:53:30]Write to MH i2c: D1 01 00 B8 05 01 8F [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: D1 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: D1 01 00 [18:53:30]MH_I2C_Read... [18:53:30]Read from MH i2c: D1 01 00 B8 05 00 8E [18:53:30]Write to MH i2c: 01 00 00 B9 05 BE [18:53:30]Write i2c OK [18:53:30]MH_I2C_Read... [18:53:31]OFD Sender: No OFD packet to send [18:53:31]*** Cut start [18:53:31]*** Partial cut [18:53:31]*** CUTSNS_PIN = 1 [18:53:31]*** CUTSNS_PIN = 0 [18:53:31]*** Brake cut motor [18:53:32]Read from MH i2c: 01 [18:53:32]MH_I2C_Read... [18:53:32]*** Stop cut motor [18:53:32]*** Cut end [18:53:32]Read from MH i2c: 01 07 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [18:53:32]process_action close_receipt done [18:53:32]requested_data is exist [18:53:32]produce_requested_data [18:53:32]requested_item fm.sn is exist - process it [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 11 00 00 [18:53:32]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 17 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 92 [18:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:53:32]wFMCommunicate OK [18:53:32]requested_item fd.num is exist - process it [18:53:32]SAM_PROTO_GetFieldsCounters [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 13 00 00 [18:53:32]Write to MH i2c: E2 08 00 BB 05 80 13 00 00 00 00 00 00 3C [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 62 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 62 00 BB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 04 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [18:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 04 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:32]wFMCommunicate OK [18:53:32]SAM_PROTO_GetFieldsCounters done [18:53:32]requested_item shift.num is exist - process it [18:53:32]requested_item shift.opened is exist - process it [18:53:32]req_shift_opened [18:53:32]FM_GetShiftState [18:53:32]SAM_PROTO_GetShiftState [18:53:32]wFMCommunicate request_size=4 [18:53:32]MH_SAM_APDU [18:53:32]CAPDU: 80 13 01 00 [18:53:32]Write to MH i2c: E2 08 00 BC 05 80 13 01 00 00 00 00 00 3E [18:53:32]Write i2c OK [18:53:32]MH_I2C_Read... [18:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:32]Read from MH i2c: E2 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0E 00 [18:53:32]MH_I2C_Read... [18:53:32]Read from MH i2c: E2 0E 00 BC 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 FE [18:53:32]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:53:32]wFMCommunicate OK [18:53:32]SAM_PROTO_GetShiftState done [18:53:32]FM_GetShiftState done [18:53:32]req_shift_opened done [18:53:32]requested_item shift.open_date is exist - process it [18:53:32]req_shift_open_date [18:53:32]req_shift_open_date done [18:53:32]produce_requested_data done [18:53:32]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18692,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [18:53:32]process_action_free close_receipt [18:53:32]json_value_free [18:53:32]json_value_free done [18:53:32]process_json_proto returns [18:53:32]Send response to host [18:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18692,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [18:53:32]free response buf [18:53:32]execute_script done [18:53:32]execute_script returns [18:53:32]free content buf [18:53:32]Sock 9.Close socket [18:53:32]Sock 9.Thread stoped [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:15]accept exits with 10 [18:58:15]New connection [18:58:15]New thread 3067129188 created [18:58:15]Thread 3067272548 joined [18:58:15]Waiting for new connection... [18:58:15] Sock 10.Parse request [18:58:15]Sock 10.Check first char [18:58:15]Sock 10.First char is OK [18:58:15]request: POST /json_proto HTTP/1.0 [18:58:15]Method: POST [18:58:15]URL: /json_proto [18:58:15]Method is POST - this is cgi request [18:58:15]url: /json_proto [18:58:15]query_string will be loaded in cgi processing [18:58:15]execute_cgi json_proto POST (null) [18:58:15]execute_cgi path=json_proto method=POST [18:58:15]POST find Content-Length [18:58:15]Host: 172.17.62.196:8080 [18:58:15]Content-Length: 654 [18:58:15]Content-Type: application/json [18:58:15] [18:58:15]POST finish read [18:58:15]Found Content-Length = 654 [18:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16617", "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" : 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" ] } } [18:58:15]execute_script... [18:58: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)16617", "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" : 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" ] } } [18:58:15]POST & json_proto [18:58:15]process_json_proto [18:58:15]json parsed OK: [18:58:15]protocol is kg_v1.0 [18:58:15]action value=close_receipt [18:58:15]process_action close_receipt [18:58:15]cmd_close_receipt [18:58:15]MH_GetDate [18:58:15]Write to MH i2c: F0 00 00 BD 05 B1 [18:58:15]Write i2c OK [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: F0 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: F0 09 00 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: F0 09 00 BD 05 00 C8 68 F0 66 CE CC 0E 66 4E [18:58:15]GetLastDocTimeStamp 1727031209 [18:58:15]current date 1727031496 [18:58:15]FM_GetShiftState [18:58:15]SAM_PROTO_GetShiftState [18:58:15]wFMCommunicate request_size=4 [18:58:15]MH_SAM_APDU [18:58:15]CAPDU: 80 13 01 00 [18:58:15]Write to MH i2c: E2 08 00 BE 05 80 13 01 00 00 00 00 00 40 [18:58:15]Write i2c OK [18:58:15]MH_I2C_Read... [18:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:15]Read from MH i2c: E2 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 0E 00 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 0E 00 BE 05 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 00 [18:58:15]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:58:15]wFMCommunicate OK [18:58:15]SAM_PROTO_GetShiftState done [18:58:15]FM_GetShiftState done [18:58:15]opened in 1726963967 [18:58:15]opened+sec_in_day 1727050367 [18:58:15]quantity*price = 8500 [18:58:15]sum+1 = 8501 [18:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 89 22.09.2024 18:58 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18693 ФПД: 28966956722998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185816&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18693&fm=28966956722998&tin=02508201610067®Number=0000000000152968&sum=8500 0 [18:58:16]StoreToDocumentArchive [18:58:16]shift 180 fd 18693 [18:58:16]save to /storage/0180/doc_00018693 [18:58:16]save last doc name /storage/0180/doc_00018693 to /storage/kkm_last_doc_name [18:58:16]save OK [18:58:16]Clear old archive folders... [18:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:58:16]tlvbuf is 001F7BA0 [18:58:16]SAM_PROTO_ClearQueue [18:58:16]wFMCommunicate request_size=4 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 09 00 00 [18:58:16]Write to MH i2c: E2 08 00 CB 05 80 09 00 00 00 00 00 00 42 [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [18:58:16]RAPDU: 90 00 [18:58:16]wFMCommunicate OK [18:58:16]SAM_PROTO_ClearQueue done [18:58:16]KKMCreateOFDPacket [18:58:16]OFDProtocolAddRootSTLVToBuf [18:58:16]FM_MakeSignedData [18:58:16]FM_MakeSignedData [18:58:16]SAM_PROTO_SignData [18:58:16]wFMCommunicate request_size=4 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 0D 01 02 [18:58:16]Write to MH i2c: E2 08 00 CC 05 80 0D 01 02 00 00 00 00 4A [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [18:58:16]RAPDU: 90 00 [18:58:16]wFMCommunicate OK [18:58:16]wFMCommunicate request_size=255 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 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 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 59 00 00 00 F4 03 04 00 C8 68 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:58:16]Write to MH i2c: E2 02 01 CD 05 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 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 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 59 00 00 00 F4 03 04 00 C8 68 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 C1 [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]OFD Sender: No OFD packet to send [18:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [18:58:16]RAPDU: 90 00 [18:58:16]wFMCommunicate OK [18:58:16]wFMCommunicate request_size=53 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 0D 02 02 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 05 49 00 00 35 04 06 00 1A 58 65 2A 6B 36 [18:58:16]Write to MH i2c: E2 38 00 CE 05 80 0D 02 02 30 00 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 05 49 00 00 35 04 06 00 1A 58 65 2A 6B 36 00 00 3E [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [18:58:16]RAPDU: 90 00 [18:58:16]wFMCommunicate OK [18:58:16]wFMCommunicate request_size=4 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 0D 03 02 [18:58:16]Write to MH i2c: E2 08 00 CF 05 80 0D 03 02 00 00 00 00 4F [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 0B 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 0B 00 CF 05 00 91 61 58 33 B0 A5 D7 06 90 00 FF [18:58:16]RAPDU: 91 61 58 33 B0 A5 D7 06 90 00 [18:58:16]wFMCommunicate OK [18:58:16]SAM_PROTO_SignData done [18:58:16]FM_MakeSignedData done [18:58:16]CreateOFDProtocolMessage [18:58:16]wFMCommunicate request_size=4 [18:58:16]MH_SAM_APDU [18:58:16]CAPDU: 80 11 00 00 [18:58:16]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [18:58:16]Write i2c OK [18:58:16]MH_I2C_Read... [18:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:17]Read from MH i2c: E2 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 17 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A8 [18:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:58:17]wFMCommunicate OK [18:58:17]CreateOFDProtocolMessage done [18:58:17]OFDSenderStorePacket 18693 [18:58:17]StoreOFDPacket docnum=18693 [18:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 34 F5 32 01 33 C5 5A 03 01 00 03 00 26 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 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 59 00 00 00 F4 03 04 00 C8 68 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 05 49 00 00 35 04 06 00 1A 58 65 2A 6B 36 91 61 58 33 B0 A5 D7 06 [18:58:17]CheckFolder [18:58:17]dirname=/storage/ofd_packets [18:58:17]CheckFolder done [18:58:17]ProducePacketName [18:58:17]name=ofd_packets/00018693 [18:58:17]NVStorageSaveData ofd_packets/00018693 [18:58:17]File name is /storage/ofd_packets/00018693 [18:58:17]Write 344 bytes [18:58:17]NVStorageSaveData done [18:58:17]OFDSenderStorePacket done [18:58:17]KKMCreateOFDPacket done [18:58:17]NVStorageSaveData kkm_last_timestamp [18:58:17]File name is /storage/kkm_last_timestamp [18:58:17]Write 4 bytes [18:58:17]NVStorageSaveData done [18:58:17]ExternCall_PrintAddStr [18:58:17]wPrintStart [18:58:17]Write to MH i2c: 01 00 00 D1 05 D6 [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [18:58:17]RasterBufferAndPrint [18:58:17]line Счет N : (3)16617 [18:58:17]line ИНН: 02508201610067 [18:58:17]line Контрольно-Кассовый Чек [18:58:17]line ПРОДАЖА [18:58:17]line Товар: 4600682557456 [18:58:17]line Напиток FLash up energy эн ж/б 0,5/0,45л [18:58:17]line 1.000 * 85.00 [18:58:17]line = 85.00 [18:58:17]line НДС 12% НСП 1% [18:58:17]line > о реализуемом товаре [18:58:17]line ИТОГО: 85.00 [18:58:17]line НСП 1% : 0.75 [18:58:17]line НДС 12% : 9.03 [18:58:17]line Наличными: 85.00 [18:58:17]line Безнал.: 0.00 [18:58:17]line Место: АЗС № 176 "Партнер Нефть" [18:58:17]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:58:17]line СНО: Общий режим [18:58:17]line Чек 89 22.09.2024 18:58 [18:58:17]line Смена: 180 ФФД: 1.0 [18:58:17]line ЗНМ: 0300000010 [18:58:17]line РНМ: 0000000000152968 [18:58:17]line Версия ККМ: v1.0 [18:58:17]line ФМ: 0000000000959456 [18:58:17]line ФД: 18693 [18:58:17]line ФПД: 28966956722998 [18:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T185816&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18693&fm=28966956722998&tin=02508201610067®Number=0000000000152968&sum=8500 [18:58:17]line 0 [18:58:17]OFD Sender: Processing packet 18693 [packets to send 7, broken 6] [18:58:17]ProducePacketName [18:58:17]name=ofd_packets/00018693 [18:58:17]OFD Sender: To server: pG, [18:58:17]CommunicateWithHost lk.salyk.kg:30040 [18:58:17]ConnectInit lk.salyk.kg [18:58:17]written 0, free lines is 4095 [18:58:17]Connected sock=9 [18:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 34 F5 32 01 33 C5 5A 03 01 00 03 00 26 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 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 59 00 00 00 F4 03 04 00 C8 68 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 05 49 00 00 35 04 06 00 1A 58 65 2A 6B 36 91 61 58 33 B0 A5 D7 06 [18:58:17]Write to MH i2c: 01 00 00 FA 05 FF [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 13 0D 26 [18:58:17]RasterBufferAndPrint [18:58:17]line [18:58:17]line [18:58:17]line [18:58:17]line [18:58:17]line [18:58:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 97 CA 47 00 C0 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 05 49 00 00 F4 03 04 00 2F 12 F0 66 B6 04 01 00 00 DA 9D B1 84 D0 11 C9 B0 [18:58:17]CommunicateWithHost err = 0 [18:58:17]CheckOFDResponse [18:58:17]1017 (14) - 77093643461234 [18:58:17]1041 (16) - 0000000000959456 [18:58:17]1040 (4) - 18693 [18:58:17]1012 (4) - 22.09.2024 12:48 [18:58:17]1206 (1) - 0 [18:58:17]OFD Sender: Remove packet 18693 [18:58:17]ProducePacketName [18:58:17]name=ofd_packets/00018693 [18:58:17]NVStorageDeleteData [18:58:17]written 0, free lines is 3368 [18:58:17]MH_Cut [18:58:17]Write to MH i2c: D1 01 00 01 06 01 D9 [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: D1 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: D1 01 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: D1 01 00 01 06 00 D8 [18:58:17]Write to MH i2c: 01 00 00 02 06 08 [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:18]OFD Sender: No OFD packet to send [18:58:18]*** Cut start [18:58:18]*** Partial cut [18:58:18]*** CUTSNS_PIN = 1 [18:58:18]*** CUTSNS_PIN = 0 [18:58:18]*** Brake cut motor [18:58:19]Read from MH i2c: 01 [18:58:19]MH_I2C_Read... [18:58:19]*** Stop cut motor [18:58:19]*** Cut end [18:58:19]Read from MH i2c: 01 07 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [18:58:19]process_action close_receipt done [18:58:19]requested_data is exist [18:58:19]produce_requested_data [18:58:19]requested_item fm.sn is exist - process it [18:58:19]wFMCommunicate request_size=4 [18:58:19]MH_SAM_APDU [18:58:19]CAPDU: 80 11 00 00 [18:58:19]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:19]Read from MH i2c: E2 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 17 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [18:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:58:19]wFMCommunicate OK [18:58:19]requested_item fd.num is exist - process it [18:58:19]SAM_PROTO_GetFieldsCounters [18:58:19]wFMCommunicate request_size=4 [18:58:19]MH_SAM_APDU [18:58:19]CAPDU: 80 13 00 00 [18:58:19]Write to MH i2c: E2 08 00 04 06 80 13 00 00 00 00 00 00 86 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:19]Read from MH i2c: E2 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 62 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 62 00 04 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 05 49 00 00 0E 04 04 00 B4 00 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 C0 [18:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 05 49 00 00 0E 04 04 00 B4 00 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 [18:58:19]wFMCommunicate OK [18:58:19]SAM_PROTO_GetFieldsCounters done [18:58:19]requested_item shift.num is exist - process it [18:58:19]requested_item shift.opened is exist - process it [18:58:19]req_shift_opened [18:58:19]FM_GetShiftState [18:58:19]SAM_PROTO_GetShiftState [18:58:19]wFMCommunicate request_size=4 [18:58:19]MH_SAM_APDU [18:58:19]CAPDU: 80 13 01 00 [18:58:19]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:19]Read from MH i2c: E2 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 0E 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 48 [18:58:19]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [18:58:19]wFMCommunicate OK [18:58:19]SAM_PROTO_GetShiftState done [18:58:19]FM_GetShiftState done [18:58:19]req_shift_opened done [18:58:19]requested_item shift.open_date is exist - process it [18:58:19]req_shift_open_date [18:58:19]req_shift_open_date done [18:58:19]produce_requested_data done [18:58:19]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18693,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [18:58:19]process_action_free close_receipt [18:58:19]json_value_free [18:58:19]json_value_free done [18:58:19]process_json_proto returns [18:58:19]Send response to host [18:58:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18693,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [18:58:19]free response buf [18:58:19]execute_script done [18:58:19]execute_script returns [18:58:19]free content buf [18:58:19]Sock 10.Close socket [18:58:19]Sock 10.Thread stoped [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:13]ConnectInit Can't connect to host [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:37]accept exits with 8 [19:43:37]New connection [19:43:37]New thread 3067272548 created [19:43:37]Thread 3067129188 joined [19:43:37]Waiting for new connection... [19:43:37] Sock 8.Parse request [19:43:37]Sock 8.Check first char [19:43:37]Sock 8.First char is OK [19:43:37]request: POST /json_proto HTTP/1.0 [19:43:37]Method: POST [19:43:37]URL: /json_proto [19:43:37]Method is POST - this is cgi request [19:43:37]url: /json_proto [19:43:37]query_string will be loaded in cgi processing [19:43:37]execute_cgi json_proto POST (null) [19:43:37]execute_cgi path=json_proto method=POST [19:43:37]POST find Content-Length [19:43:37]Host: 172.17.62.196:8080 [19:43:37]Content-Length: 633 [19:43:37]Content-Type: application/json [19:43:37] [19:43:37]POST finish read [19:43:37]Found Content-Length = 633 [19:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16618", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.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" ] } } [19:43:37]execute_script... [19: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)16618", "tax_sys" : 0, "items" : [ { "code": "4700025314002", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.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" ] } } [19:43:37]POST & json_proto [19:43:37]process_json_proto [19:43:37]json parsed OK: [19:43:37]protocol is kg_v1.0 [19:43:37]action value=close_receipt [19:43:37]process_action close_receipt [19:43:37]cmd_close_receipt [19:43:37]MH_GetDate [19:43:37]Write to MH i2c: F0 00 00 06 06 FB [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 09 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: F0 09 00 06 06 00 6B 73 F0 66 CE CC 0E 66 46 [19:43:37]GetLastDocTimeStamp 1727031496 [19:43:37]current date 1727034219 [19:43:37]FM_GetShiftState [19:43:37]SAM_PROTO_GetShiftState [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 13 01 00 [19:43:37]Write to MH i2c: E2 08 00 07 06 80 13 01 00 00 00 00 00 8A [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 07 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4A [19:43:37]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_GetShiftState done [19:43:37]FM_GetShiftState done [19:43:37]opened in 1726963967 [19:43:37]opened+sec_in_day 1727050367 [19:43:37]quantity*price = 12000 [19:43:37]sum+1 = 12001 [19:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 90 22.09.2024 19:43 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18694 ФПД: 182084097499299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194339&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18694&fm=182084097499299&tin=02508201610067®Number=0000000000152968&sum=12000 0 [19:43:38]StoreToDocumentArchive [19:43:38]shift 180 fd 18694 [19:43:38]save to /storage/0180/doc_00018694 [19:43:38]save last doc name /storage/0180/doc_00018694 to /storage/kkm_last_doc_name [19:43:38]save OK [19:43:38]Clear old archive folders... [19:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:43:38]tlvbuf is 001E2B10 [19:43:38]SAM_PROTO_ClearQueue [19:43:38]wFMCommunicate request_size=4 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 09 00 00 [19:43:38]Write to MH i2c: E2 08 00 14 06 80 09 00 00 00 00 00 00 8C [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [19:43:38]RAPDU: 90 00 [19:43:38]wFMCommunicate OK [19:43:38]SAM_PROTO_ClearQueue done [19:43:38]KKMCreateOFDPacket [19:43:38]OFDProtocolAddRootSTLVToBuf [19:43:38]FM_MakeSignedData [19:43:38]FM_MakeSignedData [19:43:38]SAM_PROTO_SignData [19:43:38]wFMCommunicate request_size=4 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 0D 01 02 [19:43:38]Write to MH i2c: E2 08 00 15 06 80 0D 01 02 00 00 00 00 94 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [19:43:38]RAPDU: 90 00 [19:43:38]wFMCommunicate OK [19:43:38]wFMCommunicate request_size=255 [19:43:38]MH_SAM_APDU [19:43:38]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 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5A 00 00 00 F4 03 04 00 6B 73 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:43:38]Write to MH i2c: E2 02 01 16 06 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 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5A 00 00 00 F4 03 04 00 6B 73 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 57 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 16 06 00 90 00 90 [19:43:38]RAPDU: 90 00 [19:43:38]wFMCommunicate OK [19:43:38]wFMCommunicate request_size=30 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 0D 02 02 19 30 39 35 39 34 35 36 10 04 04 00 06 49 00 00 35 04 06 00 A5 9A C1 F3 60 A3 [19:43:38]Write to MH i2c: E2 21 00 17 06 80 0D 02 02 19 00 30 39 35 39 34 35 36 10 04 04 00 06 49 00 00 35 04 06 00 A5 9A C1 F3 60 A3 00 00 DB [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [19:43:38]RAPDU: 90 00 [19:43:38]wFMCommunicate OK [19:43:38]wFMCommunicate request_size=4 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 0D 03 02 [19:43:38]Write to MH i2c: E2 08 00 18 06 80 0D 03 02 00 00 00 00 99 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:38]Read from MH i2c: E2 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 0B 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: E2 0B 00 18 06 00 49 D4 D7 BF 07 7D EE FF 90 00 BE [19:43:38]RAPDU: 49 D4 D7 BF 07 7D EE FF 90 00 [19:43:38]wFMCommunicate OK [19:43:38]SAM_PROTO_SignData done [19:43:38]FM_MakeSignedData done [19:43:38]CreateOFDProtocolMessage [19:43:38]wFMCommunicate request_size=4 [19:43:38]MH_SAM_APDU [19:43:38]CAPDU: 80 11 00 00 [19:43:38]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F2 [19:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:43:39]wFMCommunicate OK [19:43:39]CreateOFDProtocolMessage done [19:43:39]OFDSenderStorePacket 18694 [19:43:39]StoreOFDPacket docnum=18694 [19:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 23 01 00 00 20 6E 1B 01 75 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5A 00 00 00 F4 03 04 00 6B 73 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 06 49 00 00 35 04 06 00 A5 9A C1 F3 60 A3 49 D4 D7 BF 07 7D EE FF [19:43:39]CheckFolder [19:43:39]dirname=/storage/ofd_packets [19:43:39]CheckFolder done [19:43:39]ProducePacketName [19:43:39]name=ofd_packets/00018694 [19:43:39]NVStorageSaveData ofd_packets/00018694 [19:43:39]File name is /storage/ofd_packets/00018694 [19:43:39]Write 321 bytes [19:43:39]NVStorageSaveData done [19:43:39]OFDSenderStorePacket done [19:43:39]KKMCreateOFDPacket done [19:43:39]NVStorageSaveData kkm_last_timestamp [19:43:39]File name is /storage/kkm_last_timestamp [19:43:39]Write 4 bytes [19:43:39]NVStorageSaveData done [19:43:39]ExternCall_PrintAddStr [19:43:39]wPrintStart [19:43:39]Write to MH i2c: 01 00 00 1A 06 20 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [19:43:39]RasterBufferAndPrint [19:43:39]line Счет N : (3)16618 [19:43:39]line ИНН: 02508201610067 [19:43:39]line Контрольно-Кассовый Чек [19:43:39]line ПРОДАЖА [19:43:39]line Товар: 4700025314002 [19:43:39]line ВОДКА МЯГКАЯ 0,1л [19:43:39]line 2.000 * 60.00 [19:43:39]line = 120.00 [19:43:39]line НДС 12% НСП 1% [19:43:39]line > о реализуемом товаре [19:43:39]line ИТОГО: 120.00 [19:43:39]line НСП 1% : 1.06 [19:43:39]line НДС 12% : 12.74 [19:43:39]line Наличными: 120.00 [19:43:39]line Безнал.: 0.00 [19:43:39]line Место: АЗС № 176 "Партнер Нефть" [19:43:39]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:43:39]line СНО: Общий режим [19:43:39]line Чек 90 22.09.2024 19:43 [19:43:39]line Смена: 180 ФФД: 1.0 [19:43:39]line ЗНМ: 0300000010 [19:43:39]line РНМ: 0000000000152968 [19:43:39]line Версия ККМ: v1.0 [19:43:39]line ФМ: 0000000000959456 [19:43:39]line ФД: 18694 [19:43:39]line ФПД: 182084097499299 [19:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194339&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18694&fm=182084097499299&tin=02508201610067®Number=0000000000152968&sum=12000 [19:43:39]line 0 [19:43:39]OFD Sender: Processing packet 18694 [packets to send 7, broken 6] [19:43:39]ProducePacketName [19:43:39]name=ofd_packets/00018694 [19:43:39]OFD Sender: To server: pG, [19:43:39]CommunicateWithHost lk.salyk.kg:30040 [19:43:39]ConnectInit lk.salyk.kg [19:43:39]written 0, free lines is 4095 [19:43:39]Connected sock=10 [19:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 23 01 00 00 20 6E 1B 01 75 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 34 30 30 32 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 5A 00 00 00 F4 03 04 00 6B 73 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 06 49 00 00 35 04 06 00 A5 9A C1 F3 60 A3 49 D4 D7 BF 07 7D EE FF [19:43:39]Write to MH i2c: 01 00 00 42 06 48 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 24 0D 80 [19:43:39]RasterBufferAndPrint [19:43:39]line [19:43:39]line [19:43:39]line [19:43:39]line [19:43:39]line [19:43:39]written 0, free lines is 3370 [19:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 84 D0 47 00 21 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 06 49 00 00 F4 03 04 00 D1 1C F0 66 B6 04 01 00 00 92 ED 4C E8 A2 52 F2 8F [19:43:39]CommunicateWithHost err = 0 [19:43:39]CheckOFDResponse [19:43:39]1017 (14) - 77093643461234 [19:43:39]1041 (16) - 0000000000959456 [19:43:39]1040 (4) - 18694 [19:43:39]1012 (4) - 22.09.2024 13:34 [19:43:39]1206 (1) - 0 [19:43:39]OFD Sender: Remove packet 18694 [19:43:39]ProducePacketName [19:43:39]name=ofd_packets/00018694 [19:43:39]NVStorageDeleteData [19:43:39]MH_Cut [19:43:39]Write to MH i2c: D1 01 00 49 06 01 21 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: D1 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: D1 01 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: D1 01 00 49 06 00 20 [19:43:39]Write to MH i2c: 01 00 00 4A 06 50 [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:40]OFD Sender: No OFD packet to send [19:43:40]*** Cut start [19:43:40]*** Partial cut [19:43:40]*** CUTSNS_PIN = 1 [19:43:40]*** CUTSNS_PIN = 0 [19:43:40]*** Brake cut motor [19:43:41]Read from MH i2c: 01 [19:43:41]MH_I2C_Read... [19:43:41]*** Stop cut motor [19:43:41]*** Cut end [19:43:41]Read from MH i2c: 01 07 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [19:43:41]process_action close_receipt done [19:43:41]requested_data is exist [19:43:41]produce_requested_data [19:43:41]requested_item fm.sn is exist - process it [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 11 00 00 [19:43:41]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:41]Read from MH i2c: E2 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 17 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 24 [19:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:43:41]wFMCommunicate OK [19:43:41]requested_item fd.num is exist - process it [19:43:41]SAM_PROTO_GetFieldsCounters [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 13 00 00 [19:43:41]Write to MH i2c: E2 08 00 4C 06 80 13 00 00 00 00 00 00 CE [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:41]Read from MH i2c: E2 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 62 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 62 00 4C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 06 49 00 00 0E 04 04 00 B4 00 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 0C [19:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 06 49 00 00 0E 04 04 00 B4 00 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 [19:43:41]wFMCommunicate OK [19:43:41]SAM_PROTO_GetFieldsCounters done [19:43:41]requested_item shift.num is exist - process it [19:43:41]requested_item shift.opened is exist - process it [19:43:41]req_shift_opened [19:43:41]FM_GetShiftState [19:43:41]SAM_PROTO_GetShiftState [19:43:41]wFMCommunicate request_size=4 [19:43:41]MH_SAM_APDU [19:43:41]CAPDU: 80 13 01 00 [19:43:41]Write to MH i2c: E2 08 00 4D 06 80 13 01 00 00 00 00 00 D0 [19:43:41]Write i2c OK [19:43:41]MH_I2C_Read... [19:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:41]Read from MH i2c: E2 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 0E 00 [19:43:41]MH_I2C_Read... [19:43:41]Read from MH i2c: E2 0E 00 4D 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 90 [19:43:41]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:43:41]wFMCommunicate OK [19:43:41]SAM_PROTO_GetShiftState done [19:43:41]FM_GetShiftState done [19:43:41]req_shift_opened done [19:43:41]requested_item shift.open_date is exist - process it [19:43:41]req_shift_open_date [19:43:41]req_shift_open_date done [19:43:41]produce_requested_data done [19:43:41]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18694,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:43:41]process_action_free close_receipt [19:43:41]json_value_free [19:43:41]json_value_free done [19:43:41]process_json_proto returns [19:43:41]Send response to host [19:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18694,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:43:41]free response buf [19:43:41]execute_script done [19:43:41]execute_script returns [19:43:41]free content buf [19:43:41]Sock 8.Close socket [19:43:41]Sock 8.Thread stoped [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:39]accept exits with 9 [19:50:39]New connection [19:50:39]New thread 3067129188 created [19:50:39]Thread 3067272548 joined [19:50:39]Waiting for new connection... [19:50:39] Sock 9.Parse request [19:50:39]Sock 9.Check first char [19:50:39]Sock 9.First char is OK [19:50:39]request: POST /json_proto HTTP/1.0 [19:50:39]Method: POST [19:50:39]URL: /json_proto [19:50:39]Method is POST - this is cgi request [19:50:39]url: /json_proto [19:50:39]query_string will be loaded in cgi processing [19:50:39]execute_cgi json_proto POST (null) [19:50:39]execute_cgi path=json_proto method=POST [19:50:39]POST find Content-Length [19:50:39]Host: 172.17.62.196:8080 [19:50:39]Content-Length: 639 [19:50:39]Content-Type: application/json [19:50:39] [19:50:39]POST finish read [19:50:39]Found Content-Length = 639 [19:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16619", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:39]execute_script... [19:50: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)16619", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:39]POST & json_proto [19:50:39]process_json_proto [19:50:39]json parsed OK: [19:50:39]protocol is kg_v1.0 [19:50:39]action value=close_receipt [19:50:39]process_action close_receipt [19:50:39]cmd_close_receipt [19:50:39]MH_GetDate [19:50:39]Write to MH i2c: F0 00 00 4E 06 43 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: F0 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: F0 09 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: F0 09 00 4E 06 00 11 75 F0 66 CE CC 0E 66 36 [19:50:39]GetLastDocTimeStamp 1727034219 [19:50:39]current date 1727034641 [19:50:39]FM_GetShiftState [19:50:39]SAM_PROTO_GetShiftState [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 13 01 00 [19:50:39]Write to MH i2c: E2 08 00 4F 06 80 13 01 00 00 00 00 00 D2 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 0E 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 0E 00 4F 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 92 [19:50:39]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:50:39]wFMCommunicate OK [19:50:39]SAM_PROTO_GetShiftState done [19:50:39]FM_GetShiftState done [19:50:39]opened in 1726963967 [19:50:39]opened+sec_in_day 1727050367 [19:50:39]quantity*price = 18000 [19:50:39]sum+1 = 18001 [19:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 91 22.09.2024 19:50 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18695 ФПД: 146778385219074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195041&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18695&fm=146778385219074&tin=02508201610067®Number=0000000000152968&sum=18000 0 [19:50:40]StoreToDocumentArchive [19:50:40]shift 180 fd 18695 [19:50:40]save to /storage/0180/doc_00018695 [19:50:40]save last doc name /storage/0180/doc_00018695 to /storage/kkm_last_doc_name [19:50:40]save OK [19:50:40]Clear old archive folders... [19:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:50:40]tlvbuf is 001C15C0 [19:50:40]SAM_PROTO_ClearQueue [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 09 00 00 [19:50:40]Write to MH i2c: E2 08 00 5C 06 80 09 00 00 00 00 00 00 D4 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]OFD Sender: No OFD packet to send [19:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [19:50:40]RAPDU: 90 00 [19:50:40]wFMCommunicate OK [19:50:40]SAM_PROTO_ClearQueue done [19:50:40]KKMCreateOFDPacket [19:50:40]OFDProtocolAddRootSTLVToBuf [19:50:40]FM_MakeSignedData [19:50:40]FM_MakeSignedData [19:50:40]SAM_PROTO_SignData [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 0D 01 02 [19:50:40]Write to MH i2c: E2 08 00 5D 06 80 0D 01 02 00 00 00 00 DC [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [19:50:40]RAPDU: 90 00 [19:50:40]wFMCommunicate OK [19:50:40]wFMCommunicate request_size=255 [19:50:40]MH_SAM_APDU [19:50:40]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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 75 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 [19:50:40]Write to MH i2c: E2 02 01 5E 06 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 75 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 AA [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:41]Read from MH i2c: E2 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 03 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [19:50:41]RAPDU: 90 00 [19:50:41]wFMCommunicate OK [19:50:41]wFMCommunicate request_size=31 [19:50:41]MH_SAM_APDU [19:50:41]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 34 35 36 10 04 04 00 07 49 00 00 35 04 06 00 85 7E 81 82 FE 02 [19:50:41]Write to MH i2c: E2 22 00 5F 06 80 0D 02 02 1A 00 30 30 39 35 39 34 35 36 10 04 04 00 07 49 00 00 35 04 06 00 85 7E 81 82 FE 02 00 00 66 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:41]Read from MH i2c: E2 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 03 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [19:50:41]RAPDU: 90 00 [19:50:41]wFMCommunicate OK [19:50:41]wFMCommunicate request_size=4 [19:50:41]MH_SAM_APDU [19:50:41]CAPDU: 80 0D 03 02 [19:50:41]Write to MH i2c: E2 08 00 60 06 80 0D 03 02 00 00 00 00 E1 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:41]Read from MH i2c: E2 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 0B 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 0B 00 60 06 00 0B E0 0E 23 BB 82 BF B6 90 00 B0 [19:50:41]RAPDU: 0B E0 0E 23 BB 82 BF B6 90 00 [19:50:41]wFMCommunicate OK [19:50:41]SAM_PROTO_SignData done [19:50:41]FM_MakeSignedData done [19:50:41]CreateOFDProtocolMessage [19:50:41]wFMCommunicate request_size=4 [19:50:41]MH_SAM_APDU [19:50:41]CAPDU: 80 11 00 00 [19:50:41]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:41]Read from MH i2c: E2 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 17 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3A [19:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:50:41]wFMCommunicate OK [19:50:41]CreateOFDProtocolMessage done [19:50:41]OFDSenderStorePacket 18695 [19:50:41]StoreOFDPacket docnum=18695 [19:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 82 8C 1C 01 40 70 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 75 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 07 49 00 00 35 04 06 00 85 7E 81 82 FE 02 0B E0 0E 23 BB 82 BF B6 [19:50:41]CheckFolder [19:50:41]dirname=/storage/ofd_packets [19:50:41]CheckFolder done [19:50:41]ProducePacketName [19:50:41]name=ofd_packets/00018695 [19:50:41]NVStorageSaveData ofd_packets/00018695 [19:50:41]File name is /storage/ofd_packets/00018695 [19:50:41]Write 322 bytes [19:50:41]NVStorageSaveData done [19:50:41]OFDSenderStorePacket done [19:50:41]KKMCreateOFDPacket done [19:50:41]NVStorageSaveData kkm_last_timestamp [19:50:41]File name is /storage/kkm_last_timestamp [19:50:41]Write 4 bytes [19:50:41]NVStorageSaveData done [19:50:41]ExternCall_PrintAddStr [19:50:41]wPrintStart [19:50:41]Write to MH i2c: 01 00 00 62 06 68 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [19:50:41]RasterBufferAndPrint [19:50:41]line Счет N : (3)16619 [19:50:41]line ИНН: 02508201610067 [19:50:41]line Контрольно-Кассовый Чек [19:50:41]line ПРОДАЖА [19:50:41]line Товар: 4700000480517 [19:50:41]line Пиво Живое 1л ПЭТ [19:50:41]line 1.000 * 180.00 [19:50:41]line = 180.00 [19:50:41]line НДС 12% НСП 1% [19:50:41]line > о реализуемом товаре [19:50:41]line ИТОГО: 180.00 [19:50:41]line НСП 1% : 1.59 [19:50:41]line НДС 12% : 19.11 [19:50:41]line Наличными: 180.00 [19:50:41]line Безнал.: 0.00 [19:50:41]line Место: АЗС № 176 "Партнер Нефть" [19:50:41]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:50:41]line СНО: Общий режим [19:50:41]line Чек 91 22.09.2024 19:50 [19:50:41]line Смена: 180 ФФД: 1.0 [19:50:41]line ЗНМ: 0300000010 [19:50:41]line РНМ: 0000000000152968 [19:50:41]line Версия ККМ: v1.0 [19:50:41]line ФМ: 0000000000959456 [19:50:41]line ФД: 18695 [19:50:41]line ФПД: 146778385219074 [19:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195041&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18695&fm=146778385219074&tin=02508201610067®Number=0000000000152968&sum=18000 [19:50:41]line 0 [19:50:41]OFD Sender: Processing packet 18695 [packets to send 7, broken 6] [19:50:41]ProducePacketName [19:50:41]name=ofd_packets/00018695 [19:50:41]OFD Sender: To server: pG, [19:50:41]CommunicateWithHost lk.salyk.kg:30040 [19:50:41]ConnectInit lk.salyk.kg [19:50:41]written 0, free lines is 4095 [19:50:41]Connected sock=10 [19:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 82 8C 1C 01 40 70 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 11 75 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 07 49 00 00 35 04 06 00 85 7E 81 82 FE 02 0B E0 0E 23 BB 82 BF B6 [19:50:41]Write to MH i2c: 01 00 00 8A 06 90 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 12 0D B6 [19:50:41]RasterBufferAndPrint [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]written 0, free lines is 3349 [19:50:41]MH_Cut [19:50:41]Write to MH i2c: D1 01 00 91 06 01 69 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 01 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 01 00 91 06 00 68 [19:50:41]Write to MH i2c: 01 00 00 92 06 98 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 64 35 47 00 34 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 07 49 00 00 F4 03 04 00 77 1E F0 66 B6 04 01 00 00 D6 0D B6 A5 C6 BA 26 29 [19:50:41]CommunicateWithHost err = 0 [19:50:41]CheckOFDResponse [19:50:41]1017 (14) - 77093643461234 [19:50:41]1041 (16) - 0000000000959456 [19:50:41]1040 (4) - 18695 [19:50:41]1012 (4) - 22.09.2024 13:41 [19:50:41]1206 (1) - 0 [19:50:41]OFD Sender: Remove packet 18695 [19:50:41]ProducePacketName [19:50:41]name=ofd_packets/00018695 [19:50:41]NVStorageDeleteData [19:50:42]OFD Sender: No OFD packet to send [19:50:42]*** Cut start [19:50:42]*** Partial cut [19:50:42]*** CUTSNS_PIN = 1 [19:50:42]*** CUTSNS_PIN = 0 [19:50:42]*** Brake cut motor [19:50:43]Read from MH i2c: 01 [19:50:43]MH_I2C_Read... [19:50:43]*** Stop cut motor [19:50:43]Read from MH i2c: 01 07 00 [19:50:43]MH_I2C_Read... [19:50:43]*** Cut end [19:50:43]Read from MH i2c: 01 07 00 92 06 00 00 00 00 00 FF 0F AD [19:50:43]process_action close_receipt done [19:50:43]requested_data is exist [19:50:43]produce_requested_data [19:50:43]requested_item fm.sn is exist - process it [19:50:43]wFMCommunicate request_size=4 [19:50:43]MH_SAM_APDU [19:50:43]CAPDU: 80 11 00 00 [19:50:43]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [19:50:43]Write i2c OK [19:50:43]MH_I2C_Read... [19:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:43]Read from MH i2c: E2 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 17 00 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6C [19:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:50:43]wFMCommunicate OK [19:50:43]requested_item fd.num is exist - process it [19:50:43]SAM_PROTO_GetFieldsCounters [19:50:43]wFMCommunicate request_size=4 [19:50:43]MH_SAM_APDU [19:50:43]CAPDU: 80 13 00 00 [19:50:43]Write to MH i2c: E2 08 00 94 06 80 13 00 00 00 00 00 00 16 [19:50:43]Write i2c OK [19:50:43]MH_I2C_Read... [19:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:43]Read from MH i2c: E2 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 62 00 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 62 00 94 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 07 49 00 00 0E 04 04 00 B4 00 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 58 [19:50:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 07 49 00 00 0E 04 04 00 B4 00 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 [19:50:43]wFMCommunicate OK [19:50:43]SAM_PROTO_GetFieldsCounters done [19:50:43]requested_item shift.num is exist - process it [19:50:43]requested_item shift.opened is exist - process it [19:50:43]req_shift_opened [19:50:43]FM_GetShiftState [19:50:43]SAM_PROTO_GetShiftState [19:50:43]wFMCommunicate request_size=4 [19:50:43]MH_SAM_APDU [19:50:43]CAPDU: 80 13 01 00 [19:50:43]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [19:50:43]Write i2c OK [19:50:43]MH_I2C_Read... [19:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:43]Read from MH i2c: E2 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 0E 00 [19:50:43]MH_I2C_Read... [19:50:43]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 D8 [19:50:43]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:50:43]wFMCommunicate OK [19:50:43]SAM_PROTO_GetShiftState done [19:50:43]FM_GetShiftState done [19:50:43]req_shift_opened done [19:50:43]requested_item shift.open_date is exist - process it [19:50:43]req_shift_open_date [19:50:43]req_shift_open_date done [19:50:43]produce_requested_data done [19:50:43]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18695,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:50:43]process_action_free close_receipt [19:50:43]json_value_free [19:50:43]json_value_free done [19:50:43]process_json_proto returns [19:50:43]Send response to host [19:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18695,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:50:43]free response buf [19:50:43]execute_script done [19:50:43]execute_script returns [19:50:43]free content buf [19:50:43]Sock 9.Close socket [19:50:43]Sock 9.Thread stoped [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]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:30]accept exits with 8 [19:55:30]New connection [19:55:30]New thread 3067272548 created [19:55:30] Sock 8.Parse request [19:55:30]Thread 3067129188 joined [19:55:30]Sock 8.Check first char [19:55:30]Waiting for new connection... [19:55:30]Sock 8.First char is OK [19:55:30]request: POST /json_proto HTTP/1.0 [19:55:30]Method: POST [19:55:30]URL: /json_proto [19:55:30]Method is POST - this is cgi request [19:55:30]url: /json_proto [19:55:30]query_string will be loaded in cgi processing [19:55:30]execute_cgi json_proto POST (null) [19:55:30]execute_cgi path=json_proto method=POST [19:55:30]POST find Content-Length [19:55:30]Host: 172.17.62.196:8080 [19:55:30]Content-Length: 901 [19:55:30]Content-Type: application/json [19:55:30] [19:55:30]POST finish read [19:55:30]Found Content-Length = 901 [19:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16620", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:30]execute_script... [19:55: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)16620", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:30]POST & json_proto [19:55:30]process_json_proto [19:55:30]json parsed OK: [19:55:30]protocol is kg_v1.0 [19:55:30]action value=close_receipt [19:55:30]process_action close_receipt [19:55:30]cmd_close_receipt [19:55:30]MH_GetDate [19:55:30]Write to MH i2c: F0 00 00 96 06 8B [19:55:30]Write i2c OK [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 09 00 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 09 00 96 06 00 34 76 F0 66 CE CC 0E 66 A2 [19:55:30]GetLastDocTimeStamp 1727034641 [19:55:30]current date 1727034932 [19:55:30]FM_GetShiftState [19:55:30]SAM_PROTO_GetShiftState [19:55:30]wFMCommunicate request_size=4 [19:55:30]MH_SAM_APDU [19:55:30]CAPDU: 80 13 01 00 [19:55:30]Write to MH i2c: E2 08 00 97 06 80 13 01 00 00 00 00 00 1A [19:55:30]Write i2c OK [19:55:30]MH_I2C_Read... [19:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:30]Read from MH i2c: E2 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: E2 0E 00 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: E2 0E 00 97 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DA [19:55:30]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:55:30]wFMCommunicate OK [19:55:30]SAM_PROTO_GetShiftState done [19:55:30]FM_GetShiftState done [19:55:30]opened in 1726963967 [19:55:30]opened+sec_in_day 1727050367 [19:55:30]quantity*price = 8000 [19:55:30]sum+1 = 8001 [19:55:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006995702 Водка Зеленая Марка 0,1л 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 92 22.09.2024 19:55 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18696 ФПД: 102689589100596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195532&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18696&fm=102689589100596&tin=02508201610067®Number=0000000000152968&sum=22000 0 [19:55:31]StoreToDocumentArchive [19:55:31]shift 180 fd 18696 [19:55:31]save to /storage/0180/doc_00018696 [19:55:31]save last doc name /storage/0180/doc_00018696 to /storage/kkm_last_doc_name [19:55:31]save OK [19:55:31]Clear old archive folders... [19:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=382 [19:55:31]tlvbuf is 001FBDD0 [19:55:31]SAM_PROTO_ClearQueue [19:55:31]wFMCommunicate request_size=4 [19:55:31]MH_SAM_APDU [19:55:31]CAPDU: 80 09 00 00 [19:55:31]Write to MH i2c: E2 08 00 A4 06 80 09 00 00 00 00 00 00 1C [19:55:31]Write i2c OK [19:55:31]MH_I2C_Read... [19:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:31]Read from MH i2c: E2 [19:55:31]MH_I2C_Read... [19:55:31]Read from MH i2c: E2 03 00 [19:55:31]MH_I2C_Read... [19:55:31]Read from MH i2c: E2 03 00 A4 06 00 90 00 1E [19:55:31]RAPDU: 90 00 [19:55:31]wFMCommunicate OK [19:55:31]SAM_PROTO_ClearQueue done [19:55:31]KKMCreateOFDPacket [19:55:31]OFDProtocolAddRootSTLVToBuf [19:55:31]FM_MakeSignedData [19:55:31]FM_MakeSignedData [19:55:31]SAM_PROTO_SignData [19:55:31]wFMCommunicate request_size=4 [19:55:31]MH_SAM_APDU [19:55:31]CAPDU: 80 0D 01 02 [19:55:31]Write to MH i2c: E2 08 00 A5 06 80 0D 01 02 00 00 00 00 24 [19:55:31]Write i2c OK [19:55:31]MH_I2C_Read... [19:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:31]Read from MH i2c: E2 [19:55:31]MH_I2C_Read... [19:55:31]Read from MH i2c: E2 03 00 [19:55:31]MH_I2C_Read... [19:55:31]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [19:55:31]RAPDU: 90 00 [19:55:31]wFMCommunicate OK [19:55:31]wFMCommunicate request_size=255 [19:55:31]MH_SAM_APDU [19:55:31]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 [19:55:31]Write to MH i2c: E2 02 01 A6 06 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 D4 [19:55:31]Write i2c OK [19:55:31]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]wFMCommunicate request_size=141 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 34 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 08 49 00 00 35 04 06 00 5D 65 48 7B 00 34 [19:55:32]Write to MH i2c: E2 90 00 A7 06 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 34 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 08 49 00 00 35 04 06 00 5D 65 48 7B 00 34 00 00 F9 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 0D 03 02 [19:55:32]Write to MH i2c: E2 08 00 A8 06 80 0D 03 02 00 00 00 00 29 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 0B 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 0B 00 A8 06 00 03 45 8B 7C 05 54 DD 61 90 00 10 [19:55:32]RAPDU: 03 45 8B 7C 05 54 DD 61 90 00 [19:55:32]wFMCommunicate OK [19:55:32]SAM_PROTO_SignData done [19:55:32]FM_MakeSignedData done [19:55:32]CreateOFDProtocolMessage [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 11 00 00 [19:55:32]Write to MH i2c: E2 08 00 A9 06 80 11 00 00 00 00 00 00 29 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 17 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 17 00 A9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 82 [19:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:55:32]wFMCommunicate OK [19:55:32]CreateOFDProtocolMessage done [19:55:32]OFDSenderStorePacket 18696 [19:55:32]StoreOFDPacket docnum=18696 [19:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 92 01 00 00 E5 19 8A 01 1C 8B 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 34 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 08 49 00 00 35 04 06 00 5D 65 48 7B 00 34 03 45 8B 7C 05 54 DD 61 [19:55:32]CheckFolder [19:55:32]dirname=/storage/ofd_packets [19:55:32]CheckFolder done [19:55:32]ProducePacketName [19:55:32]name=ofd_packets/00018696 [19:55:32]NVStorageSaveData ofd_packets/00018696 [19:55:32]File name is /storage/ofd_packets/00018696 [19:55:32]Write 432 bytes [19:55:32]NVStorageSaveData done [19:55:32]OFDSenderStorePacket done [19:55:32]KKMCreateOFDPacket done [19:55:32]NVStorageSaveData kkm_last_timestamp [19:55:32]File name is /storage/kkm_last_timestamp [19:55:32]Write 4 bytes [19:55:32]NVStorageSaveData done [19:55:32]ExternCall_PrintAddStr [19:55:32]wPrintStart [19:55:32]Write to MH i2c: 01 00 00 AA 06 B0 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 07 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [19:55:32]RasterBufferAndPrint [19:55:32]line Счет N : (3)16620 [19:55:32]line ИНН: 02508201610067 [19:55:32]line Контрольно-Кассовый Чек [19:55:32]line ПРОДАЖА [19:55:32]line Товар: 4870001570057 [19:55:32]line Напиток Pepsi 0,5л [19:55:32]line 1.000 * 80.00 [19:55:32]line = 80.00 [19:55:32]line НДС 12% НСП 1% [19:55:32]line > о реализуемом товаре [19:55:32]line Товар: 4620006995702 [19:55:32]line Водка Зеленая Марка 0,1л [19:55:32]line 1.000 * 140.00 [19:55:32]line = 140.00 [19:55:32]line НДС 12% НСП 1% [19:55:32]line > о реализуемом товаре [19:55:32]line ИТОГО: 220.00 [19:55:32]line НСП 1% : 1.95 [19:55:32]line НДС 12% : 23.37 [19:55:32]line Наличными: 220.00 [19:55:32]line Безнал.: 0.00 [19:55:32]line Место: АЗС № 176 "Партнер Нефть" [19:55:32]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:55:32]line СНО: Общий режим [19:55:32]line Чек 92 22.09.2024 19:55 [19:55:32]line Смена: 180 ФФД: 1.0 [19:55:32]line ЗНМ: 0300000010 [19:55:32]line РНМ: 0000000000152968 [19:55:32]line Версия ККМ: v1.0 [19:55:32]line ФМ: 0000000000959456 [19:55:32]line ФД: 18696 [19:55:32]line ФПД: 102689589100596 [19:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195532&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18696&fm=102689589100596&tin=02508201610067®Number=0000000000152968&sum=22000 [19:55:32]line 0 [19:55:32]OFD Sender: Processing packet 18696 [packets to send 7, broken 6] [19:55:32]ProducePacketName [19:55:32]name=ofd_packets/00018696 [19:55:32]OFD Sender: To server: pG, [19:55:32]CommunicateWithHost lk.salyk.kg:30040 [19:55:32]ConnectInit lk.salyk.kg [19:55:32]written 0, free lines is 4095 [19:55:32]Connected sock=10 [19:55:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 92 01 00 00 E5 19 8A 01 1C 8B 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 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 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 34 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 08 49 00 00 35 04 06 00 5D 65 48 7B 00 34 03 45 8B 7C 05 54 DD 61 [19:55:33]Write to MH i2c: 01 00 00 D8 06 DE [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 07 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 E8 0C D9 [19:55:33]RasterBufferAndPrint [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]written 0, free lines is 3313 [19:55:33]MH_Cut [19:55:33]Write to MH i2c: D1 01 00 DF 06 01 B7 [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 01 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 01 00 DF 06 00 B6 [19:55:33]Write to MH i2c: 01 00 00 E0 06 E6 [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 52 55 47 00 BC B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 08 49 00 00 F4 03 04 00 9B 1F F0 66 B6 04 01 00 00 64 00 26 7B 9F 00 C1 35 [19:55:33]CommunicateWithHost err = 0 [19:55:33]CheckOFDResponse [19:55:33]1017 (14) - 77093643461234 [19:55:33]1041 (16) - 0000000000959456 [19:55:33]1040 (4) - 18696 [19:55:33]1012 (4) - 22.09.2024 13:46 [19:55:33]1206 (1) - 0 [19:55:33]OFD Sender: Remove packet 18696 [19:55:33]ProducePacketName [19:55:33]name=ofd_packets/00018696 [19:55:33]NVStorageDeleteData [19:55:33]OFD Sender: No OFD packet to send [19:55:33]*** Cut start [19:55:33]*** Partial cut [19:55:33]*** CUTSNS_PIN = 1 [19:55:33]*** CUTSNS_PIN = 0 [19:55:34]*** Brake cut motor [19:55:34]Read from MH i2c: 01 [19:55:34]MH_I2C_Read... [19:55:34]*** Stop cut motor [19:55:34]*** Cut end [19:55:34]Read from MH i2c: 01 07 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [19:55:34]process_action close_receipt done [19:55:34]requested_data is exist [19:55:34]produce_requested_data [19:55:34]requested_item fm.sn is exist - process it [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 11 00 00 [19:55:34]Write to MH i2c: E2 08 00 E1 06 80 11 00 00 00 00 00 00 61 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 17 00 E1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BA [19:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:55:34]wFMCommunicate OK [19:55:34]requested_item fd.num is exist - process it [19:55:34]SAM_PROTO_GetFieldsCounters [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 13 00 00 [19:55:34]Write to MH i2c: E2 08 00 E2 06 80 13 00 00 00 00 00 00 64 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 62 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 62 00 E2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 08 49 00 00 0E 04 04 00 B4 00 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 AA [19:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 08 49 00 00 0E 04 04 00 B4 00 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 [19:55:34]wFMCommunicate OK [19:55:34]SAM_PROTO_GetFieldsCounters done [19:55:34]requested_item shift.num is exist - process it [19:55:34]requested_item shift.opened is exist - process it [19:55:34]req_shift_opened [19:55:34]FM_GetShiftState [19:55:34]SAM_PROTO_GetShiftState [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 13 01 00 [19:55:34]Write to MH i2c: E2 08 00 E3 06 80 13 01 00 00 00 00 00 66 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:34]Read from MH i2c: E2 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0E 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: E2 0E 00 E3 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 26 [19:55:34]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:55:34]wFMCommunicate OK [19:55:34]SAM_PROTO_GetShiftState done [19:55:34]FM_GetShiftState done [19:55:34]req_shift_opened done [19:55:34]requested_item shift.open_date is exist - process it [19:55:34]req_shift_open_date [19:55:34]req_shift_open_date done [19:55:34]produce_requested_data done [19:55:34]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18696,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:55:34]process_action_free close_receipt [19:55:34]json_value_free [19:55:34]json_value_free done [19:55:34]process_json_proto returns [19:55:34]Send response to host [19:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18696,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:55:34]free response buf [19:55:34]execute_script done [19:55:34]execute_script returns [19:55:34]free content buf [19:55:34]Sock 8.Close socket [19:55:34]Sock 8.Thread stoped [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:57]accept exits with 9 [19:55:57]New connection [19:55:57]New thread 3067129188 created [19:55:57]Thread 3067272548 joined [19:55:57]Waiting for new connection... [19:55:57] Sock 9.Parse request [19:55:57]Sock 9.Check first char [19:55:57]Sock 9.First char is OK [19:55:57]request: POST /json_proto HTTP/1.0 [19:55:57]Method: POST [19:55:57]URL: /json_proto [19:55:57]Method is POST - this is cgi request [19:55:57]url: /json_proto [19:55:57]query_string will be loaded in cgi processing [19:55:57]execute_cgi json_proto POST (null) [19:55:57]execute_cgi path=json_proto method=POST [19:55:57]POST find Content-Length [19:55:57]Host: 172.17.62.196:8080 [19:55:57]Content-Length: 589 [19:55:57]Content-Type: application/json [19:55:57] [19:55:57]POST finish read [19:55:57]Found Content-Length = 589 [19:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16621", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:57]execute_script... [19:55: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)16621", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:57]POST & json_proto [19:55:57]process_json_proto [19:55:57]json parsed OK: [19:55:57]protocol is kg_v1.0 [19:55:57]action value=close_receipt [19:55:57]process_action close_receipt [19:55:57]cmd_close_receipt [19:55:57]MH_GetDate [19:55:57]Write to MH i2c: F0 00 00 E4 06 D9 [19:55:57]Write i2c OK [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 09 00 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 09 00 E4 06 00 4F 76 F0 66 CE CC 0E 66 0B [19:55:57]GetLastDocTimeStamp 1727034932 [19:55:57]current date 1727034959 [19:55:57]FM_GetShiftState [19:55:57]SAM_PROTO_GetShiftState [19:55:57]wFMCommunicate request_size=4 [19:55:57]MH_SAM_APDU [19:55:57]CAPDU: 80 13 01 00 [19:55:57]Write to MH i2c: E2 08 00 E5 06 80 13 01 00 00 00 00 00 68 [19:55:57]Write i2c OK [19:55:57]MH_I2C_Read... [19:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:57]Read from MH i2c: E2 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: E2 0E 00 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: E2 0E 00 E5 06 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 28 [19:55:57]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:55:57]wFMCommunicate OK [19:55:57]SAM_PROTO_GetShiftState done [19:55:57]FM_GetShiftState done [19:55:57]opened in 1726963967 [19:55:57]opened+sec_in_day 1727050367 [19:55:57]quantity*price = 3700 [19:55:57]sum+1 = 3701 [19:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 37.00 НСП 1% : 0.33 НДС 12% : 3.93 Наличными: 37.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 93 22.09.2024 19:55 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18697 ФПД: 18732006484573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195559&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18697&fm=18732006484573&tin=02508201610067®Number=0000000000152968&sum=3700 0 [19:55:58]StoreToDocumentArchive [19:55:58]shift 180 fd 18697 [19:55:58]save to /storage/0180/doc_00018697 [19:55:58]save last doc name /storage/0180/doc_00018697 to /storage/kkm_last_doc_name [19:55:58]save OK [19:55:58]Clear old archive folders... [19:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=265 [19:55:58]tlvbuf is 001ED360 [19:55:58]SAM_PROTO_ClearQueue [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 09 00 00 [19:55:58]Write to MH i2c: E2 08 00 F2 06 80 09 00 00 00 00 00 00 6A [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]SAM_PROTO_ClearQueue done [19:55:58]KKMCreateOFDPacket [19:55:58]OFDProtocolAddRootSTLVToBuf [19:55:58]FM_MakeSignedData [19:55:58]FM_MakeSignedData [19:55:58]SAM_PROTO_SignData [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 01 02 [19:55:58]Write to MH i2c: E2 08 00 F3 06 80 0D 01 02 00 00 00 00 72 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]wFMCommunicate request_size=255 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4F 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 [19:55:58]Write to MH i2c: E2 02 01 F4 06 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4F 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 00 00 99 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]OFD Sender: No OFD packet to send [19:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]wFMCommunicate request_size=24 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 02 02 13 36 10 04 04 00 09 49 00 00 35 04 06 00 11 09 62 97 AA 5D [19:55:58]Write to MH i2c: E2 1B 00 F5 06 80 0D 02 02 13 00 36 10 04 04 00 09 49 00 00 35 04 06 00 11 09 62 97 AA 5D 00 00 94 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:59]Read from MH i2c: E2 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 03 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 03 00 F5 06 00 90 00 6F [19:55:59]RAPDU: 90 00 [19:55:59]wFMCommunicate OK [19:55:59]wFMCommunicate request_size=4 [19:55:59]MH_SAM_APDU [19:55:59]CAPDU: 80 0D 03 02 [19:55:59]Write to MH i2c: E2 08 00 F6 06 80 0D 03 02 00 00 00 00 77 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:59]Read from MH i2c: E2 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 0B 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 0B 00 F6 06 00 57 53 8D E7 B2 29 49 DC 90 00 96 [19:55:59]RAPDU: 57 53 8D E7 B2 29 49 DC 90 00 [19:55:59]wFMCommunicate OK [19:55:59]SAM_PROTO_SignData done [19:55:59]FM_MakeSignedData done [19:55:59]CreateOFDProtocolMessage [19:55:59]wFMCommunicate request_size=4 [19:55:59]MH_SAM_APDU [19:55:59]CAPDU: 80 11 00 00 [19:55:59]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:59]Read from MH i2c: E2 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 17 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D0 [19:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:55:59]wFMCommunicate OK [19:55:59]CreateOFDProtocolMessage done [19:55:59]OFDSenderStorePacket 18697 [19:55:59]StoreOFDPacket docnum=18697 [19:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1D 01 00 00 99 79 15 01 63 6C 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4F 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 09 49 00 00 35 04 06 00 11 09 62 97 AA 5D 57 53 8D E7 B2 29 49 DC [19:55:59]CheckFolder [19:55:59]dirname=/storage/ofd_packets [19:55:59]CheckFolder done [19:55:59]ProducePacketName [19:55:59]name=ofd_packets/00018697 [19:55:59]NVStorageSaveData ofd_packets/00018697 [19:55:59]File name is /storage/ofd_packets/00018697 [19:55:59]Write 315 bytes [19:55:59]NVStorageSaveData done [19:55:59]OFDSenderStorePacket done [19:55:59]KKMCreateOFDPacket done [19:55:59]NVStorageSaveData kkm_last_timestamp [19:55:59]File name is /storage/kkm_last_timestamp [19:55:59]Write 4 bytes [19:55:59]NVStorageSaveData done [19:55:59]ExternCall_PrintAddStr [19:55:59]wPrintStart [19:55:59]Write to MH i2c: 01 00 00 F8 06 FE [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 F8 06 00 00 00 00 00 FF 0F 13 [19:55:59]RasterBufferAndPrint [19:55:59]line Счет N : (3)16621 [19:55:59]line ИНН: 02508201610067 [19:55:59]line Контрольно-Кассовый Чек [19:55:59]line ПРОДАЖА [19:55:59]line Товар: 42113164 [19:55:59]line Жев Orbit White Spearmint [19:55:59]line 1.000 * 37.00 [19:55:59]line = 37.00 [19:55:59]line НДС 12% НСП 1% [19:55:59]line > о реализуемом товаре [19:55:59]line ИТОГО: 37.00 [19:55:59]line НСП 1% : 0.33 [19:55:59]line НДС 12% : 3.93 [19:55:59]line Наличными: 37.00 [19:55:59]line Безнал.: 0.00 [19:55:59]line Место: АЗС № 176 "Партнер Нефть" [19:55:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:55:59]line СНО: Общий режим [19:55:59]line Чек 93 22.09.2024 19:55 [19:55:59]line Смена: 180 ФФД: 1.0 [19:55:59]line ЗНМ: 0300000010 [19:55:59]line РНМ: 0000000000152968 [19:55:59]line Версия ККМ: v1.0 [19:55:59]line ФМ: 0000000000959456 [19:55:59]line ФД: 18697 [19:55:59]line ФПД: 18732006484573 [19:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195559&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18697&fm=18732006484573&tin=02508201610067®Number=0000000000152968&sum=3700 [19:55:59]line 0 [19:55:59]OFD Sender: Processing packet 18697 [packets to send 7, broken 6] [19:55:59]ProducePacketName [19:55:59]name=ofd_packets/00018697 [19:55:59]OFD Sender: To server: pG, [19:55:59]CommunicateWithHost lk.salyk.kg:30040 [19:55:59]ConnectInit lk.salyk.kg [19:55:59]written 0, free lines is 4095 [19:55:59]Connected sock=10 [19:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1D 01 00 00 99 79 15 01 63 6C 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4F 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 09 49 00 00 35 04 06 00 11 09 62 97 AA 5D 57 53 8D E7 B2 29 49 DC [19:55:59]Write to MH i2c: 01 00 00 20 07 27 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 1C 0D 57 [19:55:59]RasterBufferAndPrint [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]written 0, free lines is 3362 [19:55:59]MH_Cut [19:55:59]Write to MH i2c: D1 01 00 27 07 01 00 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 01 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 01 00 27 07 00 FF [19:55:59]Write to MH i2c: 01 00 00 28 07 2F [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 38 44 47 00 AF 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 09 49 00 00 F4 03 04 00 B5 1F F0 66 B6 04 01 00 00 D1 6C 0A 93 C9 83 E7 5A [19:56:00]CommunicateWithHost err = 0 [19:56:00]CheckOFDResponse [19:56:00]1017 (14) - 77093643461234 [19:56:00]1041 (16) - 0000000000959456 [19:56:00]1040 (4) - 18697 [19:56:00]1012 (4) - 22.09.2024 13:46 [19:56:00]1206 (1) - 0 [19:56:00]OFD Sender: Remove packet 18697 [19:56:00]ProducePacketName [19:56:00]name=ofd_packets/00018697 [19:56:00]NVStorageDeleteData [19:56:00]OFD Sender: No OFD packet to send [19:56:00]*** Cut start [19:56:00]*** Partial cut [19:56:00]*** CUTSNS_PIN = 1 [19:56:00]*** CUTSNS_PIN = 0 [19:56:00]*** Brake cut motor [19:56:01]Read from MH i2c: 01 [19:56:01]MH_I2C_Read... [19:56:01]*** Stop cut motor [19:56:01]*** Cut end [19:56:01]Read from MH i2c: 01 07 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [19:56:01]process_action close_receipt done [19:56:01]requested_data is exist [19:56:01]produce_requested_data [19:56:01]requested_item fm.sn is exist - process it [19:56:01]wFMCommunicate request_size=4 [19:56:01]MH_SAM_APDU [19:56:01]CAPDU: 80 11 00 00 [19:56:01]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [19:56:01]Write i2c OK [19:56:01]MH_I2C_Read... [19:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:01]Read from MH i2c: E2 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 17 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 03 [19:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:56:01]wFMCommunicate OK [19:56:01]requested_item fd.num is exist - process it [19:56:01]SAM_PROTO_GetFieldsCounters [19:56:01]wFMCommunicate request_size=4 [19:56:01]MH_SAM_APDU [19:56:01]CAPDU: 80 13 00 00 [19:56:01]Write to MH i2c: E2 08 00 2A 07 80 13 00 00 00 00 00 00 AD [19:56:01]Write i2c OK [19:56:01]MH_I2C_Read... [19:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:01]Read from MH i2c: E2 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 62 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 62 00 2A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 09 49 00 00 0E 04 04 00 B4 00 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 F7 [19:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 09 49 00 00 0E 04 04 00 B4 00 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 [19:56:01]wFMCommunicate OK [19:56:01]SAM_PROTO_GetFieldsCounters done [19:56:01]requested_item shift.num is exist - process it [19:56:01]requested_item shift.opened is exist - process it [19:56:01]req_shift_opened [19:56:01]FM_GetShiftState [19:56:01]SAM_PROTO_GetShiftState [19:56:01]wFMCommunicate request_size=4 [19:56:01]MH_SAM_APDU [19:56:01]CAPDU: 80 13 01 00 [19:56:01]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [19:56:01]Write i2c OK [19:56:01]MH_I2C_Read... [19:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:01]Read from MH i2c: E2 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 0E 00 [19:56:01]MH_I2C_Read... [19:56:01]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 6F [19:56:01]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:56:01]wFMCommunicate OK [19:56:01]SAM_PROTO_GetShiftState done [19:56:01]FM_GetShiftState done [19:56:01]req_shift_opened done [19:56:01]requested_item shift.open_date is exist - process it [19:56:01]req_shift_open_date [19:56:01]req_shift_open_date done [19:56:01]produce_requested_data done [19:56:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18697,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:56:01]process_action_free close_receipt [19:56:01]json_value_free [19:56:01]json_value_free done [19:56:01]process_json_proto returns [19:56:01]Send response to host [19:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18697,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:56:01]free response buf [19:56:01]execute_script done [19:56:01]execute_script returns [19:56:01]free content buf [19:56:01]Sock 9.Close socket [19:56:01]Sock 9.Thread stoped [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]accept exits with 8 [19:57:55]New connection [19:57:55]New thread 3067272548 created [19:57:55]Thread 3067129188 joined [19:57:55]Waiting for new connection... [19:57:55] Sock 8.Parse request [19:57:55]Sock 8.Check first char [19:57:55]Sock 8.First char is OK [19:57:55]request: POST /json_proto HTTP/1.0 [19:57:55]Method: POST [19:57:55]URL: /json_proto [19:57:55]Method is POST - this is cgi request [19:57:55]url: /json_proto [19:57:55]query_string will be loaded in cgi processing [19:57:55]execute_cgi json_proto POST (null) [19:57:55]execute_cgi path=json_proto method=POST [19:57:55]POST find Content-Length [19:57:55]Host: 172.17.62.196:8080 [19:57:55]Content-Length: 629 [19:57:55]Content-Type: application/json [19:57:55] [19:57:55]POST finish read [19:57:55]Found Content-Length = 629 [19:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16622", "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" ] } } [19:57:55]execute_script... [19:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16622", "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" ] } } [19:57:55]POST & json_proto [19:57:55]process_json_proto [19:57:55]json parsed OK: [19:57:55]protocol is kg_v1.0 [19:57:55]action value=close_receipt [19:57:55]process_action close_receipt [19:57:55]cmd_close_receipt [19:57:55]MH_GetDate [19:57:55]Write to MH i2c: F0 00 00 2C 07 22 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: F0 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: F0 09 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: F0 09 00 2C 07 00 C5 76 F0 66 CE CC 0E 66 CA [19:57:55]GetLastDocTimeStamp 1727034959 [19:57:55]current date 1727035077 [19:57:55]FM_GetShiftState [19:57:55]SAM_PROTO_GetShiftState [19:57:55]wFMCommunicate request_size=4 [19:57:55]MH_SAM_APDU [19:57:55]CAPDU: 80 13 01 00 [19:57:55]Write to MH i2c: E2 08 00 2D 07 80 13 01 00 00 00 00 00 B1 [19:57:55]Write i2c OK [19:57:55]MH_I2C_Read... [19:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:55]Read from MH i2c: E2 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 0E 00 [19:57:55]MH_I2C_Read... [19:57:55]Read from MH i2c: E2 0E 00 2D 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 71 [19:57:55]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:57:55]wFMCommunicate OK [19:57:55]SAM_PROTO_GetShiftState done [19:57:55]FM_GetShiftState done [19:57:55]opened in 1726963967 [19:57:55]opened+sec_in_day 1727050367 [19:57:55]quantity*price = 5000 [19:57:55]sum+1 = 5001 [19:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 94 22.09.2024 19:57 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18698 ФПД: 149114531164531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195757&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18698&fm=149114531164531&tin=02508201610067®Number=0000000000152968&sum=5000 0 [19:57:56]StoreToDocumentArchive [19:57:56]shift 180 fd 18698 [19:57:56]save to /storage/0180/doc_00018698 [19:57:56]save last doc name /storage/0180/doc_00018698 to /storage/kkm_last_doc_name [19:57:56]save OK [19:57:56]Clear old archive folders... [19:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:57:56]tlvbuf is 001D0B60 [19:57:56]SAM_PROTO_ClearQueue [19:57:56]wFMCommunicate request_size=4 [19:57:56]MH_SAM_APDU [19:57:56]CAPDU: 80 09 00 00 [19:57:56]Write to MH i2c: E2 08 00 3A 07 80 09 00 00 00 00 00 00 B3 [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:56]Read from MH i2c: E2 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: E2 03 00 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [19:57:56]RAPDU: 90 00 [19:57:56]wFMCommunicate OK [19:57:56]SAM_PROTO_ClearQueue done [19:57:56]KKMCreateOFDPacket [19:57:56]OFDProtocolAddRootSTLVToBuf [19:57:56]FM_MakeSignedData [19:57:56]FM_MakeSignedData [19:57:56]SAM_PROTO_SignData [19:57:56]wFMCommunicate request_size=4 [19:57:56]MH_SAM_APDU [19:57:56]CAPDU: 80 0D 01 02 [19:57:56]Write to MH i2c: E2 08 00 3B 07 80 0D 01 02 00 00 00 00 BB [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:56]Read from MH i2c: E2 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: E2 03 00 [19:57:56]MH_I2C_Read... [19:57:56]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [19:57:56]RAPDU: 90 00 [19:57:56]wFMCommunicate OK [19:57:56]wFMCommunicate request_size=255 [19:57:56]MH_SAM_APDU [19:57:56]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 5E 00 00 00 F4 03 04 00 C5 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [19:57:56]Write to MH i2c: E2 02 01 3C 07 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 5E 00 00 00 F4 03 04 00 C5 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 7C [19:57:56]Write i2c OK [19:57:56]MH_I2C_Read... [19:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:57]Read from MH i2c: E2 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 03 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [19:57:57]RAPDU: 90 00 [19:57:57]wFMCommunicate OK [19:57:57]wFMCommunicate request_size=28 [19:57:57]MH_SAM_APDU [19:57:57]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 0A 49 00 00 35 04 06 00 87 9E 6E A9 31 73 [19:57:57]Write to MH i2c: E2 1F 00 3D 07 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 0A 49 00 00 35 04 06 00 87 9E 6E A9 31 73 00 00 83 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:57]Read from MH i2c: E2 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 03 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [19:57:57]RAPDU: 90 00 [19:57:57]wFMCommunicate OK [19:57:57]wFMCommunicate request_size=4 [19:57:57]MH_SAM_APDU [19:57:57]CAPDU: 80 0D 03 02 [19:57:57]Write to MH i2c: E2 08 00 3E 07 80 0D 03 02 00 00 00 00 C0 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:57]Read from MH i2c: E2 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 0B 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 0B 00 3E 07 00 85 D1 08 00 12 FE 48 17 90 00 8E [19:57:57]RAPDU: 85 D1 08 00 12 FE 48 17 90 00 [19:57:57]wFMCommunicate OK [19:57:57]SAM_PROTO_SignData done [19:57:57]FM_MakeSignedData done [19:57:57]CreateOFDProtocolMessage [19:57:57]wFMCommunicate request_size=4 [19:57:57]MH_SAM_APDU [19:57:57]CAPDU: 80 11 00 00 [19:57:57]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:57]Read from MH i2c: E2 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 17 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 19 [19:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:57:57]wFMCommunicate OK [19:57:57]CreateOFDProtocolMessage done [19:57:57]OFDSenderStorePacket 18698 [19:57:57]StoreOFDPacket docnum=18698 [19:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 22 D0 19 01 B7 71 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 5E 00 00 00 F4 03 04 00 C5 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0A 49 00 00 35 04 06 00 87 9E 6E A9 31 73 85 D1 08 00 12 FE 48 17 [19:57:57]CheckFolder [19:57:57]dirname=/storage/ofd_packets [19:57:57]CheckFolder done [19:57:57]ProducePacketName [19:57:57]name=ofd_packets/00018698 [19:57:57]NVStorageSaveData ofd_packets/00018698 [19:57:57]File name is /storage/ofd_packets/00018698 [19:57:57]Write 319 bytes [19:57:57]NVStorageSaveData done [19:57:57]OFDSenderStorePacket done [19:57:57]KKMCreateOFDPacket done [19:57:57]NVStorageSaveData kkm_last_timestamp [19:57:57]File name is /storage/kkm_last_timestamp [19:57:57]Write 4 bytes [19:57:57]NVStorageSaveData done [19:57:57]ExternCall_PrintAddStr [19:57:57]wPrintStart [19:57:57]Write to MH i2c: 01 00 00 40 07 47 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 07 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [19:57:57]RasterBufferAndPrint [19:57:57]line Счет N : (3)16622 [19:57:57]line ИНН: 02508201610067 [19:57:57]line Контрольно-Кассовый Чек [19:57:57]line ПРОДАЖА [19:57:57]line Товар: 4700000160358 [19:57:57]line Вода Легенда 1л [19:57:57]line 1.000 * 50.00 [19:57:57]line = 50.00 [19:57:57]line НДС 12% НСП 1% [19:57:57]line > о реализуемом товаре [19:57:57]line ИТОГО: 50.00 [19:57:57]line НСП 1% : 0.44 [19:57:57]line НДС 12% : 5.31 [19:57:57]line Наличными: 50.00 [19:57:57]line Безнал.: 0.00 [19:57:57]line Место: АЗС № 176 "Партнер Нефть" [19:57:57]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:57:57]line СНО: Общий режим [19:57:57]line Чек 94 22.09.2024 19:57 [19:57:57]line Смена: 180 ФФД: 1.0 [19:57:57]line ЗНМ: 0300000010 [19:57:57]line РНМ: 0000000000152968 [19:57:57]line Версия ККМ: v1.0 [19:57:57]line ФМ: 0000000000959456 [19:57:57]line ФД: 18698 [19:57:57]line ФПД: 149114531164531 [19:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195757&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18698&fm=149114531164531&tin=02508201610067®Number=0000000000152968&sum=5000 [19:57:57]line 0 [19:57:57]OFD Sender: Processing packet 18698 [packets to send 7, broken 6] [19:57:57]ProducePacketName [19:57:57]name=ofd_packets/00018698 [19:57:57]OFD Sender: To server: pG, [19:57:57]CommunicateWithHost lk.salyk.kg:30040 [19:57:57]ConnectInit lk.salyk.kg [19:57:57]written 0, free lines is 4095 [19:57:57]Connected sock=10 [19:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 22 D0 19 01 B7 71 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 5E 00 00 00 F4 03 04 00 C5 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0A 49 00 00 35 04 06 00 87 9E 6E A9 31 73 85 D1 08 00 12 FE 48 17 [19:57:57]Write to MH i2c: 01 00 00 68 07 6F [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 07 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 22 0D A5 [19:57:57]RasterBufferAndPrint [19:57:57]line [19:57:57]line [19:57:57]line [19:57:57]line [19:57:57]line [19:57:57]written 0, free lines is 3367 [19:57:57]MH_Cut [19:57:57]Write to MH i2c: D1 01 00 6F 07 01 48 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: D1 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: D1 01 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: D1 01 00 6F 07 00 47 [19:57:57]Write to MH i2c: 01 00 00 70 07 77 [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8A 2D 47 00 E3 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 39 35 39 34 35 36 10 04 04 00 0A 49 00 00 F4 03 04 00 2B 20 F0 66 B6 04 01 00 00 82 58 F4 DA 1B 2A DD F8 [19:57:57]CommunicateWithHost err = 0 [19:57:57]CheckOFDResponse [19:57:57]1017 (14) - 77093643461234 [19:57:57]1041 (16) - 0000000000959456 [19:57:57]1040 (4) - 18698 [19:57:57]1012 (4) - 22.09.2024 13:48 [19:57:58]1206 (1) - 0 [19:57:58]OFD Sender: Remove packet 18698 [19:57:58]ProducePacketName [19:57:58]name=ofd_packets/00018698 [19:57:58]NVStorageDeleteData [19:57:58]OFD Sender: No OFD packet to send [19:57:58]*** Cut start [19:57:58]*** Partial cut [19:57:58]*** CUTSNS_PIN = 1 [19:57:58]*** CUTSNS_PIN = 0 [19:57:58]*** Brake cut motor [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]*** Stop cut motor [19:57:59]*** Cut end [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [19:57:59]process_action close_receipt done [19:57:59]requested_data is exist [19:57:59]produce_requested_data [19:57:59]requested_item fm.sn is exist - process it [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 11 00 00 [19:57:59]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 17 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4B [19:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:57:59]wFMCommunicate OK [19:57:59]requested_item fd.num is exist - process it [19:57:59]SAM_PROTO_GetFieldsCounters [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 13 00 00 [19:57:59]Write to MH i2c: E2 08 00 72 07 80 13 00 00 00 00 00 00 F5 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 62 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 62 00 72 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0A 49 00 00 0E 04 04 00 B4 00 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 43 [19:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0A 49 00 00 0E 04 04 00 B4 00 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 [19:57:59]wFMCommunicate OK [19:57:59]SAM_PROTO_GetFieldsCounters done [19:57:59]requested_item shift.num is exist - process it [19:57:59]requested_item shift.opened is exist - process it [19:57:59]req_shift_opened [19:57:59]FM_GetShiftState [19:57:59]SAM_PROTO_GetShiftState [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 13 01 00 [19:57:59]Write to MH i2c: E2 08 00 73 07 80 13 01 00 00 00 00 00 F7 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:59]Read from MH i2c: E2 0E 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 0E 00 73 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B7 [19:57:59]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:57:59]wFMCommunicate OK [19:57:59]SAM_PROTO_GetShiftState done [19:57:59]FM_GetShiftState done [19:57:59]req_shift_opened done [19:57:59]requested_item shift.open_date is exist - process it [19:57:59]req_shift_open_date [19:57:59]req_shift_open_date done [19:57:59]produce_requested_data done [19:57:59]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18698,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:57:59]process_action_free close_receipt [19:57:59]json_value_free [19:57:59]json_value_free done [19:57:59]process_json_proto returns [19:57:59]Send response to host [19:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18698,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:57:59]free response buf [19:57:59]execute_script done [19:57:59]execute_script returns [19:57:59]free content buf [19:57:59]Sock 8.Close socket [19:57:59]Sock 8.Thread stoped [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]accept exits with 9 [19:58:38]New connection [19:58:38]New thread 3067129188 created [19:58:38]Thread 3067272548 joined [19:58:38]Waiting for new connection... [19:58:38] Sock 9.Parse request [19:58:38]Sock 9.Check first char [19:58:38]Sock 9.First char is OK [19:58:38]request: POST /json_proto HTTP/1.0 [19:58:38]Method: POST [19:58:38]URL: /json_proto [19:58:38]Method is POST - this is cgi request [19:58:38]url: /json_proto [19:58:38]query_string will be loaded in cgi processing [19:58:38]execute_cgi json_proto POST (null) [19:58:38]execute_cgi path=json_proto method=POST [19:58:38]POST find Content-Length [19:58:38]Host: 172.17.62.196:8080 [19:58:38]Content-Length: 663 [19:58:38]Content-Type: application/json [19:58:38] [19:58:38]POST finish read [19:58:38]Found Content-Length = 663 [19:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16623", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "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" ] } } [19:58:38]execute_script... [19:58: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)16623", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "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" ] } } [19:58:38]POST & json_proto [19:58:38]process_json_proto [19:58:38]json parsed OK: [19:58:38]protocol is kg_v1.0 [19:58:38]action value=close_receipt [19:58:38]process_action close_receipt [19:58:38]cmd_close_receipt [19:58:38]MH_GetDate [19:58:38]Write to MH i2c: F0 00 00 74 07 6A [19:58:38]Write i2c OK [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: F0 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: F0 09 00 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: F0 09 00 74 07 00 F0 76 F0 66 CE CC 0E 66 3D [19:58:38]GetLastDocTimeStamp 1727035077 [19:58:38]current date 1727035120 [19:58:38]FM_GetShiftState [19:58:38]SAM_PROTO_GetShiftState [19:58:38]wFMCommunicate request_size=4 [19:58:38]MH_SAM_APDU [19:58:38]CAPDU: 80 13 01 00 [19:58:38]Write to MH i2c: E2 08 00 75 07 80 13 01 00 00 00 00 00 F9 [19:58:38]Write i2c OK [19:58:38]MH_I2C_Read... [19:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:38]Read from MH i2c: E2 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: E2 0E 00 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: E2 0E 00 75 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B9 [19:58:38]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:58:38]wFMCommunicate OK [19:58:38]SAM_PROTO_GetShiftState done [19:58:38]FM_GetShiftState done [19:58:38]opened in 1726963967 [19:58:38]opened+sec_in_day 1727050367 [19:58:38]quantity*price = 5500 [19:58:38]sum+1 = 5501 [19:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 95 22.09.2024 19:58 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18699 ФПД: 43767465716122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195840&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18699&fm=43767465716122&tin=02508201610067®Number=0000000000152968&sum=5500 0 [19:58:39]StoreToDocumentArchive [19:58:39]shift 180 fd 18699 [19:58:39]save to /storage/0180/doc_00018699 [19:58:39]save last doc name /storage/0180/doc_00018699 to /storage/kkm_last_doc_name [19:58:39]save OK [19:58:39]Clear old archive folders... [19:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=287 [19:58:39]tlvbuf is B6F0F8E0 [19:58:39]SAM_PROTO_ClearQueue [19:58:39]wFMCommunicate request_size=4 [19:58:39]MH_SAM_APDU [19:58:39]CAPDU: 80 09 00 00 [19:58:39]Write to MH i2c: E2 08 00 82 07 80 09 00 00 00 00 00 00 FB [19:58:39]Write i2c OK [19:58:39]MH_I2C_Read... [19:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:39]Read from MH i2c: E2 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [19:58:39]RAPDU: 90 00 [19:58:39]wFMCommunicate OK [19:58:39]SAM_PROTO_ClearQueue done [19:58:39]KKMCreateOFDPacket [19:58:39]OFDProtocolAddRootSTLVToBuf [19:58:39]FM_MakeSignedData [19:58:39]FM_MakeSignedData [19:58:39]SAM_PROTO_SignData [19:58:39]wFMCommunicate request_size=4 [19:58:39]MH_SAM_APDU [19:58:39]CAPDU: 80 0D 01 02 [19:58:39]Write to MH i2c: E2 08 00 83 07 80 0D 01 02 00 00 00 00 03 [19:58:39]Write i2c OK [19:58:39]MH_I2C_Read... [19:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:39]Read from MH i2c: E2 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [19:58:39]RAPDU: 90 00 [19:58:39]wFMCommunicate OK [19:58:39]wFMCommunicate request_size=255 [19:58:39]MH_SAM_APDU [19:58:39]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 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 5F 00 00 00 F4 03 04 00 F0 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [19:58:39]Write to MH i2c: E2 02 01 84 07 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 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 5F 00 00 00 F4 03 04 00 F0 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 9E [19:58:39]Write i2c OK [19:58:39]MH_I2C_Read... [19:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:39]Read from MH i2c: E2 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [19:58:39]RAPDU: 90 00 [19:58:39]wFMCommunicate OK [19:58:39]wFMCommunicate request_size=46 [19:58:39]MH_SAM_APDU [19:58:39]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0B 49 00 00 35 04 06 00 27 CE 68 3F 29 9A [19:58:39]Write to MH i2c: E2 31 00 85 07 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0B 49 00 00 35 04 06 00 27 CE 68 3F 29 9A 00 00 54 [19:58:39]Write i2c OK [19:58:39]MH_I2C_Read... [19:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:39]Read from MH i2c: E2 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 [19:58:39]MH_I2C_Read... [19:58:39]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [19:58:39]RAPDU: 90 00 [19:58:39]wFMCommunicate OK [19:58:39]wFMCommunicate request_size=4 [19:58:39]MH_SAM_APDU [19:58:39]CAPDU: 80 0D 03 02 [19:58:39]Write to MH i2c: E2 08 00 86 07 80 0D 03 02 00 00 00 00 08 [19:58:39]Write i2c OK [19:58:39]MH_I2C_Read... [19:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:40]Read from MH i2c: E2 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 0B 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 0B 00 86 07 00 B4 05 04 AE C0 BF 87 C8 90 00 42 [19:58:40]RAPDU: B4 05 04 AE C0 BF 87 C8 90 00 [19:58:40]wFMCommunicate OK [19:58:40]SAM_PROTO_SignData done [19:58:40]FM_MakeSignedData done [19:58:40]CreateOFDProtocolMessage [19:58:40]wFMCommunicate request_size=4 [19:58:40]MH_SAM_APDU [19:58:40]CAPDU: 80 11 00 00 [19:58:40]Write to MH i2c: E2 08 00 87 07 80 11 00 00 00 00 00 00 08 [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:40]Read from MH i2c: E2 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 17 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 17 00 87 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 61 [19:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:58:40]wFMCommunicate OK [19:58:40]CreateOFDProtocolMessage done [19:58:40]OFDSenderStorePacket 18699 [19:58:40]StoreOFDPacket docnum=18699 [19:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 D2 4C 2B 01 59 FA 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 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 5F 00 00 00 F4 03 04 00 F0 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0B 49 00 00 35 04 06 00 27 CE 68 3F 29 9A B4 05 04 AE C0 BF 87 C8 [19:58:40]CheckFolder [19:58:40]dirname=/storage/ofd_packets [19:58:40]CheckFolder done [19:58:40]ProducePacketName [19:58:40]name=ofd_packets/00018699 [19:58:40]NVStorageSaveData ofd_packets/00018699 [19:58:40]File name is /storage/ofd_packets/00018699 [19:58:40]Write 337 bytes [19:58:40]NVStorageSaveData done [19:58:40]OFDSenderStorePacket done [19:58:40]KKMCreateOFDPacket done [19:58:40]NVStorageSaveData kkm_last_timestamp [19:58:40]File name is /storage/kkm_last_timestamp [19:58:40]Write 4 bytes [19:58:40]NVStorageSaveData done [19:58:40]ExternCall_PrintAddStr [19:58:40]wPrintStart [19:58:40]Write to MH i2c: 01 00 00 88 07 8F [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 07 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 FF 0F A4 [19:58:40]RasterBufferAndPrint [19:58:40]line Счет N : (3)16623 [19:58:40]line ИНН: 02508201610067 [19:58:40]line Контрольно-Кассовый Чек [19:58:40]line ПРОДАЖА [19:58:40]line Товар: 46146632 [19:58:40]line Р/ж Orbit XXL клубника,банан 20,4г [19:58:40]line 1.000 * 55.00 [19:58:40]line = 55.00 [19:58:40]line НДС 12% НСП 1% [19:58:40]line > о реализуемом товаре [19:58:40]line ИТОГО: 55.00 [19:58:40]line НСП 1% : 0.49 [19:58:40]line НДС 12% : 5.84 [19:58:40]line Наличными: 55.00 [19:58:40]line Безнал.: 0.00 [19:58:40]line Место: АЗС № 176 "Партнер Нефть" [19:58:40]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:58:40]line СНО: Общий режим [19:58:40]line Чек 95 22.09.2024 19:58 [19:58:40]line Смена: 180 ФФД: 1.0 [19:58:40]line ЗНМ: 0300000010 [19:58:40]line РНМ: 0000000000152968 [19:58:40]line Версия ККМ: v1.0 [19:58:40]line ФМ: 0000000000959456 [19:58:40]line ФД: 18699 [19:58:40]line ФПД: 43767465716122 [19:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T195840&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18699&fm=43767465716122&tin=02508201610067®Number=0000000000152968&sum=5500 [19:58:40]line 0 [19:58:40]OFD Sender: Processing packet 18699 [packets to send 7, broken 6] [19:58:40]ProducePacketName [19:58:40]name=ofd_packets/00018699 [19:58:40]OFD Sender: To server: pG, [19:58:40]CommunicateWithHost lk.salyk.kg:30040 [19:58:40]ConnectInit lk.salyk.kg [19:58:40]written 0, free lines is 4095 [19:58:40]Connected sock=10 [19:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 D2 4C 2B 01 59 FA 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 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 5F 00 00 00 F4 03 04 00 F0 76 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0B 49 00 00 35 04 06 00 27 CE 68 3F 29 9A B4 05 04 AE C0 BF 87 C8 [19:58:40]Write to MH i2c: 01 00 00 B1 07 B8 [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 07 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 06 0D D2 [19:58:40]RasterBufferAndPrint [19:58:40]line [19:58:40]line [19:58:40]line [19:58:40]line [19:58:40]line [19:58:40]written 0, free lines is 3340 [19:58:40]MH_Cut [19:58:40]Write to MH i2c: D1 01 00 B8 07 01 91 [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: D1 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: D1 01 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: D1 01 00 B8 07 00 90 [19:58:40]Write to MH i2c: 01 00 00 B9 07 C0 [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 67 55 47 00 48 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 39 35 39 34 35 36 10 04 04 00 0B 49 00 00 F4 03 04 00 56 20 F0 66 B6 04 01 00 00 9C 6B AF 6A 89 11 93 52 [19:58:40]CommunicateWithHost err = 0 [19:58:40]CheckOFDResponse [19:58:40]1017 (14) - 77093643461234 [19:58:40]1041 (16) - 0000000000959456 [19:58:40]1040 (4) - 18699 [19:58:40]1012 (4) - 22.09.2024 13:49 [19:58:40]1206 (1) - 0 [19:58:40]OFD Sender: Remove packet 18699 [19:58:40]ProducePacketName [19:58:40]name=ofd_packets/00018699 [19:58:40]NVStorageDeleteData [19:58:41]OFD Sender: No OFD packet to send [19:58:41]*** Cut start [19:58:41]*** Partial cut [19:58:41]*** CUTSNS_PIN = 1 [19:58:41]*** CUTSNS_PIN = 0 [19:58:41]*** Brake cut motor [19:58:42]Read from MH i2c: 01 [19:58:42]MH_I2C_Read... [19:58:42]*** Stop cut motor [19:58:42]*** Cut end [19:58:42]Read from MH i2c: 01 07 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [19:58:42]process_action close_receipt done [19:58:42]requested_data is exist [19:58:42]produce_requested_data [19:58:42]requested_item fm.sn is exist - process it [19:58:42]wFMCommunicate request_size=4 [19:58:42]MH_SAM_APDU [19:58:42]CAPDU: 80 11 00 00 [19:58:42]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:42]Read from MH i2c: E2 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 17 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 94 [19:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:58:42]wFMCommunicate OK [19:58:42]requested_item fd.num is exist - process it [19:58:42]SAM_PROTO_GetFieldsCounters [19:58:42]wFMCommunicate request_size=4 [19:58:42]MH_SAM_APDU [19:58:42]CAPDU: 80 13 00 00 [19:58:42]Write to MH i2c: E2 08 00 BB 07 80 13 00 00 00 00 00 00 3E [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:42]Read from MH i2c: E2 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 62 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 62 00 BB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0B 49 00 00 0E 04 04 00 B4 00 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 90 [19:58:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0B 49 00 00 0E 04 04 00 B4 00 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 [19:58:42]wFMCommunicate OK [19:58:42]SAM_PROTO_GetFieldsCounters done [19:58:42]requested_item shift.num is exist - process it [19:58:42]requested_item shift.opened is exist - process it [19:58:42]req_shift_opened [19:58:42]FM_GetShiftState [19:58:42]SAM_PROTO_GetShiftState [19:58:42]wFMCommunicate request_size=4 [19:58:42]MH_SAM_APDU [19:58:42]CAPDU: 80 13 01 00 [19:58:42]Write to MH i2c: E2 08 00 BC 07 80 13 01 00 00 00 00 00 40 [19:58:42]Write i2c OK [19:58:42]MH_I2C_Read... [19:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:42]Read from MH i2c: E2 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 0E 00 [19:58:42]MH_I2C_Read... [19:58:42]Read from MH i2c: E2 0E 00 BC 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 00 [19:58:42]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [19:58:42]wFMCommunicate OK [19:58:42]SAM_PROTO_GetShiftState done [19:58:42]FM_GetShiftState done [19:58:42]req_shift_opened done [19:58:42]requested_item shift.open_date is exist - process it [19:58:42]req_shift_open_date [19:58:42]req_shift_open_date done [19:58:42]produce_requested_data done [19:58:42]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18699,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [19:58:42]process_action_free close_receipt [19:58:42]json_value_free [19:58:42]json_value_free done [19:58:42]process_json_proto returns [19:58:42]Send response to host [19:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18699,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [19:58:42]free response buf [19:58:42]execute_script done [19:58:42]execute_script returns [19:58:42]free content buf [19:58:42]Sock 9.Close socket [19:58:42]Sock 9.Thread stoped [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:03]accept exits with 8 [20:06:03]New connection [20:06:03]New thread 3067272548 created [20:06:03]Thread 3067129188 joined [20:06:03]Waiting for new connection... [20:06:03] Sock 8.Parse request [20:06:03]Sock 8.Check first char [20:06:03]Sock 8.First char is OK [20:06:03]request: POST /json_proto HTTP/1.0 [20:06:03]Method: POST [20:06:03]URL: /json_proto [20:06:03]Method is POST - this is cgi request [20:06:03]url: /json_proto [20:06:03]query_string will be loaded in cgi processing [20:06:03]execute_cgi json_proto POST (null) [20:06:03]execute_cgi path=json_proto method=POST [20:06:03]POST find Content-Length [20:06:03]Host: 172.17.62.196:8080 [20:06:03]Content-Length: 625 [20:06:03]Content-Type: application/json [20:06:03] [20:06:03]POST finish read [20:06:03]Found Content-Length = 625 [20:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16624", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:03]execute_script... [20:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16624", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:03]POST & json_proto [20:06:03]process_json_proto [20:06:03]json parsed OK: [20:06:03]protocol is kg_v1.0 [20:06:03]action value=close_receipt [20:06:03]process_action close_receipt [20:06:03]cmd_close_receipt [20:06:03]MH_GetDate [20:06:03]Write to MH i2c: F0 00 00 BD 07 B3 [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 09 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: F0 09 00 BD 07 00 AD 78 F0 66 CE CC 0E 66 45 [20:06:03]GetLastDocTimeStamp 1727035120 [20:06:03]current date 1727035565 [20:06:03]FM_GetShiftState [20:06:03]SAM_PROTO_GetShiftState [20:06:03]wFMCommunicate request_size=4 [20:06:03]MH_SAM_APDU [20:06:03]CAPDU: 80 13 01 00 [20:06:03]Write to MH i2c: E2 08 00 BE 07 80 13 01 00 00 00 00 00 42 [20:06:03]Write i2c OK [20:06:03]MH_I2C_Read... [20:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:03]Read from MH i2c: E2 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 [20:06:03]MH_I2C_Read... [20:06:03]Read from MH i2c: E2 0E 00 BE 07 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 02 [20:06:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:06:03]wFMCommunicate OK [20:06:03]SAM_PROTO_GetShiftState done [20:06:03]FM_GetShiftState done [20:06:03]opened in 1726963967 [20:06:03]opened+sec_in_day 1727050367 [20:06:03]quantity*price = 15000 [20:06:03]sum+1 = 15001 [20:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 96 22.09.2024 20:06 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18700 ФПД: 117056565674540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18700&fm=117056565674540&tin=02508201610067®Number=0000000000152968&sum=15000 0 [20:06:04]StoreToDocumentArchive [20:06:04]shift 180 fd 18700 [20:06:04]save to /storage/0180/doc_00018700 [20:06:04]save last doc name /storage/0180/doc_00018700 to /storage/kkm_last_doc_name [20:06:04]save OK [20:06:04]Clear old archive folders... [20:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:06:04]tlvbuf is 001ED170 [20:06:04]SAM_PROTO_ClearQueue [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 09 00 00 [20:06:04]Write to MH i2c: E2 08 00 CB 07 80 09 00 00 00 00 00 00 44 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]SAM_PROTO_ClearQueue done [20:06:04]KKMCreateOFDPacket [20:06:04]OFDProtocolAddRootSTLVToBuf [20:06:04]FM_MakeSignedData [20:06:04]FM_MakeSignedData [20:06:04]SAM_PROTO_SignData [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 01 02 [20:06:04]Write to MH i2c: E2 08 00 CC 07 80 0D 01 02 00 00 00 00 4C [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=255 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AD 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [20:06:04]Write to MH i2c: E2 02 01 CD 07 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AD 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 06 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=37 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0C 49 00 00 35 04 06 00 6A 76 5B 04 02 2C [20:06:04]Write to MH i2c: E2 28 00 CE 07 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0C 49 00 00 35 04 06 00 6A 76 5B 04 02 2C 00 00 6E [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [20:06:04]RAPDU: 90 00 [20:06:04]wFMCommunicate OK [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 0D 03 02 [20:06:04]Write to MH i2c: E2 08 00 CF 07 80 0D 03 02 00 00 00 00 51 [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0B 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0B 00 CF 07 00 18 A3 87 B6 7E 28 00 C3 90 00 B3 [20:06:05]RAPDU: 18 A3 87 B6 7E 28 00 C3 90 00 [20:06:05]wFMCommunicate OK [20:06:05]SAM_PROTO_SignData done [20:06:05]FM_MakeSignedData done [20:06:05]CreateOFDProtocolMessage [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 11 00 00 [20:06:05]Write to MH i2c: E2 08 00 D0 07 80 11 00 00 00 00 00 00 51 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 17 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 17 00 D0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AA [20:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:06:05]wFMCommunicate OK [20:06:05]CreateOFDProtocolMessage done [20:06:05]OFDSenderStorePacket 18700 [20:06:05]StoreOFDPacket docnum=18700 [20:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 BF E5 22 01 48 3F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AD 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0C 49 00 00 35 04 06 00 6A 76 5B 04 02 2C 18 A3 87 B6 7E 28 00 C3 [20:06:05]CheckFolder [20:06:05]dirname=/storage/ofd_packets [20:06:05]CheckFolder done [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00018700 [20:06:05]NVStorageSaveData ofd_packets/00018700 [20:06:05]File name is /storage/ofd_packets/00018700 [20:06:05]Write 328 bytes [20:06:05]NVStorageSaveData done [20:06:05]OFDSenderStorePacket done [20:06:05]KKMCreateOFDPacket done [20:06:05]NVStorageSaveData kkm_last_timestamp [20:06:05]File name is /storage/kkm_last_timestamp [20:06:05]Write 4 bytes [20:06:05]NVStorageSaveData done [20:06:05]ExternCall_PrintAddStr [20:06:05]wPrintStart [20:06:05]Write to MH i2c: 01 00 00 D1 07 D8 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 FF 0F ED [20:06:05]RasterBufferAndPrint [20:06:05]line Счет N : (3)16624 [20:06:05]line ИНН: 02508201610067 [20:06:05]line Контрольно-Кассовый Чек [20:06:05]line ПРОДАЖА [20:06:05]line Товар: 4640030092499 [20:06:05]line Сигареты ESSE SENSE Himalaya [20:06:05]line 1.000 * 150.00 [20:06:05]line = 150.00 [20:06:05]line НДС 12% НСП 1% [20:06:05]line > о реализуемом товаре [20:06:05]line ИТОГО: 150.00 [20:06:05]line НСП 1% : 1.33 [20:06:05]line НДС 12% : 15.93 [20:06:05]line Наличными: 150.00 [20:06:05]line Безнал.: 0.00 [20:06:05]line Место: АЗС № 176 "Партнер Нефть" [20:06:05]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:06:05]line СНО: Общий режим [20:06:05]line Чек 96 22.09.2024 20:06 [20:06:05]line Смена: 180 ФФД: 1.0 [20:06:05]line ЗНМ: 0300000010 [20:06:05]line РНМ: 0000000000152968 [20:06:05]line Версия ККМ: v1.0 [20:06:05]line ФМ: 0000000000959456 [20:06:05]line ФД: 18700 [20:06:05]line ФПД: 117056565674540 [20:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18700&fm=117056565674540&tin=02508201610067®Number=0000000000152968&sum=15000 [20:06:05]line 0 [20:06:05]OFD Sender: Processing packet 18700 [packets to send 7, broken 6] [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00018700 [20:06:05]OFD Sender: To server: pG, [20:06:05]CommunicateWithHost lk.salyk.kg:30040 [20:06:05]ConnectInit lk.salyk.kg [20:06:05]written 0, free lines is 4095 [20:06:05]Connected sock=10 [20:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 BF E5 22 01 48 3F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 AD 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0C 49 00 00 35 04 06 00 6A 76 5B 04 02 2C 18 A3 87 B6 7E 28 00 C3 [20:06:05]Write to MH i2c: 01 00 00 FA 07 01 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 05 0D 1A [20:06:05]RasterBufferAndPrint [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]line [20:06:05]written 0, free lines is 3339 [20:06:05]MH_Cut [20:06:05]Write to MH i2c: D1 01 00 01 08 01 DB [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 01 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: D1 01 00 01 08 00 DA [20:06:05]Write to MH i2c: 01 00 00 02 08 0A [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 AE 59 47 00 30 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0C 49 00 00 F4 03 04 00 13 22 F0 66 B6 04 01 00 00 0C 3F 56 BA 4E 94 9C 22 [20:06:05]CommunicateWithHost err = 0 [20:06:05]CheckOFDResponse [20:06:05]1017 (14) - 77093643461234 [20:06:05]1041 (16) - 0000000000959456 [20:06:05]1040 (4) - 18700 [20:06:05]1012 (4) - 22.09.2024 13:56 [20:06:05]1206 (1) - 0 [20:06:05]OFD Sender: Remove packet 18700 [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00018700 [20:06:05]NVStorageDeleteData [20:06:06]OFD Sender: No OFD packet to send [20:06:06]*** Cut start [20:06:06]*** Partial cut [20:06:06]*** CUTSNS_PIN = 1 [20:06:06]*** CUTSNS_PIN = 0 [20:06:06]*** Brake cut motor [20:06:07]Read from MH i2c: 01 [20:06:07]MH_I2C_Read... [20:06:07]*** Stop cut motor [20:06:07]*** Cut end [20:06:07]Read from MH i2c: 01 07 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [20:06:07]process_action close_receipt done [20:06:07]requested_data is exist [20:06:07]produce_requested_data [20:06:07]requested_item fm.sn is exist - process it [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 11 00 00 [20:06:07]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DE [20:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:06:07]wFMCommunicate OK [20:06:07]requested_item fd.num is exist - process it [20:06:07]SAM_PROTO_GetFieldsCounters [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 13 00 00 [20:06:07]Write to MH i2c: E2 08 00 04 08 80 13 00 00 00 00 00 00 88 [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 62 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 62 00 04 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0C 49 00 00 0E 04 04 00 B4 00 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 DE [20:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0C 49 00 00 0E 04 04 00 B4 00 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 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_GetFieldsCounters done [20:06:07]requested_item shift.num is exist - process it [20:06:07]requested_item shift.opened is exist - process it [20:06:07]req_shift_opened [20:06:07]FM_GetShiftState [20:06:07]SAM_PROTO_GetShiftState [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 13 01 00 [20:06:07]Write to MH i2c: E2 08 00 05 08 80 13 01 00 00 00 00 00 8A [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 05 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4A [20:06:07]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_GetShiftState done [20:06:07]FM_GetShiftState done [20:06:07]req_shift_opened done [20:06:07]requested_item shift.open_date is exist - process it [20:06:07]req_shift_open_date [20:06:07]req_shift_open_date done [20:06:07]produce_requested_data done [20:06:07]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18700,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:06:07]process_action_free close_receipt [20:06:07]json_value_free [20:06:07]json_value_free done [20:06:07]process_json_proto returns [20:06:07]Send response to host [20:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18700,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:06:07]free response buf [20:06:07]execute_script done [20:06:07]execute_script returns [20:06:07]free content buf [20:06:07]Sock 8.Close socket [20:06:07]Sock 8.Thread stoped [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]accept exits with 9 [20:07:11]New connection [20:07:11]New thread 3067129188 created [20:07:11]Thread 3067272548 joined [20:07:11]Waiting for new connection... [20:07:11] Sock 9.Parse request [20:07:11]Sock 9.Check first char [20:07:11]Sock 9.First char is OK [20:07:11]request: POST /json_proto HTTP/1.0 [20:07:11]Method: POST [20:07:11]URL: /json_proto [20:07:11]Method is POST - this is cgi request [20:07:11]url: /json_proto [20:07:11]query_string will be loaded in cgi processing [20:07:11]execute_cgi json_proto POST (null) [20:07:11]execute_cgi path=json_proto method=POST [20:07:11]POST find Content-Length [20:07:11]Host: 172.17.62.196:8080 [20:07:11]Content-Length: 632 [20:07:11]Content-Type: application/json [20:07:11] [20:07:11]POST finish read [20:07:11]Found Content-Length = 632 [20:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16625", "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" ] } } [20:07:11]execute_script... [20:07: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)16625", "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" ] } } [20:07:11]POST & json_proto [20:07:11]process_json_proto [20:07:11]json parsed OK: [20:07:11]protocol is kg_v1.0 [20:07:11]action value=close_receipt [20:07:11]process_action close_receipt [20:07:11]cmd_close_receipt [20:07:11]MH_GetDate [20:07:11]Write to MH i2c: F0 00 00 06 08 FD [20:07:11]Write i2c OK [20:07:11]MH_I2C_Read... [20:07:11]Read from MH i2c: F0 [20:07:11]MH_I2C_Read... [20:07:11]Read from MH i2c: F0 09 00 [20:07:11]MH_I2C_Read... [20:07:11]Read from MH i2c: F0 09 00 06 08 00 F1 78 F0 66 CE CC 0E 66 D3 [20:07:11]GetLastDocTimeStamp 1727035565 [20:07:11]current date 1727035633 [20:07:11]FM_GetShiftState [20:07:11]SAM_PROTO_GetShiftState [20:07:11]wFMCommunicate request_size=4 [20:07:11]MH_SAM_APDU [20:07:11]CAPDU: 80 13 01 00 [20:07:11]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [20:07:11]Write i2c OK [20:07:11]MH_I2C_Read... [20:07:11]OFD Sender: No OFD packet to send [20:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:11]Read from MH i2c: E2 [20:07:11]MH_I2C_Read... [20:07:11]Read from MH i2c: E2 0E 00 [20:07:11]MH_I2C_Read... [20:07:11]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4C [20:07:11]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:07:11]wFMCommunicate OK [20:07:11]SAM_PROTO_GetShiftState done [20:07:11]FM_GetShiftState done [20:07:11]opened in 1726963967 [20:07:11]opened+sec_in_day 1727050367 [20:07:11]quantity*price = 13000 [20:07:11]sum+1 = 13001 [20:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 97 22.09.2024 20:07 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18701 ФПД: 224408537038629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200713&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18701&fm=224408537038629&tin=02508201610067®Number=0000000000152968&sum=13000 0 [20:07:12]StoreToDocumentArchive [20:07:12]shift 180 fd 18701 [20:07:12]save to /storage/0180/doc_00018701 [20:07:12]save last doc name /storage/0180/doc_00018701 to /storage/kkm_last_doc_name [20:07:12]save OK [20:07:12]Clear old archive folders... [20:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=285 [20:07:12]tlvbuf is 0019D210 [20:07:12]SAM_PROTO_ClearQueue [20:07:12]wFMCommunicate request_size=4 [20:07:12]MH_SAM_APDU [20:07:12]CAPDU: 80 09 00 00 [20:07:12]Write to MH i2c: E2 08 00 14 08 80 09 00 00 00 00 00 00 8E [20:07:12]Write i2c OK [20:07:12]MH_I2C_Read... [20:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:12]Read from MH i2c: E2 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [20:07:12]RAPDU: 90 00 [20:07:12]wFMCommunicate OK [20:07:12]SAM_PROTO_ClearQueue done [20:07:12]KKMCreateOFDPacket [20:07:12]OFDProtocolAddRootSTLVToBuf [20:07:12]FM_MakeSignedData [20:07:12]FM_MakeSignedData [20:07:12]SAM_PROTO_SignData [20:07:12]wFMCommunicate request_size=4 [20:07:12]MH_SAM_APDU [20:07:12]CAPDU: 80 0D 01 02 [20:07:12]Write to MH i2c: E2 08 00 15 08 80 0D 01 02 00 00 00 00 96 [20:07:12]Write i2c OK [20:07:12]MH_I2C_Read... [20:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:12]Read from MH i2c: E2 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [20:07:12]RAPDU: 90 00 [20:07:12]wFMCommunicate OK [20:07:12]wFMCommunicate request_size=255 [20:07:12]MH_SAM_APDU [20:07:12]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 61 00 00 00 F4 03 04 00 F1 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 [20:07:12]Write to MH i2c: E2 02 01 16 08 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 61 00 00 00 F4 03 04 00 F1 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 00 00 31 [20:07:12]Write i2c OK [20:07:12]MH_I2C_Read... [20:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:12]Read from MH i2c: E2 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 [20:07:12]MH_I2C_Read... [20:07:12]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [20:07:12]RAPDU: 90 00 [20:07:12]wFMCommunicate OK [20:07:12]wFMCommunicate request_size=44 [20:07:12]MH_SAM_APDU [20:07:12]CAPDU: 80 0D 02 02 27 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0D 49 00 00 35 04 06 00 CC 19 2F 22 7F 25 [20:07:12]Write to MH i2c: E2 2F 00 17 08 80 0D 02 02 27 00 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0D 49 00 00 35 04 06 00 CC 19 2F 22 7F 25 00 00 F1 [20:07:12]Write i2c OK [20:07:12]MH_I2C_Read... [20:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:13]Read from MH i2c: E2 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 03 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [20:07:13]RAPDU: 90 00 [20:07:13]wFMCommunicate OK [20:07:13]wFMCommunicate request_size=4 [20:07:13]MH_SAM_APDU [20:07:13]CAPDU: 80 0D 03 02 [20:07:13]Write to MH i2c: E2 08 00 18 08 80 0D 03 02 00 00 00 00 9B [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:13]Read from MH i2c: E2 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 0B 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 0B 00 18 08 00 82 28 3E 27 E1 38 E3 90 90 00 37 [20:07:13]RAPDU: 82 28 3E 27 E1 38 E3 90 90 00 [20:07:13]wFMCommunicate OK [20:07:13]SAM_PROTO_SignData done [20:07:13]FM_MakeSignedData done [20:07:13]CreateOFDProtocolMessage [20:07:13]wFMCommunicate request_size=4 [20:07:13]MH_SAM_APDU [20:07:13]CAPDU: 80 11 00 00 [20:07:13]Write to MH i2c: E2 08 00 19 08 80 11 00 00 00 00 00 00 9B [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:13]Read from MH i2c: E2 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 17 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: E2 17 00 19 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F4 [20:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:07:13]wFMCommunicate OK [20:07:13]CreateOFDProtocolMessage done [20:07:13]OFDSenderStorePacket 18701 [20:07:13]StoreOFDPacket docnum=18701 [20:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 2E 0F 29 01 3A 39 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 61 00 00 00 F4 03 04 00 F1 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0D 49 00 00 35 04 06 00 CC 19 2F 22 7F 25 82 28 3E 27 E1 38 E3 90 [20:07:13]CheckFolder [20:07:13]dirname=/storage/ofd_packets [20:07:13]CheckFolder done [20:07:13]ProducePacketName [20:07:13]name=ofd_packets/00018701 [20:07:13]NVStorageSaveData ofd_packets/00018701 [20:07:13]File name is /storage/ofd_packets/00018701 [20:07:13]Write 335 bytes [20:07:13]NVStorageSaveData done [20:07:13]OFDSenderStorePacket done [20:07:13]KKMCreateOFDPacket done [20:07:13]NVStorageSaveData kkm_last_timestamp [20:07:13]File name is /storage/kkm_last_timestamp [20:07:13]Write 4 bytes [20:07:13]NVStorageSaveData done [20:07:13]ExternCall_PrintAddStr [20:07:13]wPrintStart [20:07:13]Write to MH i2c: 01 00 00 1A 08 22 [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 07 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [20:07:13]RasterBufferAndPrint [20:07:13]line Счет N : (3)16625 [20:07:13]line ИНН: 02508201610067 [20:07:13]line Контрольно-Кассовый Чек [20:07:13]line ПРОДАЖА [20:07:13]line Товар: 48745291 [20:07:13]line Сигареты Parliament SOHO NYC COMPACT BLU [20:07:13]line 1.000 * 130.00 [20:07:13]line = 130.00 [20:07:13]line НДС 12% НСП 1% [20:07:13]line > о реализуемом товаре [20:07:13]line ИТОГО: 130.00 [20:07:13]line НСП 1% : 1.15 [20:07:13]line НДС 12% : 13.80 [20:07:13]line Наличными: 130.00 [20:07:13]line Безнал.: 0.00 [20:07:13]line Место: АЗС № 176 "Партнер Нефть" [20:07:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:07:13]line СНО: Общий режим [20:07:13]line Чек 97 22.09.2024 20:07 [20:07:13]line Смена: 180 ФФД: 1.0 [20:07:13]line ЗНМ: 0300000010 [20:07:13]line РНМ: 0000000000152968 [20:07:13]line Версия ККМ: v1.0 [20:07:13]line ФМ: 0000000000959456 [20:07:13]line ФД: 18701 [20:07:13]line ФПД: 224408537038629 [20:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T200713&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18701&fm=224408537038629&tin=02508201610067®Number=0000000000152968&sum=13000 [20:07:13]line 0 [20:07:13]OFD Sender: Processing packet 18701 [packets to send 7, broken 6] [20:07:13]ProducePacketName [20:07:13]name=ofd_packets/00018701 [20:07:13]OFD Sender: To server: pG, [20:07:13]CommunicateWithHost lk.salyk.kg:30040 [20:07:13]ConnectInit lk.salyk.kg [20:07:13]written 0, free lines is 4095 [20:07:13]Connected sock=10 [20:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 2E 0F 29 01 3A 39 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 61 00 00 00 F4 03 04 00 F1 78 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0D 49 00 00 35 04 06 00 CC 19 2F 22 7F 25 82 28 3E 27 E1 38 E3 90 [20:07:13]Write to MH i2c: 01 00 00 43 08 4B [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 07 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 16 0D 75 [20:07:13]RasterBufferAndPrint [20:07:13]line [20:07:13]line [20:07:13]line [20:07:13]line [20:07:13]line [20:07:13]written 0, free lines is 3361 [20:07:13]MH_Cut [20:07:13]Write to MH i2c: D1 01 00 4A 08 01 24 [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: D1 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: D1 01 00 [20:07:13]MH_I2C_Read... [20:07:13]Read from MH i2c: D1 01 00 4A 08 00 23 [20:07:13]Write to MH i2c: 01 00 00 4B 08 53 [20:07:13]Write i2c OK [20:07:13]MH_I2C_Read... [20:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 83 3A 47 00 64 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 39 35 39 34 35 36 10 04 04 00 0D 49 00 00 F4 03 04 00 57 22 F0 66 B6 04 01 00 00 D9 29 73 8A 92 82 E6 0E [20:07:13]CommunicateWithHost err = 0 [20:07:13]CheckOFDResponse [20:07:13]1017 (14) - 77093643461234 [20:07:13]1041 (16) - 0000000000959456 [20:07:13]1040 (4) - 18701 [20:07:13]1012 (4) - 22.09.2024 13:57 [20:07:13]1206 (1) - 0 [20:07:13]OFD Sender: Remove packet 18701 [20:07:13]ProducePacketName [20:07:13]name=ofd_packets/00018701 [20:07:13]NVStorageDeleteData [20:07:14]OFD Sender: No OFD packet to send [20:07:14]*** Cut start [20:07:14]*** Partial cut [20:07:14]*** CUTSNS_PIN = 1 [20:07:14]*** CUTSNS_PIN = 0 [20:07:14]*** Brake cut motor [20:07:15]Read from MH i2c: 01 [20:07:15]MH_I2C_Read... [20:07:15]*** Stop cut motor [20:07:15]*** Cut end [20:07:15]Read from MH i2c: 01 07 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [20:07:15]process_action close_receipt done [20:07:15]requested_data is exist [20:07:15]produce_requested_data [20:07:15]requested_item fm.sn is exist - process it [20:07:15]wFMCommunicate request_size=4 [20:07:15]MH_SAM_APDU [20:07:15]CAPDU: 80 11 00 00 [20:07:15]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:15]Read from MH i2c: E2 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 17 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 27 [20:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:07:15]wFMCommunicate OK [20:07:15]requested_item fd.num is exist - process it [20:07:15]SAM_PROTO_GetFieldsCounters [20:07:15]wFMCommunicate request_size=4 [20:07:15]MH_SAM_APDU [20:07:15]CAPDU: 80 13 00 00 [20:07:15]Write to MH i2c: E2 08 00 4D 08 80 13 00 00 00 00 00 00 D1 [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:15]Read from MH i2c: E2 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 62 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 62 00 4D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0D 49 00 00 0E 04 04 00 B4 00 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 2B [20:07:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0D 49 00 00 0E 04 04 00 B4 00 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 [20:07:15]wFMCommunicate OK [20:07:15]SAM_PROTO_GetFieldsCounters done [20:07:15]requested_item shift.num is exist - process it [20:07:15]requested_item shift.opened is exist - process it [20:07:15]req_shift_opened [20:07:15]FM_GetShiftState [20:07:15]SAM_PROTO_GetShiftState [20:07:15]wFMCommunicate request_size=4 [20:07:15]MH_SAM_APDU [20:07:15]CAPDU: 80 13 01 00 [20:07:15]Write to MH i2c: E2 08 00 4E 08 80 13 01 00 00 00 00 00 D3 [20:07:15]Write i2c OK [20:07:15]MH_I2C_Read... [20:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:15]Read from MH i2c: E2 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 0E 00 [20:07:15]MH_I2C_Read... [20:07:15]Read from MH i2c: E2 0E 00 4E 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 93 [20:07:15]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:07:15]wFMCommunicate OK [20:07:15]SAM_PROTO_GetShiftState done [20:07:15]FM_GetShiftState done [20:07:15]req_shift_opened done [20:07:15]requested_item shift.open_date is exist - process it [20:07:15]req_shift_open_date [20:07:15]req_shift_open_date done [20:07:15]produce_requested_data done [20:07:15]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18701,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:07:15]process_action_free close_receipt [20:07:15]json_value_free [20:07:15]json_value_free done [20:07:15]process_json_proto returns [20:07:15]Send response to host [20:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18701,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:07:15]free response buf [20:07:15]execute_script done [20:07:15]execute_script returns [20:07:15]free content buf [20:07:15]Sock 9.Close socket [20:07:15]Sock 9.Thread stoped [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:43]accept exits with 8 [20:27:43]New connection [20:27:43]New thread 3067272548 created [20:27:43]Thread 3067129188 joined [20:27:43]Waiting for new connection... [20:27:43] Sock 8.Parse request [20:27:43]Sock 8.Check first char [20:27:43]Sock 8.First char is OK [20:27:43]request: POST /json_proto HTTP/1.0 [20:27:43]Method: POST [20:27:43]URL: /json_proto [20:27:43]Method is POST - this is cgi request [20:27:43]url: /json_proto [20:27:43]query_string will be loaded in cgi processing [20:27:43]execute_cgi json_proto POST (null) [20:27:43]execute_cgi path=json_proto method=POST [20:27:43]POST find Content-Length [20:27:43]Host: 172.17.62.196:8080 [20:27:43]Content-Length: 943 [20:27:43]Content-Type: application/json [20:27:43] [20:27:43]POST finish read [20:27:43]Found Content-Length = 943 [20:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16626", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 85.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" ] } } [20:27:43]execute_script... [20:27: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)16626", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1.000, "sum" : 85.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" ] } } [20:27:43]POST & json_proto [20:27:43]process_json_proto [20:27:43]json parsed OK: [20:27:43]protocol is kg_v1.0 [20:27:43]action value=close_receipt [20:27:43]process_action close_receipt [20:27:43]cmd_close_receipt [20:27:43]MH_GetDate [20:27:43]Write to MH i2c: F0 00 00 4F 08 46 [20:27:43]Write i2c OK [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 09 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 09 00 4F 08 00 C1 7D F0 66 CE CC 0E 66 F1 [20:27:43]GetLastDocTimeStamp 1727035633 [20:27:43]current date 1727036865 [20:27:43]FM_GetShiftState [20:27:43]SAM_PROTO_GetShiftState [20:27:43]wFMCommunicate request_size=4 [20:27:43]MH_SAM_APDU [20:27:43]CAPDU: 80 13 01 00 [20:27:43]Write to MH i2c: E2 08 00 50 08 80 13 01 00 00 00 00 00 D5 [20:27:43]Write i2c OK [20:27:43]MH_I2C_Read... [20:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:43]Read from MH i2c: E2 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 50 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 95 [20:27:43]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:27:43]wFMCommunicate OK [20:27:43]SAM_PROTO_GetShiftState done [20:27:43]FM_GetShiftState done [20:27:43]opened in 1726963967 [20:27:43]opened+sec_in_day 1727050367 [20:27:43]quantity*price = 14000 [20:27:43]sum+1 = 14001 [20:27:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 98 22.09.2024 20:27 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18702 ФПД: 220190244225108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202745&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18702&fm=220190244225108&tin=02508201610067®Number=0000000000152968&sum=22500 0 [20:27:44]StoreToDocumentArchive [20:27:44]shift 180 fd 18702 [20:27:44]save to /storage/0180/doc_00018702 [20:27:44]save last doc name /storage/0180/doc_00018702 to /storage/kkm_last_doc_name [20:27:44]save OK [20:27:44]Clear old archive folders... [20:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=408 [20:27:44]tlvbuf is 001E8670 [20:27:44]SAM_PROTO_ClearQueue [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 09 00 00 [20:27:44]Write to MH i2c: E2 08 00 5D 08 80 09 00 00 00 00 00 00 D7 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]SAM_PROTO_ClearQueue done [20:27:44]KKMCreateOFDPacket [20:27:44]OFDProtocolAddRootSTLVToBuf [20:27:44]FM_MakeSignedData [20:27:44]FM_MakeSignedData [20:27:44]SAM_PROTO_SignData [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 01 02 [20:27:44]Write to MH i2c: E2 08 00 5E 08 80 0D 01 02 00 00 00 00 DF [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=255 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 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 [20:27:44]Write to MH i2c: E2 02 01 5F 08 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 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 00 90 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [20:27:45]RAPDU: 90 00 [20:27:45]wFMCommunicate OK [20:27:45]wFMCommunicate request_size=167 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 0D 02 02 A2 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 62 00 00 00 F4 03 04 00 C1 7D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0E 49 00 00 35 04 06 00 C8 43 09 4A 40 54 [20:27:45]Write to MH i2c: E2 AA 00 60 08 80 0D 02 02 A2 00 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 62 00 00 00 F4 03 04 00 C1 7D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0E 49 00 00 35 04 06 00 C8 43 09 4A 40 54 00 00 FE [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [20:27:45]RAPDU: 90 00 [20:27:45]wFMCommunicate OK [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 0D 03 02 [20:27:45]Write to MH i2c: E2 08 00 61 08 80 0D 03 02 00 00 00 00 E4 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0B 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0B 00 61 08 00 86 E2 32 34 BB 1C 7D 6E 90 00 75 [20:27:45]RAPDU: 86 E2 32 34 BB 1C 7D 6E 90 00 [20:27:45]wFMCommunicate OK [20:27:45]SAM_PROTO_SignData done [20:27:45]FM_MakeSignedData done [20:27:45]CreateOFDProtocolMessage [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 11 00 00 [20:27:45]Write to MH i2c: E2 08 00 62 08 80 11 00 00 00 00 00 00 E4 [20:27:45]OFD Sender: No OFD packet to send [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 62 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3D [20:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:27:45]wFMCommunicate OK [20:27:45]CreateOFDProtocolMessage done [20:27:45]OFDSenderStorePacket 18702 [20:27:45]StoreOFDPacket docnum=18702 [20:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 AC 01 00 00 25 C5 A4 01 01 C0 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 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 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 62 00 00 00 F4 03 04 00 C1 7D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0E 49 00 00 35 04 06 00 C8 43 09 4A 40 54 86 E2 32 34 BB 1C 7D 6E [20:27:45]CheckFolder [20:27:45]dirname=/storage/ofd_packets [20:27:45]CheckFolder done [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00018702 [20:27:45]NVStorageSaveData ofd_packets/00018702 [20:27:45]File name is /storage/ofd_packets/00018702 [20:27:45]Write 458 bytes [20:27:45]NVStorageSaveData done [20:27:45]OFDSenderStorePacket done [20:27:45]KKMCreateOFDPacket done [20:27:45]NVStorageSaveData kkm_last_timestamp [20:27:45]File name is /storage/kkm_last_timestamp [20:27:45]Write 4 bytes [20:27:45]NVStorageSaveData done [20:27:45]ExternCall_PrintAddStr [20:27:45]wPrintStart [20:27:45]Write to MH i2c: 01 00 00 63 08 6B [20:27:45]OFD Sender: Processing packet 18702 [packets to send 7, broken 6] [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00018702 [20:27:45]OFD Sender: To server: pG, [20:27:45]CommunicateWithHost lk.salyk.kg:30040 [20:27:45]ConnectInit lk.salyk.kg [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 63 08 00 00 00 00 00 FF 0F 80 [20:27:45]RasterBufferAndPrint [20:27:45]line Счет N : (3)16626 [20:27:45]line ИНН: 02508201610067 [20:27:45]line Контрольно-Кассовый Чек [20:27:45]line ПРОДАЖА [20:27:45]line Товар: 4620006995702 [20:27:45]line Водка Зеленая Марка 0,1л [20:27:45]line 1.000 * 140.00 [20:27:45]line = 140.00 [20:27:45]line НДС 12% НСП 1% [20:27:45]line > о реализуемом товаре [20:27:45]line Товар: 4600682557456 [20:27:45]line Напиток FLash up energy эн ж/б 0,5/0,45л [20:27:45]line 1.000 * 85.00 [20:27:45]line = 85.00 [20:27:45]line НДС 12% НСП 1% [20:27:45]line > о реализуемом товаре [20:27:45]line ИТОГО: 225.00 [20:27:45]line НСП 1% : 1.99 [20:27:45]line НДС 12% : 23.90 [20:27:45]line Наличными: 225.00 [20:27:45]line Безнал.: 0.00 [20:27:45]line Место: АЗС № 176 "Партнер Нефть" [20:27:45]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:27:45]line СНО: Общий режим [20:27:45]line Чек 98 22.09.2024 20:27 [20:27:45]line Смена: 180 ФФД: 1.0 [20:27:45]line ЗНМ: 0300000010 [20:27:45]line РНМ: 0000000000152968 [20:27:45]line Версия ККМ: v1.0 [20:27:45]line ФМ: 0000000000959456 [20:27:45]line ФД: 18702 [20:27:45]line ФПД: 220190244225108 [20:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202745&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18702&fm=220190244225108&tin=02508201610067®Number=0000000000152968&sum=22500 [20:27:45]line 0 [20:27:45]written 0, free lines is 4095 [20:27:45]Connected sock=10 [20:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 AC 01 00 00 25 C5 A4 01 01 C0 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 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 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 62 00 00 00 F4 03 04 00 C1 7D F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0E 49 00 00 35 04 06 00 C8 43 09 4A 40 54 86 E2 32 34 BB 1C 7D 6E [20:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 0B 4E 47 00 C3 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0E 49 00 00 F4 03 04 00 28 27 F0 66 B6 04 01 00 00 36 4B DA 4B 48 27 EC 51 [20:27:46]CommunicateWithHost err = 0 [20:27:46]CheckOFDResponse [20:27:46]1017 (14) - 77093643461234 [20:27:46]1041 (16) - 0000000000959456 [20:27:46]1040 (4) - 18702 [20:27:46]1012 (4) - 22.09.2024 14:18 [20:27:46]1206 (1) - 0 [20:27:46]OFD Sender: Remove packet 18702 [20:27:46]ProducePacketName [20:27:46]name=ofd_packets/00018702 [20:27:46]NVStorageDeleteData [20:27:46]Write to MH i2c: 01 00 00 92 08 9A [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 CA 0C 77 [20:27:46]RasterBufferAndPrint [20:27:46]line [20:27:46]line [20:27:46]line [20:27:46]line [20:27:46]line [20:27:46]written 0, free lines is 3283 [20:27:46]MH_Cut [20:27:46]Write to MH i2c: D1 01 00 99 08 01 73 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: D1 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: D1 01 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: D1 01 00 99 08 00 72 [20:27:46]Write to MH i2c: 01 00 00 9A 08 A2 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]OFD Sender: No OFD packet to send [20:27:47]*** Cut start [20:27:47]*** Partial cut [20:27:47]*** CUTSNS_PIN = 1 [20:27:47]*** CUTSNS_PIN = 0 [20:27:47]*** Brake cut motor [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]*** Stop cut motor [20:27:47]*** Cut end [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [20:27:47]process_action close_receipt done [20:27:47]requested_data is exist [20:27:47]produce_requested_data [20:27:47]requested_item fm.sn is exist - process it [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 11 00 00 [20:27:47]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 76 [20:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:27:47]wFMCommunicate OK [20:27:47]requested_item fd.num is exist - process it [20:27:47]SAM_PROTO_GetFieldsCounters [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 00 00 [20:27:47]Write to MH i2c: E2 08 00 9C 08 80 13 00 00 00 00 00 00 20 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 9C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0E 49 00 00 0E 04 04 00 B4 00 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 7E [20:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0E 49 00 00 0E 04 04 00 B4 00 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 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetFieldsCounters done [20:27:47]requested_item shift.num is exist - process it [20:27:47]requested_item shift.opened is exist - process it [20:27:47]req_shift_opened [20:27:47]FM_GetShiftState [20:27:47]SAM_PROTO_GetShiftState [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 01 00 [20:27:47]Write to MH i2c: E2 08 00 9D 08 80 13 01 00 00 00 00 00 22 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 9D 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E2 [20:27:47]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetShiftState done [20:27:47]FM_GetShiftState done [20:27:47]req_shift_opened done [20:27:47]requested_item shift.open_date is exist - process it [20:27:47]req_shift_open_date [20:27:47]req_shift_open_date done [20:27:47]produce_requested_data done [20:27:47]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18702,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:27:47]process_action_free close_receipt [20:27:47]json_value_free [20:27:47]json_value_free done [20:27:47]process_json_proto returns [20:27:47]Send response to host [20:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18702,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:27:47]free response buf [20:27:47]execute_script done [20:27:47]execute_script returns [20:27:47]free content buf [20:27:47]Sock 8.Close socket [20:27:47]Sock 8.Thread stoped [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:07]accept exits with 9 [20:31:07]New connection [20:31:07]New thread 3067129188 created [20:31:07]Thread 3067272548 joined [20:31:07]Waiting for new connection... [20:31:07] Sock 9.Parse request [20:31:07]Sock 9.Check first char [20:31:07]Sock 9.First char is OK [20:31:07]request: POST /json_proto HTTP/1.0 [20:31:07]Method: POST [20:31:07]URL: /json_proto [20:31:07]Method is POST - this is cgi request [20:31:07]url: /json_proto [20:31:07]query_string will be loaded in cgi processing [20:31:07]execute_cgi json_proto POST (null) [20:31:07]execute_cgi path=json_proto method=POST [20:31:07]POST find Content-Length [20:31:07]Host: 172.17.62.196:8080 [20:31:07]Content-Length: 867 [20:31:07]Content-Type: application/json [20:31:07] [20:31:07]POST finish read [20:31:07]Found Content-Length = 867 [20:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16627", "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": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:07]execute_script... [20: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)16627", "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": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:07]POST & json_proto [20:31:07]process_json_proto [20:31:07]json parsed OK: [20:31:07]protocol is kg_v1.0 [20:31:07]action value=close_receipt [20:31:07]process_action close_receipt [20:31:07]cmd_close_receipt [20:31:07]MH_GetDate [20:31:07]Write to MH i2c: F0 00 00 9E 08 95 [20:31:07]Write i2c OK [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: F0 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: F0 09 00 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: F0 09 00 9E 08 00 8D 7E F0 66 CE CC 0E 66 0D [20:31:07]GetLastDocTimeStamp 1727036865 [20:31:07]current date 1727037069 [20:31:07]FM_GetShiftState [20:31:07]SAM_PROTO_GetShiftState [20:31:07]wFMCommunicate request_size=4 [20:31:07]MH_SAM_APDU [20:31:07]CAPDU: 80 13 01 00 [20:31:07]Write to MH i2c: E2 08 00 9F 08 80 13 01 00 00 00 00 00 24 [20:31:07]Write i2c OK [20:31:07]MH_I2C_Read... [20:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:07]Read from MH i2c: E2 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 0E 00 [20:31:07]MH_I2C_Read... [20:31:07]Read from MH i2c: E2 0E 00 9F 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E4 [20:31:07]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:31:07]wFMCommunicate OK [20:31:07]SAM_PROTO_GetShiftState done [20:31:07]FM_GetShiftState done [20:31:07]opened in 1726963967 [20:31:07]opened+sec_in_day 1727050367 [20:31:07]quantity*price = 5000 [20:31:07]sum+1 = 5001 [20:31:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742344 Сигареты LD Super Slims Pink 2.000 * 134.00 = 268.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 99 22.09.2024 20:31 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18703 ФПД: 129254942795979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203109&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18703&fm=129254942795979&tin=02508201610067®Number=0000000000152968&sum=31800 0 [20:31:08]StoreToDocumentArchive [20:31:08]shift 180 fd 18703 [20:31:08]save to /storage/0180/doc_00018703 [20:31:08]save last doc name /storage/0180/doc_00018703 to /storage/kkm_last_doc_name [20:31:08]save OK [20:31:08]Clear old archive folders... [20:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=372 [20:31:08]tlvbuf is 001B6060 [20:31:08]SAM_PROTO_ClearQueue [20:31:08]wFMCommunicate request_size=4 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 09 00 00 [20:31:08]Write to MH i2c: E2 08 00 AC 08 80 09 00 00 00 00 00 00 26 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [20:31:08]RAPDU: 90 00 [20:31:08]wFMCommunicate OK [20:31:08]SAM_PROTO_ClearQueue done [20:31:08]KKMCreateOFDPacket [20:31:08]OFDProtocolAddRootSTLVToBuf [20:31:08]FM_MakeSignedData [20:31:08]FM_MakeSignedData [20:31:08]SAM_PROTO_SignData [20:31:08]wFMCommunicate request_size=4 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 0D 01 02 [20:31:08]Write to MH i2c: E2 08 00 AD 08 80 0D 01 02 00 00 00 00 2E [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [20:31:08]RAPDU: 90 00 [20:31:08]wFMCommunicate OK [20:31:08]wFMCommunicate request_size=255 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 0D 02 02 FA 03 00 74 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 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 [20:31:08]Write to MH i2c: E2 02 01 AE 08 80 0D 02 02 FA 00 03 00 74 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 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 00 00 F0 [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [20:31:09]RAPDU: 90 00 [20:31:09]wFMCommunicate OK [20:31:09]wFMCommunicate request_size=131 [20:31:09]MH_SAM_APDU [20:31:09]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 8D 7E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0F 49 00 00 35 04 06 00 75 8E 82 F3 68 CB [20:31:09]Write to MH i2c: E2 86 00 AF 08 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 8D 7E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0F 49 00 00 35 04 06 00 75 8E 82 F3 68 CB 00 00 DE [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [20:31:09]RAPDU: 90 00 [20:31:09]wFMCommunicate OK [20:31:09]wFMCommunicate request_size=4 [20:31:09]MH_SAM_APDU [20:31:09]CAPDU: 80 0D 03 02 [20:31:09]Write to MH i2c: E2 08 00 B0 08 80 0D 03 02 00 00 00 00 33 [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 0B 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 0B 00 B0 08 00 C2 35 91 15 53 4E D8 DA 90 00 24 [20:31:09]RAPDU: C2 35 91 15 53 4E D8 DA 90 00 [20:31:09]wFMCommunicate OK [20:31:09]SAM_PROTO_SignData done [20:31:09]FM_MakeSignedData done [20:31:09]CreateOFDProtocolMessage [20:31:09]wFMCommunicate request_size=4 [20:31:09]MH_SAM_APDU [20:31:09]CAPDU: 80 11 00 00 [20:31:09]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 17 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8C [20:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:31:09]wFMCommunicate OK [20:31:09]CreateOFDProtocolMessage done [20:31:09]OFDSenderStorePacket 18703 [20:31:09]StoreOFDPacket docnum=18703 [20:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 88 01 00 00 55 FD 80 01 E7 7D 5A 03 01 00 03 00 74 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 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 8D 7E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0F 49 00 00 35 04 06 00 75 8E 82 F3 68 CB C2 35 91 15 53 4E D8 DA [20:31:09]CheckFolder [20:31:09]dirname=/storage/ofd_packets [20:31:09]CheckFolder done [20:31:09]ProducePacketName [20:31:09]name=ofd_packets/00018703 [20:31:09]NVStorageSaveData ofd_packets/00018703 [20:31:09]File name is /storage/ofd_packets/00018703 [20:31:09]Write 422 bytes [20:31:09]NVStorageSaveData done [20:31:09]OFDSenderStorePacket done [20:31:09]KKMCreateOFDPacket done [20:31:09]NVStorageSaveData kkm_last_timestamp [20:31:09]File name is /storage/kkm_last_timestamp [20:31:09]Write 4 bytes [20:31:09]NVStorageSaveData done [20:31:09]ExternCall_PrintAddStr [20:31:09]wPrintStart [20:31:09]Write to MH i2c: 01 00 00 B2 08 BA [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: 01 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: 01 07 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [20:31:09]RasterBufferAndPrint [20:31:09]line Счет N : (3)16627 [20:31:09]line ИНН: 02508201610067 [20:31:09]line Контрольно-Кассовый Чек [20:31:09]line ПРОДАЖА [20:31:09]line Товар: 4700000160358 [20:31:09]line Вода Легенда 1л [20:31:09]line 1.000 * 50.00 [20:31:09]line = 50.00 [20:31:09]line НДС 12% НСП 1% [20:31:09]line > о реализуемом товаре [20:31:09]line Товар: 48742344 [20:31:09]line Сигареты LD Super Slims Pink [20:31:09]line 2.000 * 134.00 [20:31:09]line = 268.00 [20:31:09]line НДС 12% НСП 1% [20:31:09]line > о реализуемом товаре [20:31:09]line ИТОГО: 318.00 [20:31:09]line НСП 1% : 2.81 [20:31:09]line НДС 12% : 33.77 [20:31:09]line Наличными: 318.00 [20:31:09]line Безнал.: 0.00 [20:31:09]line Место: АЗС № 176 "Партнер Нефть" [20:31:09]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:31:09]line СНО: Общий режим [20:31:09]line Чек 99 22.09.2024 20:31 [20:31:09]line Смена: 180 ФФД: 1.0 [20:31:09]line ЗНМ: 0300000010 [20:31:09]line РНМ: 0000000000152968 [20:31:09]line Версия ККМ: v1.0 [20:31:09]line ФМ: 0000000000959456 [20:31:09]line ФД: 18703 [20:31:09]line ФПД: 129254942795979 [20:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203109&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18703&fm=129254942795979&tin=02508201610067®Number=0000000000152968&sum=31800 [20:31:09]line 0 [20:31:09]OFD Sender: Processing packet 18703 [packets to send 7, broken 6] [20:31:09]ProducePacketName [20:31:09]name=ofd_packets/00018703 [20:31:09]OFD Sender: To server: pG, [20:31:09]CommunicateWithHost lk.salyk.kg:30040 [20:31:09]ConnectInit lk.salyk.kg [20:31:09]written 0, free lines is 4095 [20:31:09]Connected sock=10 [20:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 88 01 00 00 55 FD 80 01 E7 7D 5A 03 01 00 03 00 74 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 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 50 69 6E 6B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 8D 7E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0F 49 00 00 35 04 06 00 75 8E 82 F3 68 CB C2 35 91 15 53 4E D8 DA [20:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 58 B8 47 00 93 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 0F 49 00 00 F4 03 04 00 F4 27 F0 66 B6 04 01 00 00 1D 80 EB AE 90 BE 0E 70 [20:31:10]CommunicateWithHost err = 0 [20:31:10]CheckOFDResponse [20:31:10]1017 (14) - 77093643461234 [20:31:10]1041 (16) - 0000000000959456 [20:31:10]1040 (4) - 18703 [20:31:10]1012 (4) - 22.09.2024 14:21 [20:31:10]1206 (1) - 0 [20:31:10]OFD Sender: Remove packet 18703 [20:31:10]ProducePacketName [20:31:10]name=ofd_packets/00018703 [20:31:10]NVStorageDeleteData [20:31:10]Write to MH i2c: 01 00 00 E0 08 E8 [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 07 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 E8 0C E3 [20:31:10]RasterBufferAndPrint [20:31:10]line [20:31:10]line [20:31:10]line [20:31:10]line [20:31:10]line [20:31:10]written 0, free lines is 3313 [20:31:10]MH_Cut [20:31:10]Write to MH i2c: D1 01 00 E7 08 01 C1 [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: D1 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: D1 01 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: D1 01 00 E7 08 00 C0 [20:31:10]Write to MH i2c: 01 00 00 E8 08 F0 [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]OFD Sender: No OFD packet to send [20:31:10]*** Cut start [20:31:10]*** Partial cut [20:31:10]*** CUTSNS_PIN = 1 [20:31:10]*** CUTSNS_PIN = 0 [20:31:11]*** Brake cut motor [20:31:11]Read from MH i2c: 01 [20:31:11]MH_I2C_Read... [20:31:11]*** Stop cut motor [20:31:11]*** Cut end [20:31:11]Read from MH i2c: 01 07 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [20:31:11]process_action close_receipt done [20:31:11]requested_data is exist [20:31:11]produce_requested_data [20:31:11]requested_item fm.sn is exist - process it [20:31:11]wFMCommunicate request_size=4 [20:31:11]MH_SAM_APDU [20:31:11]CAPDU: 80 11 00 00 [20:31:11]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:11]Read from MH i2c: E2 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 17 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C4 [20:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:31:11]wFMCommunicate OK [20:31:11]requested_item fd.num is exist - process it [20:31:11]SAM_PROTO_GetFieldsCounters [20:31:11]wFMCommunicate request_size=4 [20:31:11]MH_SAM_APDU [20:31:11]CAPDU: 80 13 00 00 [20:31:11]Write to MH i2c: E2 08 00 EA 08 80 13 00 00 00 00 00 00 6E [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:11]Read from MH i2c: E2 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 62 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 62 00 EA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0F 49 00 00 0E 04 04 00 B4 00 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 D0 [20:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 0F 49 00 00 0E 04 04 00 B4 00 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 [20:31:11]wFMCommunicate OK [20:31:11]SAM_PROTO_GetFieldsCounters done [20:31:11]requested_item shift.num is exist - process it [20:31:11]requested_item shift.opened is exist - process it [20:31:11]req_shift_opened [20:31:11]FM_GetShiftState [20:31:11]SAM_PROTO_GetShiftState [20:31:11]wFMCommunicate request_size=4 [20:31:11]MH_SAM_APDU [20:31:11]CAPDU: 80 13 01 00 [20:31:11]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:11]Read from MH i2c: E2 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 0E 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 30 [20:31:11]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:31:11]wFMCommunicate OK [20:31:11]SAM_PROTO_GetShiftState done [20:31:11]FM_GetShiftState done [20:31:11]req_shift_opened done [20:31:11]requested_item shift.open_date is exist - process it [20:31:11]req_shift_open_date [20:31:11]req_shift_open_date done [20:31:11]produce_requested_data done [20:31:11]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18703,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:31:11]process_action_free close_receipt [20:31:11]json_value_free [20:31:11]json_value_free done [20:31:11]process_json_proto returns [20:31:11]Send response to host [20:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18703,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:31:11]free response buf [20:31:11]execute_script done [20:31:11]execute_script returns [20:31:11]free content buf [20:31:11]Sock 9.Close socket [20:31:11]Sock 9.Thread stoped [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:19]accept exits with 8 [20:40:19]New connection [20:40:19]New thread 3067272548 created [20:40:19]Thread 3067129188 joined [20:40:19]Waiting for new connection... [20:40:19] Sock 8.Parse request [20:40:19]Sock 8.Check first char [20:40:19]Sock 8.First char is OK [20:40:19]request: POST /json_proto HTTP/1.0 [20:40:19]Method: POST [20:40:19]URL: /json_proto [20:40:19]Method is POST - this is cgi request [20:40:19]url: /json_proto [20:40:19]query_string will be loaded in cgi processing [20:40:19]execute_cgi json_proto POST (null) [20:40:19]execute_cgi path=json_proto method=POST [20:40:19]POST find Content-Length [20:40:19]Host: 172.17.62.196:8080 [20:40:19]Content-Length: 814 [20:40:19]Content-Type: application/json [20:40:19] [20:40:19]POST finish read [20:40:19]Found Content-Length = 814 [20:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16628", "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" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]execute_script... [20:40: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)16628", "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" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]POST & json_proto [20:40:19]process_json_proto [20:40:19]json parsed OK: [20:40:19]protocol is kg_v1.0 [20:40:19]action value=close_receipt [20:40:19]process_action close_receipt [20:40:19]cmd_close_receipt [20:40:19]MH_GetDate [20:40:19]Write to MH i2c: F0 00 00 EC 08 E3 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 EC 08 00 B5 80 F0 66 CE CC 0E 66 85 [20:40:19]GetLastDocTimeStamp 1727037069 [20:40:19]current date 1727037621 [20:40:19]FM_GetShiftState [20:40:19]SAM_PROTO_GetShiftState [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 13 01 00 [20:40:19]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 32 [20:40:19]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:40:19]wFMCommunicate OK [20:40:19]SAM_PROTO_GetShiftState done [20:40:19]FM_GetShiftState done [20:40:19]opened in 1726963967 [20:40:19]opened+sec_in_day 1727050367 [20:40:19]quantity*price = 7700 [20:40:19]sum+1 = 7701 [20:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 100 22.09.2024 20:40 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18704 ФПД: 178146612027949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204021&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18704&fm=178146612027949&tin=02508201610067®Number=0000000000152968&sum=7700 0 [20:40:20]StoreToDocumentArchive [20:40:20]shift 180 fd 18704 [20:40:20]save to /storage/0180/doc_00018704 [20:40:20]save last doc name /storage/0180/doc_00018704 to /storage/kkm_last_doc_name [20:40:20]save OK [20:40:20]Clear old archive folders... [20:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:40:20]tlvbuf is 001E7530 [20:40:20]SAM_PROTO_ClearQueue [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 09 00 00 [20:40:20]Write to MH i2c: E2 08 00 FA 08 80 09 00 00 00 00 00 00 74 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_ClearQueue done [20:40:20]KKMCreateOFDPacket [20:40:20]OFDProtocolAddRootSTLVToBuf [20:40:20]FM_MakeSignedData [20:40:20]FM_MakeSignedData [20:40:20]SAM_PROTO_SignData [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 0D 01 02 [20:40:20]Write to MH i2c: E2 08 00 FB 08 80 0D 01 02 00 00 00 00 7C [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]wFMCommunicate request_size=255 [20:40:20]MH_SAM_APDU [20:40:20]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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 80 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:40:20]Write to MH i2c: E2 02 01 FC 08 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 80 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 B4 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 03 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [20:40:21]RAPDU: 90 00 [20:40:21]wFMCommunicate OK [20:40:21]wFMCommunicate request_size=52 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 10 49 00 00 35 04 06 00 A2 05 FD 87 22 2D [20:40:21]Write to MH i2c: E2 37 00 FD 08 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 10 49 00 00 35 04 06 00 A2 05 FD 87 22 2D 00 00 21 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 03 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [20:40:21]RAPDU: 90 00 [20:40:21]wFMCommunicate OK [20:40:21]wFMCommunicate request_size=4 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 0D 03 02 [20:40:21]Write to MH i2c: E2 08 00 FE 08 80 0D 03 02 00 00 00 00 81 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 0B 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 0B 00 FE 08 00 CC 35 C0 B7 04 B9 FF 0C 90 00 C2 [20:40:21]RAPDU: CC 35 C0 B7 04 B9 FF 0C 90 00 [20:40:21]wFMCommunicate OK [20:40:21]SAM_PROTO_SignData done [20:40:21]FM_MakeSignedData done [20:40:21]CreateOFDProtocolMessage [20:40:21]wFMCommunicate request_size=4 [20:40:21]MH_SAM_APDU [20:40:21]CAPDU: 80 11 00 00 [20:40:21]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:21]Read from MH i2c: E2 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 17 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DA [20:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:40:21]wFMCommunicate OK [20:40:21]CreateOFDProtocolMessage done [20:40:21]OFDSenderStorePacket 18704 [20:40:21]StoreOFDPacket docnum=18704 [20:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 84 3B 31 01 CF FD 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 80 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 10 49 00 00 35 04 06 00 A2 05 FD 87 22 2D CC 35 C0 B7 04 B9 FF 0C [20:40:21]CheckFolder [20:40:21]dirname=/storage/ofd_packets [20:40:21]CheckFolder done [20:40:21]ProducePacketName [20:40:21]name=ofd_packets/00018704 [20:40:21]NVStorageSaveData ofd_packets/00018704 [20:40:21]File name is /storage/ofd_packets/00018704 [20:40:21]Write 343 bytes [20:40:21]NVStorageSaveData done [20:40:21]OFDSenderStorePacket done [20:40:21]KKMCreateOFDPacket done [20:40:21]NVStorageSaveData kkm_last_timestamp [20:40:21]File name is /storage/kkm_last_timestamp [20:40:21]Write 4 bytes [20:40:21]NVStorageSaveData done [20:40:21]ExternCall_PrintAddStr [20:40:21]wPrintStart [20:40:21]Write to MH i2c: 01 00 00 00 09 09 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [20:40:21]RasterBufferAndPrint [20:40:21]line Счет N : (3)16628 [20:40:21]line ИНН: 02508201610067 [20:40:21]line Контрольно-Кассовый Чек [20:40:21]line ПРОДАЖА [20:40:21]line Товар: 4700000480050 [20:40:21]line Напиток Nitro Energy эн green ж/б 0,45л [20:40:21]line 1.000 * 77.00 [20:40:21]line = 77.00 [20:40:21]line НДС 12% НСП 1% [20:40:21]line > о реализуемом товаре [20:40:21]line ИТОГО: 77.00 [20:40:21]line НСП 1% : 0.68 [20:40:21]line НДС 12% : 8.18 [20:40:21]line Наличными: 0.00 [20:40:21]line Безнал.: 77.00 [20:40:21]line Место: АЗС № 176 "Партнер Нефть" [20:40:21]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:40:21]line СНО: Общий режим [20:40:21]line Чек 100 22.09.2024 20:40 [20:40:21]line Смена: 180 ФФД: 1.0 [20:40:21]line ЗНМ: 0300000010 [20:40:21]line РНМ: 0000000000152968 [20:40:21]line Версия ККМ: v1.0 [20:40:21]line Платежная система: O! деньги [20:40:21]line ФМ: 0000000000959456 [20:40:21]line ФД: 18704 [20:40:21]line ФПД: 178146612027949 [20:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204021&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18704&fm=178146612027949&tin=02508201610067®Number=0000000000152968&sum=7700 [20:40:21]line 0 [20:40:21]OFD Sender: Processing packet 18704 [packets to send 7, broken 6] [20:40:21]ProducePacketName [20:40:21]name=ofd_packets/00018704 [20:40:21]OFD Sender: To server: pG, [20:40:21]CommunicateWithHost lk.salyk.kg:30040 [20:40:21]ConnectInit lk.salyk.kg [20:40:21]written 0, free lines is 4095 [20:40:21]Connected sock=10 [20:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 84 3B 31 01 CF FD 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 80 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 10 49 00 00 35 04 06 00 A2 05 FD 87 22 2D CC 35 C0 B7 04 B9 FF 0C [20:40:21]Write to MH i2c: 01 00 00 2B 09 34 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 E3 0C 2A [20:40:21]RasterBufferAndPrint [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]written 0, free lines is 3305 [20:40:22]MH_Cut [20:40:22]Write to MH i2c: D1 01 00 32 09 01 0D [20:40:22]Write i2c OK [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: D1 [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: D1 01 00 [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: D1 01 00 32 09 00 0C [20:40:22]Write to MH i2c: 01 00 00 33 09 3C [20:40:22]Write i2c OK [20:40:22]MH_I2C_Read... [20:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 44 E3 47 00 A7 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 10 49 00 00 F4 03 04 00 1B 2A F0 66 B6 04 01 00 00 57 7C BB 28 C2 64 76 65 [20:40:22]CommunicateWithHost err = 0 [20:40:22]CheckOFDResponse [20:40:22]1017 (14) - 77093643461234 [20:40:22]1041 (16) - 0000000000959456 [20:40:22]1040 (4) - 18704 [20:40:22]1012 (4) - 22.09.2024 14:30 [20:40:22]1206 (1) - 0 [20:40:22]OFD Sender: Remove packet 18704 [20:40:22]ProducePacketName [20:40:22]name=ofd_packets/00018704 [20:40:22]NVStorageDeleteData [20:40:22]OFD Sender: No OFD packet to send [20:40:22]*** Cut start [20:40:22]*** Partial cut [20:40:22]*** CUTSNS_PIN = 1 [20:40:22]*** CUTSNS_PIN = 0 [20:40:22]*** Brake cut motor [20:40:23]Read from MH i2c: 01 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: 01 07 00 [20:40:23]MH_I2C_Read... [20:40:23]*** Stop cut motor [20:40:23]*** Cut end [20:40:23]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 FF 0F 51 [20:40:23]process_action close_receipt done [20:40:23]requested_data is exist [20:40:23]produce_requested_data [20:40:23]requested_item fm.sn is exist - process it [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 11 00 00 [20:40:23]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 17 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 10 [20:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:40:23]wFMCommunicate OK [20:40:23]requested_item fd.num is exist - process it [20:40:23]SAM_PROTO_GetFieldsCounters [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 13 00 00 [20:40:23]Write to MH i2c: E2 08 00 35 09 80 13 00 00 00 00 00 00 BA [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 62 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 62 00 35 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 10 49 00 00 0E 04 04 00 B4 00 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 20 [20:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 10 49 00 00 0E 04 04 00 B4 00 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 [20:40:23]wFMCommunicate OK [20:40:23]SAM_PROTO_GetFieldsCounters done [20:40:23]requested_item shift.num is exist - process it [20:40:23]requested_item shift.opened is exist - process it [20:40:23]req_shift_opened [20:40:23]FM_GetShiftState [20:40:23]SAM_PROTO_GetShiftState [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 13 01 00 [20:40:23]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7C [20:40:23]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:40:23]wFMCommunicate OK [20:40:23]SAM_PROTO_GetShiftState done [20:40:23]FM_GetShiftState done [20:40:23]req_shift_opened done [20:40:23]requested_item shift.open_date is exist - process it [20:40:23]req_shift_open_date [20:40:23]req_shift_open_date done [20:40:23]produce_requested_data done [20:40:23]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18704,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:40:23]process_action_free close_receipt [20:40:23]json_value_free [20:40:23]json_value_free done [20:40:23]process_json_proto returns [20:40:23]Send response to host [20:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18704,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:40:23]free response buf [20:40:23]execute_script done [20:40:23]execute_script returns [20:40:23]free content buf [20:40:23]Sock 8.Close socket [20:40:23]Sock 8.Thread stoped [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:57]accept exits with 9 [20:50:57]New connection [20:50:57]New thread 3067129188 created [20:50:57]Thread 3067272548 joined [20:50:57]Waiting for new connection... [20:50:57] Sock 9.Parse request [20:50:57]Sock 9.Check first char [20:50:57]Sock 9.First char is OK [20:50:57]request: POST /json_proto HTTP/1.0 [20:50:57]Method: POST [20:50:57]URL: /json_proto [20:50:57]Method is POST - this is cgi request [20:50:57]url: /json_proto [20:50:57]query_string will be loaded in cgi processing [20:50:57]execute_cgi json_proto POST (null) [20:50:57]execute_cgi path=json_proto method=POST [20:50:57]POST find Content-Length [20:50:57]Host: 172.17.62.196:8080 [20:50:57]Content-Length: 665 [20:50:57]Content-Type: application/json [20:50:57] [20:50:57]POST finish read [20:50:57]Found Content-Length = 665 [20:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16629", "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 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:57]execute_script... [20:50: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)16629", "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 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:57]POST & json_proto [20:50:57]process_json_proto [20:50:57]json parsed OK: [20:50:57]protocol is kg_v1.0 [20:50:57]action value=close_receipt [20:50:57]process_action close_receipt [20:50:57]cmd_close_receipt [20:50:57]MH_GetDate [20:50:57]Write to MH i2c: F0 00 00 37 09 2F [20:50:57]Write i2c OK [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: F0 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: F0 09 00 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: F0 09 00 37 09 00 33 83 F0 66 CE CC 0E 66 52 [20:50:57]GetLastDocTimeStamp 1727037621 [20:50:57]current date 1727038259 [20:50:57]FM_GetShiftState [20:50:57]SAM_PROTO_GetShiftState [20:50:57]wFMCommunicate request_size=4 [20:50:57]MH_SAM_APDU [20:50:57]CAPDU: 80 13 01 00 [20:50:57]Write to MH i2c: E2 08 00 38 09 80 13 01 00 00 00 00 00 BE [20:50:57]Write i2c OK [20:50:57]MH_I2C_Read... [20:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:57]Read from MH i2c: E2 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: E2 0E 00 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: E2 0E 00 38 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 7E [20:50:57]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:50:57]wFMCommunicate OK [20:50:57]SAM_PROTO_GetShiftState done [20:50:57]FM_GetShiftState done [20:50:57]opened in 1726963967 [20:50:57]opened+sec_in_day 1727050367 [20:50:57]quantity*price = 9000 [20:50:57]sum+1 = 9001 [20:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 101 22.09.2024 20:50 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18705 ФПД: 32602768149552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205059&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18705&fm=32602768149552&tin=02508201610067®Number=0000000000152968&sum=9000 0 [20:50:58]StoreToDocumentArchive [20:50:58]shift 180 fd 18705 [20:50:58]save to /storage/0180/doc_00018705 [20:50:58]save last doc name /storage/0180/doc_00018705 to /storage/kkm_last_doc_name [20:50:58]save OK [20:50:58]Clear old archive folders... [20:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=293 [20:50:58]tlvbuf is 001E82A0 [20:50:58]SAM_PROTO_ClearQueue [20:50:58]wFMCommunicate request_size=4 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 09 00 00 [20:50:58]Write to MH i2c: E2 08 00 45 09 80 09 00 00 00 00 00 00 C0 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:58]Read from MH i2c: E2 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [20:50:58]RAPDU: 90 00 [20:50:58]wFMCommunicate OK [20:50:58]SAM_PROTO_ClearQueue done [20:50:58]KKMCreateOFDPacket [20:50:58]OFDProtocolAddRootSTLVToBuf [20:50:58]FM_MakeSignedData [20:50:58]FM_MakeSignedData [20:50:58]SAM_PROTO_SignData [20:50:58]wFMCommunicate request_size=4 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 0D 01 02 [20:50:58]Write to MH i2c: E2 08 00 46 09 80 0D 01 02 00 00 00 00 C8 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:58]Read from MH i2c: E2 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [20:50:58]RAPDU: 90 00 [20:50:58]wFMCommunicate OK [20:50:58]wFMCommunicate request_size=255 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 33 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [20:50:58]Write to MH i2c: E2 02 01 47 09 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 33 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 C5 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:58]Read from MH i2c: E2 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [20:50:58]RAPDU: 90 00 [20:50:58]wFMCommunicate OK [20:50:58]wFMCommunicate request_size=52 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 11 49 00 00 35 04 06 00 1D A6 EC 6A 0C 30 [20:50:58]Write to MH i2c: E2 37 00 48 09 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 11 49 00 00 35 04 06 00 1D A6 EC 6A 0C 30 00 00 49 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:58]Read from MH i2c: E2 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [20:50:58]RAPDU: 90 00 [20:50:58]wFMCommunicate OK [20:50:58]wFMCommunicate request_size=4 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 0D 03 02 [20:50:58]Write to MH i2c: E2 08 00 49 09 80 0D 03 02 00 00 00 00 CD [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:59]Read from MH i2c: E2 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 0B 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 0B 00 49 09 00 D7 89 62 DA 3A C8 B2 DE 90 00 FC [20:50:59]RAPDU: D7 89 62 DA 3A C8 B2 DE 90 00 [20:50:59]wFMCommunicate OK [20:50:59]SAM_PROTO_SignData done [20:50:59]FM_MakeSignedData done [20:50:59]CreateOFDProtocolMessage [20:50:59]wFMCommunicate request_size=4 [20:50:59]MH_SAM_APDU [20:50:59]CAPDU: 80 11 00 00 [20:50:59]Write to MH i2c: E2 08 00 4A 09 80 11 00 00 00 00 00 00 CD [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:59]Read from MH i2c: E2 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 17 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 17 00 4A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 26 [20:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:50:59]wFMCommunicate OK [20:50:59]CreateOFDProtocolMessage done [20:50:59]OFDSenderStorePacket 18705 [20:50:59]StoreOFDPacket docnum=18705 [20:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 3D 56 31 01 F5 D0 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 33 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 11 49 00 00 35 04 06 00 1D A6 EC 6A 0C 30 D7 89 62 DA 3A C8 B2 DE [20:50:59]CheckFolder [20:50:59]dirname=/storage/ofd_packets [20:50:59]CheckFolder done [20:50:59]ProducePacketName [20:50:59]name=ofd_packets/00018705 [20:50:59]NVStorageSaveData ofd_packets/00018705 [20:50:59]File name is /storage/ofd_packets/00018705 [20:50:59]Write 343 bytes [20:50:59]NVStorageSaveData done [20:50:59]OFDSenderStorePacket done [20:50:59]KKMCreateOFDPacket done [20:50:59]NVStorageSaveData kkm_last_timestamp [20:50:59]File name is /storage/kkm_last_timestamp [20:50:59]Write 4 bytes [20:50:59]NVStorageSaveData done [20:50:59]ExternCall_PrintAddStr [20:50:59]wPrintStart [20:50:59]Write to MH i2c: 01 00 00 4B 09 54 [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 07 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 FF 0F 69 [20:50:59]RasterBufferAndPrint [20:50:59]line Счет N : (3)16629 [20:50:59]line ИНН: 02508201610067 [20:50:59]line Контрольно-Кассовый Чек [20:50:59]line ПРОДАЖА [20:50:59]line Товар: 4870022003305 [20:50:59]line Напиток Gorilla эн нат ж/б 0,5/0,45л [20:50:59]line 1.000 * 90.00 [20:50:59]line = 90.00 [20:50:59]line НДС 12% НСП 1% [20:50:59]line > о реализуемом товаре [20:50:59]line ИТОГО: 90.00 [20:50:59]line НСП 1% : 0.80 [20:50:59]line НДС 12% : 9.56 [20:50:59]line Наличными: 90.00 [20:50:59]line Безнал.: 0.00 [20:50:59]line Место: АЗС № 176 "Партнер Нефть" [20:50:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:50:59]line СНО: Общий режим [20:50:59]line Чек 101 22.09.2024 20:50 [20:50:59]line Смена: 180 ФФД: 1.0 [20:50:59]line ЗНМ: 0300000010 [20:50:59]line РНМ: 0000000000152968 [20:50:59]line Версия ККМ: v1.0 [20:50:59]line ФМ: 0000000000959456 [20:50:59]line ФД: 18705 [20:50:59]line ФПД: 32602768149552 [20:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205059&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18705&fm=32602768149552&tin=02508201610067®Number=0000000000152968&sum=9000 [20:50:59]line 0 [20:50:59]OFD Sender: Processing packet 18705 [packets to send 7, broken 6] [20:50:59]ProducePacketName [20:50:59]name=ofd_packets/00018705 [20:50:59]OFD Sender: To server: pG, [20:50:59]CommunicateWithHost lk.salyk.kg:30040 [20:50:59]ConnectInit lk.salyk.kg [20:50:59]written 0, free lines is 4095 [20:50:59]Connected sock=10 [20:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 3D 56 31 01 F5 D0 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 33 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 11 49 00 00 35 04 06 00 1D A6 EC 6A 0C 30 D7 89 62 DA 3A C8 B2 DE [20:50:59]Write to MH i2c: 01 00 00 74 09 7D [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 07 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 07 0D 98 [20:50:59]RasterBufferAndPrint [20:50:59]line [20:50:59]line [20:50:59]line [20:50:59]line [20:50:59]line [20:50:59]written 0, free lines is 3344 [20:50:59]MH_Cut [20:50:59]Write to MH i2c: D1 01 00 7B 09 01 56 [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: D1 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: D1 01 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: D1 01 00 7B 09 00 55 [20:50:59]Write to MH i2c: 01 00 00 7C 09 85 [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F1 2B 47 00 FB E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 11 49 00 00 F4 03 04 00 99 2C F0 66 B6 04 01 00 00 50 27 80 F0 C2 9F A4 5E [20:50:59]CommunicateWithHost err = 0 [20:50:59]CheckOFDResponse [20:50:59]1017 (14) - 77093643461234 [20:50:59]1041 (16) - 0000000000959456 [20:50:59]1040 (4) - 18705 [20:50:59]1012 (4) - 22.09.2024 14:41 [20:50:59]1206 (1) - 0 [20:50:59]OFD Sender: Remove packet 18705 [20:50:59]ProducePacketName [20:50:59]name=ofd_packets/00018705 [20:50:59]NVStorageDeleteData [20:51:00]OFD Sender: No OFD packet to send [20:51:00]*** Cut start [20:51:00]*** Partial cut [20:51:00]*** CUTSNS_PIN = 1 [20:51:00]*** CUTSNS_PIN = 0 [20:51:00]*** Brake cut motor [20:51:01]Read from MH i2c: 01 [20:51:01]MH_I2C_Read... [20:51:01]*** Stop cut motor [20:51:01]*** Cut end [20:51:01]Read from MH i2c: 01 07 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 FF 0F 9A [20:51:01]process_action close_receipt done [20:51:01]requested_data is exist [20:51:01]produce_requested_data [20:51:01]requested_item fm.sn is exist - process it [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 11 00 00 [20:51:01]Write to MH i2c: E2 08 00 7D 09 80 11 00 00 00 00 00 00 00 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 17 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 17 00 7D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 59 [20:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:51:01]wFMCommunicate OK [20:51:01]requested_item fd.num is exist - process it [20:51:01]SAM_PROTO_GetFieldsCounters [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 13 00 00 [20:51:01]Write to MH i2c: E2 08 00 7E 09 80 13 00 00 00 00 00 00 03 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 62 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 62 00 7E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 11 49 00 00 0E 04 04 00 B4 00 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 6D [20:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 11 49 00 00 0E 04 04 00 B4 00 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 [20:51:01]wFMCommunicate OK [20:51:01]SAM_PROTO_GetFieldsCounters done [20:51:01]requested_item shift.num is exist - process it [20:51:01]requested_item shift.opened is exist - process it [20:51:01]req_shift_opened [20:51:01]FM_GetShiftState [20:51:01]SAM_PROTO_GetShiftState [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 13 01 00 [20:51:01]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0E 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C5 [20:51:01]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:51:01]wFMCommunicate OK [20:51:01]SAM_PROTO_GetShiftState done [20:51:01]FM_GetShiftState done [20:51:01]req_shift_opened done [20:51:01]requested_item shift.open_date is exist - process it [20:51:01]req_shift_open_date [20:51:01]req_shift_open_date done [20:51:01]produce_requested_data done [20:51:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18705,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:51:01]process_action_free close_receipt [20:51:01]json_value_free [20:51:01]json_value_free done [20:51:01]process_json_proto returns [20:51:01]Send response to host [20:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18705,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:51:01]free response buf [20:51:01]execute_script done [20:51:01]execute_script returns [20:51:01]free content buf [20:51:01]Sock 9.Close socket [20:51:01]Sock 9.Thread stoped [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:16]accept exits with 8 [20:51:16]New connection [20:51:16]New thread 3067272548 created [20:51:16]Thread 3067129188 joined [20:51:16]Waiting for new connection... [20:51:16] Sock 8.Parse request [20:51:16]Sock 8.Check first char [20:51:16]Sock 8.First char is OK [20:51:16]request: POST /json_proto HTTP/1.0 [20:51:16]Method: POST [20:51:16]URL: /json_proto [20:51:16]Method is POST - this is cgi request [20:51:16]url: /json_proto [20:51:16]query_string will be loaded in cgi processing [20:51:16]execute_cgi json_proto POST (null) [20:51:16]execute_cgi path=json_proto method=POST [20:51:16]POST find Content-Length [20:51:16]Host: 172.17.62.196:8080 [20:51:16]Content-Length: 627 [20:51:16]Content-Type: application/json [20:51:16] [20:51:16]POST finish read [20:51:16]Found Content-Length = 627 [20:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16630", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:16]execute_script... [20:51: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)16630", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:16]POST & json_proto [20:51:16]process_json_proto [20:51:16]json parsed OK: [20:51:16]protocol is kg_v1.0 [20:51:16]action value=close_receipt [20:51:16]process_action close_receipt [20:51:16]cmd_close_receipt [20:51:16]MH_GetDate [20:51:16]Write to MH i2c: F0 00 00 80 09 78 [20:51:16]Write i2c OK [20:51:16]MH_I2C_Read... [20:51:16]Read from MH i2c: F0 [20:51:16]MH_I2C_Read... [20:51:16]Read from MH i2c: F0 09 00 [20:51:16]MH_I2C_Read... [20:51:16]Read from MH i2c: F0 09 00 80 09 00 46 83 F0 66 CE CC 0E 66 AE [20:51:16]GetLastDocTimeStamp 1727038259 [20:51:16]current date 1727038278 [20:51:16]FM_GetShiftState [20:51:16]SAM_PROTO_GetShiftState [20:51:16]wFMCommunicate request_size=4 [20:51:16]MH_SAM_APDU [20:51:16]CAPDU: 80 13 01 00 [20:51:16]Write to MH i2c: E2 08 00 81 09 80 13 01 00 00 00 00 00 07 [20:51:16]Write i2c OK [20:51:16]MH_I2C_Read... [20:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:16]Read from MH i2c: E2 [20:51:16]MH_I2C_Read... [20:51:16]Read from MH i2c: E2 0E 00 [20:51:16]MH_I2C_Read... [20:51:16]Read from MH i2c: E2 0E 00 81 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 C7 [20:51:16]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:51:16]wFMCommunicate OK [20:51:16]SAM_PROTO_GetShiftState done [20:51:16]FM_GetShiftState done [20:51:16]opened in 1726963967 [20:51:16]opened+sec_in_day 1727050367 [20:51:16]quantity*price = 13000 [20:51:16]sum+1 = 13001 [20:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 102 22.09.2024 20:51 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18706 ФПД: 1459794579700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205118&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18706&fm=1459794579700&tin=02508201610067®Number=0000000000152968&sum=13000 0 [20:51:17]StoreToDocumentArchive [20:51:17]shift 180 fd 18706 [20:51:17]save to /storage/0180/doc_00018706 [20:51:17]save last doc name /storage/0180/doc_00018706 to /storage/kkm_last_doc_name [20:51:17]save OK [20:51:17]Clear old archive folders... [20:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:51:17]tlvbuf is 001E7F00 [20:51:17]SAM_PROTO_ClearQueue [20:51:17]wFMCommunicate request_size=4 [20:51:17]MH_SAM_APDU [20:51:17]CAPDU: 80 09 00 00 [20:51:17]Write to MH i2c: E2 08 00 8E 09 80 09 00 00 00 00 00 00 09 [20:51:17]Write i2c OK [20:51:17]MH_I2C_Read... [20:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:17]Read from MH i2c: E2 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [20:51:17]RAPDU: 90 00 [20:51:17]wFMCommunicate OK [20:51:17]SAM_PROTO_ClearQueue done [20:51:17]KKMCreateOFDPacket [20:51:17]OFDProtocolAddRootSTLVToBuf [20:51:17]FM_MakeSignedData [20:51:17]FM_MakeSignedData [20:51:17]SAM_PROTO_SignData [20:51:17]wFMCommunicate request_size=4 [20:51:17]MH_SAM_APDU [20:51:17]CAPDU: 80 0D 01 02 [20:51:17]Write to MH i2c: E2 08 00 8F 09 80 0D 01 02 00 00 00 00 11 [20:51:17]Write i2c OK [20:51:17]MH_I2C_Read... [20:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:17]Read from MH i2c: E2 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [20:51:17]RAPDU: 90 00 [20:51:17]wFMCommunicate OK [20:51:17]wFMCommunicate request_size=255 [20:51:17]MH_SAM_APDU [20:51:17]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 46 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [20:51:17]Write to MH i2c: E2 02 01 90 09 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 46 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 6B [20:51:17]Write i2c OK [20:51:17]MH_I2C_Read... [20:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:17]Read from MH i2c: E2 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [20:51:17]RAPDU: 90 00 [20:51:17]wFMCommunicate OK [20:51:17]wFMCommunicate request_size=35 [20:51:17]MH_SAM_APDU [20:51:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 12 49 00 00 35 04 06 00 01 53 E2 89 90 F4 [20:51:17]Write to MH i2c: E2 26 00 91 09 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 12 49 00 00 35 04 06 00 01 53 E2 89 90 F4 00 00 AB [20:51:17]Write i2c OK [20:51:17]MH_I2C_Read... [20:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:18]Read from MH i2c: E2 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 03 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [20:51:18]RAPDU: 90 00 [20:51:18]wFMCommunicate OK [20:51:18]wFMCommunicate request_size=4 [20:51:18]MH_SAM_APDU [20:51:18]CAPDU: 80 0D 03 02 [20:51:18]Write to MH i2c: E2 08 00 92 09 80 0D 03 02 00 00 00 00 16 [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:18]Read from MH i2c: E2 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 0B 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 0B 00 92 09 00 17 F4 FE E8 32 11 4F 64 90 00 FE [20:51:18]RAPDU: 17 F4 FE E8 32 11 4F 64 90 00 [20:51:18]wFMCommunicate OK [20:51:18]SAM_PROTO_SignData done [20:51:18]FM_MakeSignedData done [20:51:18]CreateOFDProtocolMessage [20:51:18]wFMCommunicate request_size=4 [20:51:18]MH_SAM_APDU [20:51:18]CAPDU: 80 11 00 00 [20:51:18]Write to MH i2c: E2 08 00 93 09 80 11 00 00 00 00 00 00 16 [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:18]Read from MH i2c: E2 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 17 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: E2 17 00 93 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6F [20:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:51:18]wFMCommunicate OK [20:51:18]CreateOFDProtocolMessage done [20:51:18]OFDSenderStorePacket 18706 [20:51:18]StoreOFDPacket docnum=18706 [20:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 00 8F 20 01 DE 4D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 46 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 12 49 00 00 35 04 06 00 01 53 E2 89 90 F4 17 F4 FE E8 32 11 4F 64 [20:51:18]CheckFolder [20:51:18]dirname=/storage/ofd_packets [20:51:18]CheckFolder done [20:51:18]ProducePacketName [20:51:18]name=ofd_packets/00018706 [20:51:18]NVStorageSaveData ofd_packets/00018706 [20:51:18]File name is /storage/ofd_packets/00018706 [20:51:18]Write 326 bytes [20:51:18]NVStorageSaveData done [20:51:18]OFDSenderStorePacket done [20:51:18]KKMCreateOFDPacket done [20:51:18]NVStorageSaveData kkm_last_timestamp [20:51:18]File name is /storage/kkm_last_timestamp [20:51:18]Write 4 bytes [20:51:18]NVStorageSaveData done [20:51:18]ExternCall_PrintAddStr [20:51:18]wPrintStart [20:51:18]Write to MH i2c: 01 00 00 94 09 9D [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 07 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 FF 0F B2 [20:51:18]RasterBufferAndPrint [20:51:18]line Счет N : (3)16630 [20:51:18]line ИНН: 02508201610067 [20:51:18]line Контрольно-Кассовый Чек [20:51:18]line ПРОДАЖА [20:51:18]line Товар: 2000036230011 [20:51:18]line Кофе Латте XL(GABB TRADE) [20:51:18]line 1.000 * 130.00 [20:51:18]line = 130.00 [20:51:18]line НДС 12% НСП 1% [20:51:18]line > о реализуемом товаре [20:51:18]line ИТОГО: 130.00 [20:51:18]line НСП 1% : 1.15 [20:51:18]line НДС 12% : 13.80 [20:51:18]line Наличными: 130.00 [20:51:18]line Безнал.: 0.00 [20:51:18]line Место: АЗС № 176 "Партнер Нефть" [20:51:18]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:51:18]line СНО: Общий режим [20:51:18]line Чек 102 22.09.2024 20:51 [20:51:18]line Смена: 180 ФФД: 1.0 [20:51:18]line ЗНМ: 0300000010 [20:51:18]line РНМ: 0000000000152968 [20:51:18]line Версия ККМ: v1.0 [20:51:18]line ФМ: 0000000000959456 [20:51:18]line ФД: 18706 [20:51:18]line ФПД: 1459794579700 [20:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205118&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18706&fm=1459794579700&tin=02508201610067®Number=0000000000152968&sum=13000 [20:51:18]line 0 [20:51:18]OFD Sender: Processing packet 18706 [packets to send 7, broken 6] [20:51:18]ProducePacketName [20:51:18]name=ofd_packets/00018706 [20:51:18]OFD Sender: To server: pG, [20:51:18]CommunicateWithHost lk.salyk.kg:30040 [20:51:18]ConnectInit lk.salyk.kg [20:51:18]written 0, free lines is 4095 [20:51:18]Connected sock=11 [20:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 00 8F 20 01 DE 4D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 46 83 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 12 49 00 00 35 04 06 00 01 53 E2 89 90 F4 17 F4 FE E8 32 11 4F 64 [20:51:18]Write to MH i2c: 01 00 00 BC 09 C5 [20:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C8 11 47 00 01 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 12 49 00 00 F4 03 04 00 AC 2C F0 66 B6 04 01 00 00 A9 57 D6 FB 61 1B 2F 6F [20:51:18]CommunicateWithHost err = 0 [20:51:18]CheckOFDResponse [20:51:18]1017 (14) - 77093643461234 [20:51:18]1041 (16) - 0000000000959456 [20:51:18]1040 (4) - 18706 [20:51:18]1012 (4) - 22.09.2024 14:41 [20:51:18]1206 (1) - 0 [20:51:18]OFD Sender: Remove packet 18706 [20:51:18]ProducePacketName [20:51:18]name=ofd_packets/00018706 [20:51:18]NVStorageDeleteData [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 07 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 24 0D FD [20:51:18]RasterBufferAndPrint [20:51:18]line [20:51:18]line [20:51:18]line [20:51:18]line [20:51:18]line [20:51:18]written 0, free lines is 3377 [20:51:18]MH_Cut [20:51:18]Write to MH i2c: D1 01 00 C3 09 01 9E [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: D1 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: D1 01 00 [20:51:18]MH_I2C_Read... [20:51:18]Read from MH i2c: D1 01 00 C3 09 00 9D [20:51:18]Write to MH i2c: 01 00 00 C4 09 CD [20:51:18]Write i2c OK [20:51:18]MH_I2C_Read... [20:51:19]OFD Sender: No OFD packet to send [20:51:19]*** Cut start [20:51:19]*** Partial cut [20:51:19]*** CUTSNS_PIN = 1 [20:51:19]*** CUTSNS_PIN = 0 [20:51:19]*** Brake cut motor [20:51:20]Read from MH i2c: 01 [20:51:20]MH_I2C_Read... [20:51:20]*** Stop cut motor [20:51:20]*** Cut end [20:51:20]Read from MH i2c: 01 07 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [20:51:20]process_action close_receipt done [20:51:20]requested_data is exist [20:51:20]produce_requested_data [20:51:20]requested_item fm.sn is exist - process it [20:51:20]wFMCommunicate request_size=4 [20:51:20]MH_SAM_APDU [20:51:20]CAPDU: 80 11 00 00 [20:51:20]Write to MH i2c: E2 08 00 C5 09 80 11 00 00 00 00 00 00 48 [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:20]Read from MH i2c: E2 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 17 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 17 00 C5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A1 [20:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:51:20]wFMCommunicate OK [20:51:20]requested_item fd.num is exist - process it [20:51:20]SAM_PROTO_GetFieldsCounters [20:51:20]wFMCommunicate request_size=4 [20:51:20]MH_SAM_APDU [20:51:20]CAPDU: 80 13 00 00 [20:51:20]Write to MH i2c: E2 08 00 C6 09 80 13 00 00 00 00 00 00 4B [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:20]Read from MH i2c: E2 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 62 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 62 00 C6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 12 49 00 00 0E 04 04 00 B4 00 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 B9 [20:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 12 49 00 00 0E 04 04 00 B4 00 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 [20:51:20]wFMCommunicate OK [20:51:20]SAM_PROTO_GetFieldsCounters done [20:51:20]requested_item shift.num is exist - process it [20:51:20]requested_item shift.opened is exist - process it [20:51:20]req_shift_opened [20:51:20]FM_GetShiftState [20:51:20]SAM_PROTO_GetShiftState [20:51:20]wFMCommunicate request_size=4 [20:51:20]MH_SAM_APDU [20:51:20]CAPDU: 80 13 01 00 [20:51:20]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:20]Read from MH i2c: E2 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 0E 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0D [20:51:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:51:20]wFMCommunicate OK [20:51:20]SAM_PROTO_GetShiftState done [20:51:20]FM_GetShiftState done [20:51:20]req_shift_opened done [20:51:20]requested_item shift.open_date is exist - process it [20:51:20]req_shift_open_date [20:51:20]req_shift_open_date done [20:51:20]produce_requested_data done [20:51:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18706,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:51:20]process_action_free close_receipt [20:51:20]json_value_free [20:51:20]json_value_free done [20:51:20]process_json_proto returns [20:51:20]Send response to host [20:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18706,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:51:20]free response buf [20:51:20]execute_script done [20:51:20]execute_script returns [20:51:20]free content buf [20:51:20]Sock 8.Close socket [20:51:20]Sock 8.Thread stoped [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]accept exits with 9 [20:59:29]New connection [20:59:29]New thread 3067129188 created [20:59:29]Thread 3067272548 joined [20:59:29]Waiting for new connection... [20:59:29] Sock 9.Parse request [20:59:29]Sock 9.Check first char [20:59:29]Sock 9.First char is OK [20:59:29]request: POST /json_proto HTTP/1.0 [20:59:29]Method: POST [20:59:29]URL: /json_proto [20:59:29]Method is POST - this is cgi request [20:59:29]url: /json_proto [20:59:29]query_string will be loaded in cgi processing [20:59:29]execute_cgi json_proto POST (null) [20:59:29]execute_cgi path=json_proto method=POST [20:59:29]POST find Content-Length [20:59:29]Host: 172.17.62.196:8080 [20:59:29]Content-Length: 1278 [20:59:29]Content-Type: application/json [20:59:29] [20:59:29]POST finish read [20:59:29]Found Content-Length = 1278 [20:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16631", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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": "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 }]} ], "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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:29]execute_script... [20:59: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)16631", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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": "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 }]} ], "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" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:29]POST & json_proto [20:59:29]process_json_proto [20:59:29]json parsed OK: [20:59:29]protocol is kg_v1.0 [20:59:29]action value=close_receipt [20:59:29]process_action close_receipt [20:59:29]cmd_close_receipt [20:59:29]MH_GetDate [20:59:29]Write to MH i2c: F0 00 00 C8 09 C0 [20:59:29]Write i2c OK [20:59:29]MH_I2C_Read... [20:59:29]Read from MH i2c: F0 [20:59:29]MH_I2C_Read... [20:59:29]Read from MH i2c: F0 09 00 [20:59:29]MH_I2C_Read... [20:59:29]Read from MH i2c: F0 09 00 C8 09 00 33 85 F0 66 CE CC 0E 66 E5 [20:59:29]GetLastDocTimeStamp 1727038278 [20:59:29]current date 1727038771 [20:59:29]FM_GetShiftState [20:59:29]SAM_PROTO_GetShiftState [20:59:29]wFMCommunicate request_size=4 [20:59:29]MH_SAM_APDU [20:59:29]CAPDU: 80 13 01 00 [20:59:29]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [20:59:29]Write i2c OK [20:59:29]MH_I2C_Read... [20:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:29]Read from MH i2c: E2 [20:59:29]MH_I2C_Read... [20:59:29]Read from MH i2c: E2 0E 00 [20:59:29]MH_I2C_Read... [20:59:29]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0F [20:59:29]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:59:29]wFMCommunicate OK [20:59:29]SAM_PROTO_GetShiftState done [20:59:29]FM_GetShiftState done [20:59:29]opened in 1726963967 [20:59:29]opened+sec_in_day 1727050367 [20:59:29]quantity*price = 15600 [20:59:29]sum+1 = 15601 [20:59:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 246.00 НСП 1% : 2.17 НДС 12% : 26.13 Наличными: 0.00 Безнал.: 246.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 103 22.09.2024 20:59 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18707 ФПД: 248557870339814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205932&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18707&fm=248557870339814&tin=02508201610067®Number=0000000000152968&sum=24600 0 [20:59:30]StoreToDocumentArchive [20:59:30]shift 180 fd 18707 [20:59:30]save to /storage/0180/doc_00018707 [20:59:30]save last doc name /storage/0180/doc_00018707 to /storage/kkm_last_doc_name [20:59:30]save OK [20:59:30]Clear old archive folders... [20:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=474 [20:59:30]tlvbuf is 0019DDB0 [20:59:30]SAM_PROTO_ClearQueue [20:59:30]wFMCommunicate request_size=4 [20:59:30]MH_SAM_APDU [20:59:30]CAPDU: 80 09 00 00 [20:59:30]Write to MH i2c: E2 08 00 D6 09 80 09 00 00 00 00 00 00 51 [20:59:30]Write i2c OK [20:59:30]MH_I2C_Read... [20:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:30]Read from MH i2c: E2 [20:59:30]MH_I2C_Read... [20:59:30]Read from MH i2c: E2 03 00 [20:59:30]MH_I2C_Read... [20:59:30]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [20:59:30]RAPDU: 90 00 [20:59:30]wFMCommunicate OK [20:59:30]SAM_PROTO_ClearQueue done [20:59:30]KKMCreateOFDPacket [20:59:30]OFDProtocolAddRootSTLVToBuf [20:59:30]FM_MakeSignedData [20:59:30]FM_MakeSignedData [20:59:30]SAM_PROTO_SignData [20:59:30]wFMCommunicate request_size=4 [20:59:30]MH_SAM_APDU [20:59:30]CAPDU: 80 0D 01 02 [20:59:30]Write to MH i2c: E2 08 00 D7 09 80 0D 01 02 00 00 00 00 59 [20:59:30]Write i2c OK [20:59:30]MH_I2C_Read... [20:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:31]Read from MH i2c: E2 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [20:59:31]RAPDU: 90 00 [20:59:31]wFMCommunicate OK [20:59:31]wFMCommunicate request_size=255 [20:59:31]MH_SAM_APDU [20:59:31]CAPDU: 80 0D 02 02 FA 03 00 DA 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 [20:59:31]Write to MH i2c: E2 02 01 D8 09 80 0D 02 02 FA 00 03 00 DA 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 00 00 15 [20:59:31]Write i2c OK [20:59:31]MH_I2C_Read... [20:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:31]Read from MH i2c: E2 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [20:59:31]RAPDU: 90 00 [20:59:31]wFMCommunicate OK [20:59:31]wFMCommunicate request_size=233 [20:59:31]MH_SAM_APDU [20:59:31]CAPDU: 80 0D 02 02 E4 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 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 34 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 13 49 00 00 35 04 06 00 E2 0F E3 91 56 E6 [20:59:31]Write to MH i2c: E2 EC 00 D9 09 80 0D 02 02 E4 00 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 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 34 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 13 49 00 00 35 04 06 00 E2 0F E3 91 56 E6 00 00 DE [20:59:31]Write i2c OK [20:59:31]MH_I2C_Read... [20:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:31]Read from MH i2c: E2 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [20:59:31]RAPDU: 90 00 [20:59:31]wFMCommunicate OK [20:59:31]wFMCommunicate request_size=4 [20:59:31]MH_SAM_APDU [20:59:31]CAPDU: 80 0D 03 02 [20:59:31]Write to MH i2c: E2 08 00 DA 09 80 0D 03 02 00 00 00 00 5E [20:59:31]Write i2c OK [20:59:31]MH_I2C_Read... [20:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:31]Read from MH i2c: E2 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 0B 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 0B 00 DA 09 00 32 21 C5 BE 7A A8 83 CE 90 00 A8 [20:59:31]RAPDU: 32 21 C5 BE 7A A8 83 CE 90 00 [20:59:31]wFMCommunicate OK [20:59:31]SAM_PROTO_SignData done [20:59:31]FM_MakeSignedData done [20:59:31]CreateOFDProtocolMessage [20:59:31]wFMCommunicate request_size=4 [20:59:31]MH_SAM_APDU [20:59:31]CAPDU: 80 11 00 00 [20:59:31]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [20:59:31]Write i2c OK [20:59:31]MH_I2C_Read... [20:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:31]Read from MH i2c: E2 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 17 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B7 [20:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:59:31]wFMCommunicate OK [20:59:31]CreateOFDProtocolMessage done [20:59:31]OFDSenderStorePacket 18707 [20:59:31]StoreOFDPacket docnum=18707 [20:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 EE 01 00 00 9E 93 E6 01 AA FC 5A 03 01 00 03 00 DA 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 34 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 13 49 00 00 35 04 06 00 E2 0F E3 91 56 E6 32 21 C5 BE 7A A8 83 CE [20:59:31]CheckFolder [20:59:31]dirname=/storage/ofd_packets [20:59:31]CheckFolder done [20:59:31]ProducePacketName [20:59:31]name=ofd_packets/00018707 [20:59:31]NVStorageSaveData ofd_packets/00018707 [20:59:31]File name is /storage/ofd_packets/00018707 [20:59:31]Write 524 bytes [20:59:31]NVStorageSaveData done [20:59:31]OFDSenderStorePacket done [20:59:31]KKMCreateOFDPacket done [20:59:31]NVStorageSaveData kkm_last_timestamp [20:59:31]File name is /storage/kkm_last_timestamp [20:59:31]Write 4 bytes [20:59:31]NVStorageSaveData done [20:59:31]ExternCall_PrintAddStr [20:59:31]wPrintStart [20:59:31]Write to MH i2c: 01 00 00 DC 09 E5 [20:59:31]Write i2c OK [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: 01 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: 01 07 00 [20:59:31]MH_I2C_Read... [20:59:31]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 FF 0F FA [20:59:31]RasterBufferAndPrint [20:59:31]line Счет N : (3)16631 [20:59:31]line ИНН: 02508201610067 [20:59:31]line Контрольно-Кассовый Чек [20:59:31]line ПРОДАЖА [20:59:31]line Товар: 48741958 [20:59:31]line Сигареты Parliament Aqua Blue [20:59:31]line 1.000 * 156.00 [20:59:31]line = 156.00 [20:59:31]line НДС 12% НСП 1% [20:59:31]line > о реализуемом товаре [20:59:31]line Товар: 4700000160358 [20:59:31]line Вода Легенда 1л [20:59:31]line 1.000 * 50.00 [20:59:31]line = 50.00 [20:59:31]line НДС 12% НСП 1% [20:59:31]line > о реализуемом товаре [20:59:31]line Товар: 4700000160211 [20:59:31]line Вода Легенда 0,5л [20:59:31]line 1.000 * 40.00 [20:59:31]line = 40.00 [20:59:31]line НДС 12% НСП 1% [20:59:31]line > о реализуемом товаре [20:59:31]line ИТОГО: 246.00 [20:59:31]line НСП 1% : 2.17 [20:59:31]line НДС 12% : 26.13 [20:59:31]line Наличными: 0.00 [20:59:31]line Безнал.: 246.00 [20:59:31]line Место: АЗС № 176 "Партнер Нефть" [20:59:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:59:31]line СНО: Общий режим [20:59:31]line Чек 103 22.09.2024 20:59 [20:59:31]line Смена: 180 ФФД: 1.0 [20:59:31]line ЗНМ: 0300000010 [20:59:31]line РНМ: 0000000000152968 [20:59:31]line Версия ККМ: v1.0 [20:59:31]line Платежная система: O! деньги [20:59:31]line ФМ: 0000000000959456 [20:59:31]line ФД: 18707 [20:59:31]line ФПД: 248557870339814 [20:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205932&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18707&fm=248557870339814&tin=02508201610067®Number=0000000000152968&sum=24600 [20:59:31]line 0 [20:59:31]written 0, free lines is 4095 [20:59:31]OFD Sender: Processing packet 18707 [packets to send 7, broken 6] [20:59:31]ProducePacketName [20:59:31]name=ofd_packets/00018707 [20:59:31]OFD Sender: To server: pG, [20:59:31]CommunicateWithHost lk.salyk.kg:30040 [20:59:31]ConnectInit lk.salyk.kg [20:59:32]Connected sock=10 [20:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 EE 01 00 00 9E 93 E6 01 AA FC 5A 03 01 00 03 00 DA 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 34 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 13 49 00 00 35 04 06 00 E2 0F E3 91 56 E6 32 21 C5 BE 7A A8 83 CE [20:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 DA D7 47 00 69 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 39 35 39 34 35 36 10 04 04 00 13 49 00 00 F4 03 04 00 9A 2E F0 66 B6 04 01 00 00 10 8C E6 BF 6B 12 5E DB [20:59:32]CommunicateWithHost err = 0 [20:59:32]CheckOFDResponse [20:59:32]1017 (14) - 77093643461234 [20:59:32]1041 (16) - 0000000000959456 [20:59:32]1040 (4) - 18707 [20:59:32]1012 (4) - 22.09.2024 14:50 [20:59:32]1206 (1) - 0 [20:59:32]OFD Sender: Remove packet 18707 [20:59:32]ProducePacketName [20:59:32]name=ofd_packets/00018707 [20:59:32]NVStorageDeleteData [20:59:32]Write to MH i2c: 01 00 00 13 0A 1D [20:59:32]Write i2c OK [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: 01 [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: 01 07 00 [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: 01 07 00 13 0A 00 00 00 00 00 46 0C 76 [20:59:32]RasterBufferAndPrint [20:59:32]line [20:59:32]line [20:59:32]line [20:59:32]line [20:59:32]line [20:59:32]written 0, free lines is 3152 [20:59:32]MH_Cut [20:59:32]Write to MH i2c: D1 01 00 1A 0A 01 F6 [20:59:32]Write i2c OK [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: D1 [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: D1 01 00 [20:59:32]MH_I2C_Read... [20:59:32]Read from MH i2c: D1 01 00 1A 0A 00 F5 [20:59:32]Write to MH i2c: 01 00 00 1B 0A 25 [20:59:32]Write i2c OK [20:59:32]MH_I2C_Read... [20:59:32]OFD Sender: No OFD packet to send [20:59:33]*** Cut start [20:59:33]*** Partial cut [20:59:33]*** CUTSNS_PIN = 1 [20:59:33]*** CUTSNS_PIN = 0 [20:59:33]*** Brake cut motor [20:59:33]Read from MH i2c: 01 [20:59:33]MH_I2C_Read... [20:59:33]*** Stop cut motor [20:59:33]*** Cut end [20:59:33]Read from MH i2c: 01 07 00 [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [20:59:33]process_action close_receipt done [20:59:33]requested_data is exist [20:59:33]produce_requested_data [20:59:33]requested_item fm.sn is exist - process it [20:59:33]wFMCommunicate request_size=4 [20:59:33]MH_SAM_APDU [20:59:33]CAPDU: 80 11 00 00 [20:59:33]Write to MH i2c: E2 08 00 1C 0A 80 11 00 00 00 00 00 00 A0 [20:59:33]Write i2c OK [20:59:33]MH_I2C_Read... [20:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:33]Read from MH i2c: E2 [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: E2 17 00 [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: E2 17 00 1C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F9 [20:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:59:33]wFMCommunicate OK [20:59:33]requested_item fd.num is exist - process it [20:59:33]SAM_PROTO_GetFieldsCounters [20:59:33]wFMCommunicate request_size=4 [20:59:33]MH_SAM_APDU [20:59:33]CAPDU: 80 13 00 00 [20:59:33]Write to MH i2c: E2 08 00 1D 0A 80 13 00 00 00 00 00 00 A3 [20:59:33]Write i2c OK [20:59:33]MH_I2C_Read... [20:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:34]Read from MH i2c: E2 [20:59:34]MH_I2C_Read... [20:59:34]Read from MH i2c: E2 62 00 [20:59:34]MH_I2C_Read... [20:59:34]Read from MH i2c: E2 62 00 1D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 13 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [20:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 13 49 00 00 0E 04 04 00 B4 00 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 [20:59:34]wFMCommunicate OK [20:59:34]SAM_PROTO_GetFieldsCounters done [20:59:34]requested_item shift.num is exist - process it [20:59:34]requested_item shift.opened is exist - process it [20:59:34]req_shift_opened [20:59:34]FM_GetShiftState [20:59:34]SAM_PROTO_GetShiftState [20:59:34]wFMCommunicate request_size=4 [20:59:34]MH_SAM_APDU [20:59:34]CAPDU: 80 13 01 00 [20:59:34]Write to MH i2c: E2 08 00 1E 0A 80 13 01 00 00 00 00 00 A5 [20:59:34]Write i2c OK [20:59:34]MH_I2C_Read... [20:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:34]Read from MH i2c: E2 [20:59:34]MH_I2C_Read... [20:59:34]Read from MH i2c: E2 0E 00 [20:59:34]MH_I2C_Read... [20:59:34]Read from MH i2c: E2 0E 00 1E 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 65 [20:59:34]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [20:59:34]wFMCommunicate OK [20:59:34]SAM_PROTO_GetShiftState done [20:59:34]FM_GetShiftState done [20:59:34]req_shift_opened done [20:59:34]requested_item shift.open_date is exist - process it [20:59:34]req_shift_open_date [20:59:34]req_shift_open_date done [20:59:34]produce_requested_data done [20:59:34]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18707,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [20:59:34]process_action_free close_receipt [20:59:34]json_value_free [20:59:34]json_value_free done [20:59:34]process_json_proto returns [20:59:34]Send response to host [20:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18707,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [20:59:34]free response buf [20:59:34]execute_script done [20:59:34]execute_script returns [20:59:34]free content buf [20:59:34]Sock 9.Close socket [20:59:34]Sock 9.Thread stoped [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:13]accept exits with 8 [21:00:13]New connection [21:00:13]New thread 3067272548 created [21:00:13]Thread 3067129188 joined [21:00:13]Waiting for new connection... [21:00:13] Sock 8.Parse request [21:00:13]Sock 8.Check first char [21:00:13]Sock 8.First char is OK [21:00:13]request: POST /json_proto HTTP/1.0 [21:00:13]Method: POST [21:00:13]URL: /json_proto [21:00:13]Method is POST - this is cgi request [21:00:13]url: /json_proto [21:00:13]query_string will be loaded in cgi processing [21:00:13]execute_cgi json_proto POST (null) [21:00:13]execute_cgi path=json_proto method=POST [21:00:13]POST find Content-Length [21:00:13]Host: 172.17.62.196:8080 [21:00:13]Content-Length: 651 [21:00:13]Content-Type: application/json [21:00:13] [21:00:13]POST finish read [21:00:13]Found Content-Length = 651 [21:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16632", "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" ] } } [21:00:13]execute_script... [21:00: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)16632", "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" ] } } [21:00:13]POST & json_proto [21:00:13]process_json_proto [21:00:13]json parsed OK: [21:00:13]protocol is kg_v1.0 [21:00:13]action value=close_receipt [21:00:13]process_action close_receipt [21:00:13]cmd_close_receipt [21:00:13]MH_GetDate [21:00:13]Write to MH i2c: F0 00 00 1F 0A 18 [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: F0 09 00 1F 0A 00 5F 85 F0 66 CE CC 0E 66 69 [21:00:13]GetLastDocTimeStamp 1727038772 [21:00:13]current date 1727038815 [21:00:13]FM_GetShiftState [21:00:13]SAM_PROTO_GetShiftState [21:00:13]wFMCommunicate request_size=4 [21:00:13]MH_SAM_APDU [21:00:13]CAPDU: 80 13 01 00 [21:00:13]Write to MH i2c: E2 08 00 20 0A 80 13 01 00 00 00 00 00 A7 [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:13]Read from MH i2c: E2 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 20 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 67 [21:00:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:00:13]wFMCommunicate OK [21:00:13]SAM_PROTO_GetShiftState done [21:00:13]FM_GetShiftState done [21:00:13]opened in 1726963967 [21:00:13]opened+sec_in_day 1727050367 [21:00:13]quantity*price = 12500 [21:00:13]sum+1 = 12501 [21:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 104 22.09.2024 21:00 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18708 ФПД: 99730281869430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210015&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18708&fm=99730281869430&tin=02508201610067®Number=0000000000152968&sum=12500 0 [21:00:14]StoreToDocumentArchive [21:00:14]shift 180 fd 18708 [21:00:14]save to /storage/0180/doc_00018708 [21:00:14]save last doc name /storage/0180/doc_00018708 to /storage/kkm_last_doc_name [21:00:14]save OK [21:00:14]Clear old archive folders... [21:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:00:14]tlvbuf is 001ECB00 [21:00:14]SAM_PROTO_ClearQueue [21:00:14]wFMCommunicate request_size=4 [21:00:14]MH_SAM_APDU [21:00:14]CAPDU: 80 09 00 00 [21:00:14]Write to MH i2c: E2 08 00 2D 0A 80 09 00 00 00 00 00 00 A9 [21:00:14]Write i2c OK [21:00:14]MH_I2C_Read... [21:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:14]Read from MH i2c: E2 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [21:00:14]RAPDU: 90 00 [21:00:14]wFMCommunicate OK [21:00:14]SAM_PROTO_ClearQueue done [21:00:14]KKMCreateOFDPacket [21:00:14]OFDProtocolAddRootSTLVToBuf [21:00:14]FM_MakeSignedData [21:00:14]FM_MakeSignedData [21:00:14]SAM_PROTO_SignData [21:00:14]wFMCommunicate request_size=4 [21:00:14]MH_SAM_APDU [21:00:14]CAPDU: 80 0D 01 02 [21:00:14]Write to MH i2c: E2 08 00 2E 0A 80 0D 01 02 00 00 00 00 B1 [21:00:14]Write i2c OK [21:00:14]MH_I2C_Read... [21:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:14]Read from MH i2c: E2 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [21:00:14]RAPDU: 90 00 [21:00:14]wFMCommunicate OK [21:00:14]wFMCommunicate request_size=255 [21:00:14]MH_SAM_APDU [21:00:14]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 68 00 00 00 F4 03 04 00 5F 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [21:00:14]Write to MH i2c: E2 02 01 2F 0A 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 68 00 00 00 F4 03 04 00 5F 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 AF [21:00:14]Write i2c OK [21:00:14]MH_I2C_Read... [21:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:14]Read from MH i2c: E2 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 [21:00:14]MH_I2C_Read... [21:00:14]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [21:00:14]RAPDU: 90 00 [21:00:14]wFMCommunicate OK [21:00:14]wFMCommunicate request_size=43 [21:00:14]MH_SAM_APDU [21:00:14]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 14 49 00 00 35 04 06 00 5A B4 44 06 30 76 [21:00:14]Write to MH i2c: E2 2E 00 30 0A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 14 49 00 00 35 04 06 00 5A B4 44 06 30 76 00 00 FD [21:00:14]Write i2c OK [21:00:14]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [21:00:15]RAPDU: 90 00 [21:00:15]wFMCommunicate OK [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 0D 03 02 [21:00:15]Write to MH i2c: E2 08 00 31 0A 80 0D 03 02 00 00 00 00 B6 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 0B 00 31 0A 00 DB 29 A4 B2 6A 24 55 84 90 00 78 [21:00:15]RAPDU: DB 29 A4 B2 6A 24 55 84 90 00 [21:00:15]wFMCommunicate OK [21:00:15]SAM_PROTO_SignData done [21:00:15]FM_MakeSignedData done [21:00:15]CreateOFDProtocolMessage [21:00:15]wFMCommunicate request_size=4 [21:00:15]MH_SAM_APDU [21:00:15]CAPDU: 80 11 00 00 [21:00:15]Write to MH i2c: E2 08 00 32 0A 80 11 00 00 00 00 00 00 B6 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:15]Read from MH i2c: E2 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: E2 17 00 32 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0F [21:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:00:15]wFMCommunicate OK [21:00:15]CreateOFDProtocolMessage done [21:00:15]OFDSenderStorePacket 18708 [21:00:15]StoreOFDPacket docnum=18708 [21:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 2F FA 28 01 6B 3C 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 68 00 00 00 F4 03 04 00 5F 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 14 49 00 00 35 04 06 00 5A B4 44 06 30 76 DB 29 A4 B2 6A 24 55 84 [21:00:15]CheckFolder [21:00:15]dirname=/storage/ofd_packets [21:00:15]CheckFolder done [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00018708 [21:00:15]NVStorageSaveData ofd_packets/00018708 [21:00:15]File name is /storage/ofd_packets/00018708 [21:00:15]Write 334 bytes [21:00:15]NVStorageSaveData done [21:00:15]OFDSenderStorePacket done [21:00:15]KKMCreateOFDPacket done [21:00:15]NVStorageSaveData kkm_last_timestamp [21:00:15]File name is /storage/kkm_last_timestamp [21:00:15]Write 4 bytes [21:00:15]NVStorageSaveData done [21:00:15]ExternCall_PrintAddStr [21:00:15]wPrintStart [21:00:15]Write to MH i2c: 01 00 00 33 0A 3D [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 FF 0F 52 [21:00:15]RasterBufferAndPrint [21:00:15]line Счет N : (3)16632 [21:00:15]line ИНН: 02508201610067 [21:00:15]line Контрольно-Кассовый Чек [21:00:15]line ПРОДАЖА [21:00:15]line Товар: 2000036190018 [21:00:15]line Кофе Американо XL(GABB TRADE) [21:00:15]line 1.000 * 125.00 [21:00:15]line = 125.00 [21:00:15]line НДС 12% НСП 1% [21:00:15]line > о реализуемом товаре [21:00:15]line ИТОГО: 125.00 [21:00:15]line НСП 1% : 1.11 [21:00:15]line НДС 12% : 13.27 [21:00:15]line Наличными: 125.00 [21:00:15]line Безнал.: 0.00 [21:00:15]line Место: АЗС № 176 "Партнер Нефть" [21:00:15]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:00:15]line СНО: Общий режим [21:00:15]line Чек 104 22.09.2024 21:00 [21:00:15]line Смена: 180 ФФД: 1.0 [21:00:15]line ЗНМ: 0300000010 [21:00:15]line РНМ: 0000000000152968 [21:00:15]line Версия ККМ: v1.0 [21:00:15]line ФМ: 0000000000959456 [21:00:15]line ФД: 18708 [21:00:15]line ФПД: 99730281869430 [21:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210015&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18708&fm=99730281869430&tin=02508201610067®Number=0000000000152968&sum=12500 [21:00:15]line 0 [21:00:15]OFD Sender: Processing packet 18708 [packets to send 7, broken 6] [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00018708 [21:00:15]OFD Sender: To server: pG, [21:00:15]CommunicateWithHost lk.salyk.kg:30040 [21:00:15]ConnectInit lk.salyk.kg [21:00:15]written 0, free lines is 4095 [21:00:15]Connected sock=10 [21:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 2F FA 28 01 6B 3C 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 68 00 00 00 F4 03 04 00 5F 85 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 14 49 00 00 35 04 06 00 5A B4 44 06 30 76 DB 29 A4 B2 6A 24 55 84 [21:00:15]Write to MH i2c: 01 00 00 5C 0A 66 [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 04 0D 7E [21:00:15]RasterBufferAndPrint [21:00:15]line [21:00:15]line [21:00:15]line [21:00:15]line [21:00:15]line [21:00:15]written 0, free lines is 3341 [21:00:15]MH_Cut [21:00:15]Write to MH i2c: D1 01 00 63 0A 01 3F [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: D1 [21:00:15]MH_I2C_Read... [21:00:15]Read from MH i2c: D1 01 00 [21:00:15]MH_I2C_Read... [21:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BB 6D 47 00 4E 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 14 49 00 00 F4 03 04 00 C5 2E F0 66 B6 04 01 00 00 AF 33 C8 12 5E DE 96 34 [21:00:15]CommunicateWithHost err = 0 [21:00:15]CheckOFDResponse [21:00:15]1017 (14) - 77093643461234 [21:00:15]1041 (16) - 0000000000959456 [21:00:15]1040 (4) - 18708 [21:00:15]1012 (4) - 22.09.2024 14:50 [21:00:15]1206 (1) - 0 [21:00:15]OFD Sender: Remove packet 18708 [21:00:15]ProducePacketName [21:00:15]name=ofd_packets/00018708 [21:00:15]NVStorageDeleteData [21:00:15]Read from MH i2c: D1 01 00 63 0A 00 3E [21:00:15]Write to MH i2c: 01 00 00 64 0A 6E [21:00:15]Write i2c OK [21:00:15]MH_I2C_Read... [21:00:16]OFD Sender: No OFD packet to send [21:00:16]*** Cut start [21:00:16]*** Partial cut [21:00:16]*** CUTSNS_PIN = 1 [21:00:16]*** CUTSNS_PIN = 0 [21:00:16]*** Brake cut motor [21:00:17]Read from MH i2c: 01 [21:00:17]MH_I2C_Read... [21:00:17]*** Stop cut motor [21:00:17]*** Cut end [21:00:17]Read from MH i2c: 01 07 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [21:00:17]process_action close_receipt done [21:00:17]requested_data is exist [21:00:17]produce_requested_data [21:00:17]requested_item fm.sn is exist - process it [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 11 00 00 [21:00:17]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 17 00 65 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 42 [21:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:00:17]wFMCommunicate OK [21:00:17]requested_item fd.num is exist - process it [21:00:17]SAM_PROTO_GetFieldsCounters [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 00 00 [21:00:17]Write to MH i2c: E2 08 00 66 0A 80 13 00 00 00 00 00 00 EC [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 62 00 66 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 14 49 00 00 0E 04 04 00 B4 00 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 62 [21:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 14 49 00 00 0E 04 04 00 B4 00 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 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetFieldsCounters done [21:00:17]requested_item shift.num is exist - process it [21:00:17]requested_item shift.opened is exist - process it [21:00:17]req_shift_opened [21:00:17]FM_GetShiftState [21:00:17]SAM_PROTO_GetShiftState [21:00:17]wFMCommunicate request_size=4 [21:00:17]MH_SAM_APDU [21:00:17]CAPDU: 80 13 01 00 [21:00:17]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [21:00:17]Write i2c OK [21:00:17]MH_I2C_Read... [21:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:17]Read from MH i2c: E2 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 [21:00:17]MH_I2C_Read... [21:00:17]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 AE [21:00:17]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:00:17]wFMCommunicate OK [21:00:17]SAM_PROTO_GetShiftState done [21:00:17]FM_GetShiftState done [21:00:17]req_shift_opened done [21:00:17]requested_item shift.open_date is exist - process it [21:00:17]req_shift_open_date [21:00:17]req_shift_open_date done [21:00:17]produce_requested_data done [21:00:17]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18708,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [21:00:17]process_action_free close_receipt [21:00:17]json_value_free [21:00:17]json_value_free done [21:00:17]process_json_proto returns [21:00:17]Send response to host [21:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18708,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [21:00:17]free response buf [21:00:17]execute_script done [21:00:17]execute_script returns [21:00:17]free content buf [21:00:17]Sock 8.Close socket [21:00:17]Sock 8.Thread stoped [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:30]accept exits with 9 [21:17:30]New connection [21:17:30]New thread 3067129188 created [21:17:30]Thread 3067272548 joined [21:17:30]Waiting for new connection... [21:17:30] Sock 9.Parse request [21:17:30]Sock 9.Check first char [21:17:30]Sock 9.First char is OK [21:17:30]request: POST /json_proto HTTP/1.0 [21:17:30]Method: POST [21:17:30]URL: /json_proto [21:17:30]Method is POST - this is cgi request [21:17:30]url: /json_proto [21:17:30]query_string will be loaded in cgi processing [21:17:30]execute_cgi json_proto POST (null) [21:17:30]execute_cgi path=json_proto method=POST [21:17:30]POST find Content-Length [21:17:30]Host: 172.17.62.196:8080 [21:17:30]Content-Length: 1128 [21:17:30]Content-Type: application/json [21:17:30] [21:17:30]POST finish read [21:17:30]Found Content-Length = 1128 [21:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16633", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:30]execute_script... [21:17: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)16633", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:30]POST & json_proto [21:17:30]process_json_proto [21:17:30]json parsed OK: [21:17:30]protocol is kg_v1.0 [21:17:30]action value=close_receipt [21:17:30]process_action close_receipt [21:17:30]cmd_close_receipt [21:17:30]MH_GetDate [21:17:30]Write to MH i2c: F0 00 00 68 0A 61 [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 09 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: F0 09 00 68 0A 00 6C 89 F0 66 CE CC 0E 66 C3 [21:17:30]GetLastDocTimeStamp 1727038815 [21:17:30]current date 1727039852 [21:17:30]FM_GetShiftState [21:17:30]SAM_PROTO_GetShiftState [21:17:30]wFMCommunicate request_size=4 [21:17:30]MH_SAM_APDU [21:17:30]CAPDU: 80 13 01 00 [21:17:30]Write to MH i2c: E2 08 00 69 0A 80 13 01 00 00 00 00 00 F0 [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:30]Read from MH i2c: E2 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: E2 0E 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: E2 0E 00 69 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B0 [21:17:30]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:17:30]wFMCommunicate OK [21:17:30]SAM_PROTO_GetShiftState done [21:17:30]FM_GetShiftState done [21:17:30]opened in 1726963967 [21:17:30]opened+sec_in_day 1727050367 [21:17:30]quantity*price = 4500 [21:17:30]sum+1 = 4501 [21:17:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 105 22.09.2024 21:17 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18709 ФПД: 176894507609356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211732&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18709&fm=176894507609356&tin=02508201610067®Number=0000000000152968&sum=12000 0 [21:17:31]StoreToDocumentArchive [21:17:31]shift 180 fd 18709 [21:17:31]save to /storage/0180/doc_00018709 [21:17:31]save last doc name /storage/0180/doc_00018709 to /storage/kkm_last_doc_name [21:17:31]save OK [21:17:31]Clear old archive folders... [21:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=410 [21:17:31]tlvbuf is 001D17E0 [21:17:31]SAM_PROTO_ClearQueue [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 09 00 00 [21:17:31]Write to MH i2c: E2 08 00 76 0A 80 09 00 00 00 00 00 00 F2 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:31]Read from MH i2c: E2 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [21:17:31]RAPDU: 90 00 [21:17:31]wFMCommunicate OK [21:17:31]SAM_PROTO_ClearQueue done [21:17:31]KKMCreateOFDPacket [21:17:31]OFDProtocolAddRootSTLVToBuf [21:17:31]FM_MakeSignedData [21:17:31]FM_MakeSignedData [21:17:31]SAM_PROTO_SignData [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 0D 01 02 [21:17:31]Write to MH i2c: E2 08 00 77 0A 80 0D 01 02 00 00 00 00 FA [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:31]Read from MH i2c: E2 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [21:17:31]RAPDU: 90 00 [21:17:31]wFMCommunicate OK [21:17:31]wFMCommunicate request_size=255 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 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 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 [21:17:31]Write to MH i2c: E2 02 01 78 0A 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 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 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 00 00 85 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [21:17:32]RAPDU: 90 00 [21:17:32]wFMCommunicate OK [21:17:32]wFMCommunicate request_size=169 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 0D 02 02 A4 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 89 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 15 49 00 00 35 04 06 00 A0 E2 76 49 ED 0C [21:17:32]Write to MH i2c: E2 AC 00 79 0A 80 0D 02 02 A4 00 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 89 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 15 49 00 00 35 04 06 00 A0 E2 76 49 ED 0C 00 00 1B [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]OFD Sender: No OFD packet to send [21:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [21:17:32]RAPDU: 90 00 [21:17:32]wFMCommunicate OK [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 0D 03 02 [21:17:32]Write to MH i2c: E2 08 00 7A 0A 80 0D 03 02 00 00 00 00 FF [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0B 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0B 00 7A 0A 00 B5 1A 28 11 E7 4F 7A 23 90 00 DB [21:17:32]RAPDU: B5 1A 28 11 E7 4F 7A 23 90 00 [21:17:32]wFMCommunicate OK [21:17:32]SAM_PROTO_SignData done [21:17:32]FM_MakeSignedData done [21:17:32]CreateOFDProtocolMessage [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 11 00 00 [21:17:32]Write to MH i2c: E2 08 00 7B 0A 80 11 00 00 00 00 00 00 FF [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 17 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 17 00 7B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 58 [21:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:17:32]wFMCommunicate OK [21:17:32]CreateOFDProtocolMessage done [21:17:32]OFDSenderStorePacket 18709 [21:17:32]StoreOFDPacket docnum=18709 [21:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 AE 01 00 00 92 C4 A6 01 C7 E2 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 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 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 89 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 15 49 00 00 35 04 06 00 A0 E2 76 49 ED 0C B5 1A 28 11 E7 4F 7A 23 [21:17:32]CheckFolder [21:17:32]dirname=/storage/ofd_packets [21:17:32]CheckFolder done [21:17:32]ProducePacketName [21:17:32]name=ofd_packets/00018709 [21:17:32]NVStorageSaveData ofd_packets/00018709 [21:17:32]File name is /storage/ofd_packets/00018709 [21:17:32]Write 460 bytes [21:17:32]NVStorageSaveData done [21:17:32]OFDSenderStorePacket done [21:17:32]KKMCreateOFDPacket done [21:17:32]NVStorageSaveData kkm_last_timestamp [21:17:32]File name is /storage/kkm_last_timestamp [21:17:32]Write 4 bytes [21:17:32]NVStorageSaveData done [21:17:32]ExternCall_PrintAddStr [21:17:32]wPrintStart [21:17:32]Write to MH i2c: 01 00 00 7C 0A 86 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [21:17:32]RasterBufferAndPrint [21:17:32]line Счет N : (3)16633 [21:17:32]line ИНН: 02508201610067 [21:17:32]line Контрольно-Кассовый Чек [21:17:32]line ПРОДАЖА [21:17:32]line Товар: 4823063106498 [21:17:32]line Садочок 0,2 Яблочный сок 1/200 [21:17:32]line 1.000 * 45.00 [21:17:32]line = 45.00 [21:17:32]line НДС 12% НСП 1% [21:17:32]line > о реализуемом товаре [21:17:32]line Товар: 4870001154059 [21:17:32]line Напиток Lipton IceTea 0,5л зел чай [21:17:32]line 1.000 * 75.00 [21:17:32]line = 75.00 [21:17:32]line НДС 12% НСП 1% [21:17:32]line > о реализуемом товаре [21:17:32]line ИТОГО: 120.00 [21:17:32]line НСП 1% : 1.06 [21:17:32]line НДС 12% : 12.74 [21:17:32]line Наличными: 0.00 [21:17:32]line Безнал.: 120.00 [21:17:32]line Место: АЗС № 176 "Партнер Нефть" [21:17:32]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:17:32]line СНО: Общий режим [21:17:32]line Чек 105 22.09.2024 21:17 [21:17:32]line Смена: 180 ФФД: 1.0 [21:17:32]line ЗНМ: 0300000010 [21:17:32]line РНМ: 0000000000152968 [21:17:32]line Версия ККМ: v1.0 [21:17:32]line Платежная система: Бакай Банк [21:17:32]line ФМ: 0000000000959456 [21:17:32]line ФД: 18709 [21:17:32]line ФПД: 176894507609356 [21:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T211732&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18709&fm=176894507609356&tin=02508201610067®Number=0000000000152968&sum=12000 [21:17:32]line 0 [21:17:32]written 0, free lines is 4095 [21:17:32]OFD Sender: Processing packet 18709 [packets to send 7, broken 6] [21:17:32]ProducePacketName [21:17:32]name=ofd_packets/00018709 [21:17:32]OFD Sender: To server: pG, [21:17:32]CommunicateWithHost lk.salyk.kg:30040 [21:17:32]ConnectInit lk.salyk.kg [21:17:33]Connected sock=11 [21:17:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 AE 01 00 00 92 C4 A6 01 C7 E2 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 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 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 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 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 89 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 15 49 00 00 35 04 06 00 A0 E2 76 49 ED 0C B5 1A 28 11 E7 4F 7A 23 [21:17:33]Write to MH i2c: 01 00 00 AE 0A B8 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 8B 0C 56 [21:17:33]RasterBufferAndPrint [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]line [21:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7F A3 47 00 95 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 15 49 00 00 F4 03 04 00 D3 32 F0 66 B6 04 01 00 00 F9 19 35 D6 2B CB 12 23 [21:17:33]CommunicateWithHost err = 0 [21:17:33]CheckOFDResponse [21:17:33]1017 (14) - 77093643461234 [21:17:33]1041 (16) - 0000000000959456 [21:17:33]1040 (4) - 18709 [21:17:33]1012 (4) - 22.09.2024 15:08 [21:17:33]1206 (1) - 0 [21:17:33]OFD Sender: Remove packet 18709 [21:17:33]ProducePacketName [21:17:33]name=ofd_packets/00018709 [21:17:33]NVStorageDeleteData [21:17:33]written 0, free lines is 3217 [21:17:33]MH_Cut [21:17:33]Write to MH i2c: D1 01 00 B5 0A 01 91 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 01 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: D1 01 00 B5 0A 00 90 [21:17:33]Write to MH i2c: 01 00 00 B6 0A C0 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]OFD Sender: No OFD packet to send [21:17:34]*** Cut start [21:17:34]*** Partial cut [21:17:34]*** CUTSNS_PIN = 1 [21:17:34]*** CUTSNS_PIN = 0 [21:17:34]*** Brake cut motor [21:17:34]Read from MH i2c: 01 [21:17:34]MH_I2C_Read... [21:17:34]*** Stop cut motor [21:17:34]*** Cut end [21:17:34]Read from MH i2c: 01 07 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [21:17:34]process_action close_receipt done [21:17:34]requested_data is exist [21:17:34]produce_requested_data [21:17:34]requested_item fm.sn is exist - process it [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 11 00 00 [21:17:34]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 17 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 94 [21:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:17:34]wFMCommunicate OK [21:17:34]requested_item fd.num is exist - process it [21:17:34]SAM_PROTO_GetFieldsCounters [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 13 00 00 [21:17:34]Write to MH i2c: E2 08 00 B8 0A 80 13 00 00 00 00 00 00 3E [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 62 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 62 00 B8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 15 49 00 00 0E 04 04 00 B4 00 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 B8 [21:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 15 49 00 00 0E 04 04 00 B4 00 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 [21:17:34]wFMCommunicate OK [21:17:34]SAM_PROTO_GetFieldsCounters done [21:17:34]requested_item shift.num is exist - process it [21:17:34]requested_item shift.opened is exist - process it [21:17:34]req_shift_opened [21:17:34]FM_GetShiftState [21:17:34]SAM_PROTO_GetShiftState [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 13 01 00 [21:17:34]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 00 [21:17:34]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:17:34]wFMCommunicate OK [21:17:34]SAM_PROTO_GetShiftState done [21:17:34]FM_GetShiftState done [21:17:34]req_shift_opened done [21:17:34]requested_item shift.open_date is exist - process it [21:17:34]req_shift_open_date [21:17:34]req_shift_open_date done [21:17:34]produce_requested_data done [21:17:34]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18709,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [21:17:34]process_action_free close_receipt [21:17:34]json_value_free [21:17:34]json_value_free done [21:17:34]process_json_proto returns [21:17:34]Send response to host [21:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18709,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [21:17:34]free response buf [21:17:34]execute_script done [21:17:34]execute_script returns [21:17:34]free content buf [21:17:34]Sock 9.Close socket [21:17:34]Sock 9.Thread stoped [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24: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: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:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [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:15]accept exits with 8 [21:40:15]New connection [21:40:15]New thread 3067272548 created [21:40:15]Thread 3067129188 joined [21:40:15]Waiting for new connection... [21:40:15] Sock 8.Parse request [21:40:15]Sock 8.Check first char [21:40:15]Sock 8.First char is OK [21:40:15]request: POST /json_proto HTTP/1.0 [21:40:15]Method: POST [21:40:15]URL: /json_proto [21:40:15]Method is POST - this is cgi request [21:40:15]url: /json_proto [21:40:15]query_string will be loaded in cgi processing [21:40:15]execute_cgi json_proto POST (null) [21:40:15]execute_cgi path=json_proto method=POST [21:40:15]POST find Content-Length [21:40:15]Host: 172.17.62.196:8080 [21:40:15]Content-Length: 627 [21:40:15]Content-Type: application/json [21:40:15] [21:40:15]POST finish read [21:40:15]Found Content-Length = 627 [21:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16634", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:15]execute_script... [21:40: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)16634", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:15]POST & json_proto [21:40:15]process_json_proto [21:40:15]json parsed OK: [21:40:15]protocol is kg_v1.0 [21:40:15]action value=close_receipt [21:40:15]process_action close_receipt [21:40:15]cmd_close_receipt [21:40:15]MH_GetDate [21:40:15]Write to MH i2c: F0 00 00 BA 0A B3 [21:40:15]Write i2c OK [21:40:15]MH_I2C_Read... [21:40:15]Read from MH i2c: F0 [21:40:15]MH_I2C_Read... [21:40:15]Read from MH i2c: F0 09 00 [21:40:15]MH_I2C_Read... [21:40:15]Read from MH i2c: F0 09 00 BA 0A 00 C1 8E F0 66 CE CC 0E 66 6F [21:40:15]GetLastDocTimeStamp 1727039852 [21:40:15]current date 1727041217 [21:40:15]FM_GetShiftState [21:40:15]SAM_PROTO_GetShiftState [21:40:15]wFMCommunicate request_size=4 [21:40:15]MH_SAM_APDU [21:40:15]CAPDU: 80 13 01 00 [21:40:15]Write to MH i2c: E2 08 00 BB 0A 80 13 01 00 00 00 00 00 42 [21:40:15]Write i2c OK [21:40:15]MH_I2C_Read... [21:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:15]Read from MH i2c: E2 [21:40:15]MH_I2C_Read... [21:40:15]Read from MH i2c: E2 0E 00 [21:40:15]MH_I2C_Read... [21:40:15]Read from MH i2c: E2 0E 00 BB 0A 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 02 [21:40:15]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:40:15]wFMCommunicate OK [21:40:15]SAM_PROTO_GetShiftState done [21:40:15]FM_GetShiftState done [21:40:15]opened in 1726963967 [21:40:15]opened+sec_in_day 1727050367 [21:40:15]quantity*price = 26000 [21:40:15]sum+1 = 26001 [21:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 106 22.09.2024 21:40 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18710 ФПД: 11302715639408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214017&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18710&fm=11302715639408&tin=02508201610067®Number=0000000000152968&sum=26000 0 [21:40:16]StoreToDocumentArchive [21:40:16]shift 180 fd 18710 [21:40:16]save to /storage/0180/doc_00018710 [21:40:16]save last doc name /storage/0180/doc_00018710 to /storage/kkm_last_doc_name [21:40:16]save OK [21:40:16]Clear old archive folders... [21:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:40:16]tlvbuf is 00208320 [21:40:16]SAM_PROTO_ClearQueue [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 09 00 00 [21:40:16]Write to MH i2c: E2 08 00 C8 0A 80 09 00 00 00 00 00 00 44 [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 03 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [21:40:16]RAPDU: 90 00 [21:40:16]wFMCommunicate OK [21:40:16]SAM_PROTO_ClearQueue done [21:40:16]KKMCreateOFDPacket [21:40:16]OFDProtocolAddRootSTLVToBuf [21:40:16]FM_MakeSignedData [21:40:16]FM_MakeSignedData [21:40:16]SAM_PROTO_SignData [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 0D 01 02 [21:40:16]Write to MH i2c: E2 08 00 C9 0A 80 0D 01 02 00 00 00 00 4C [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 03 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [21:40:16]RAPDU: 90 00 [21:40:16]wFMCommunicate OK [21:40:16]wFMCommunicate request_size=255 [21:40:16]MH_SAM_APDU [21:40:16]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 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 6A 00 00 00 F4 03 04 00 C1 8E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [21:40:16]Write to MH i2c: E2 02 01 CA 0A 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 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 6A 00 00 00 F4 03 04 00 C1 8E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 EA [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 CA 0A 00 90 00 48 [21:40:17]RAPDU: 90 00 [21:40:17]wFMCommunicate OK [21:40:17]wFMCommunicate request_size=35 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 16 49 00 00 35 04 06 00 0A 47 9E 59 C6 70 [21:40:17]Write to MH i2c: E2 26 00 CB 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 16 49 00 00 35 04 06 00 0A 47 9E 59 C6 70 00 00 25 [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 CB 0A 00 90 00 49 [21:40:17]RAPDU: 90 00 [21:40:17]wFMCommunicate OK [21:40:17]wFMCommunicate request_size=4 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 0D 03 02 [21:40:17]Write to MH i2c: E2 08 00 CC 0A 80 0D 03 02 00 00 00 00 51 [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 0B 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 0B 00 CC 0A 00 0B BA 47 FE F0 3C AC 9B 90 00 CF [21:40:17]RAPDU: 0B BA 47 FE F0 3C AC 9B 90 00 [21:40:17]wFMCommunicate OK [21:40:17]SAM_PROTO_SignData done [21:40:17]FM_MakeSignedData done [21:40:17]CreateOFDProtocolMessage [21:40:17]wFMCommunicate request_size=4 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 11 00 00 [21:40:17]Write to MH i2c: E2 08 00 CD 0A 80 11 00 00 00 00 00 00 51 [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 17 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 17 00 CD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AA [21:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:40:17]wFMCommunicate OK [21:40:17]CreateOFDProtocolMessage done [21:40:17]OFDSenderStorePacket 18710 [21:40:17]StoreOFDPacket docnum=18710 [21:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 50 67 20 01 DD 8A 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 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 6A 00 00 00 F4 03 04 00 C1 8E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 16 49 00 00 35 04 06 00 0A 47 9E 59 C6 70 0B BA 47 FE F0 3C AC 9B [21:40:17]CheckFolder [21:40:17]dirname=/storage/ofd_packets [21:40:17]CheckFolder done [21:40:17]ProducePacketName [21:40:17]name=ofd_packets/00018710 [21:40:17]NVStorageSaveData ofd_packets/00018710 [21:40:17]File name is /storage/ofd_packets/00018710 [21:40:17]Write 326 bytes [21:40:17]NVStorageSaveData done [21:40:17]OFDSenderStorePacket done [21:40:17]KKMCreateOFDPacket done [21:40:17]NVStorageSaveData kkm_last_timestamp [21:40:17]File name is /storage/kkm_last_timestamp [21:40:17]Write 4 bytes [21:40:17]NVStorageSaveData done [21:40:17]ExternCall_PrintAddStr [21:40:17]wPrintStart [21:40:17]Write to MH i2c: 01 00 00 CE 0A D8 [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: 01 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: 01 07 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [21:40:17]RasterBufferAndPrint [21:40:17]line Счет N : (3)16634 [21:40:17]line ИНН: 02508201610067 [21:40:17]line Контрольно-Кассовый Чек [21:40:17]line ПРОДАЖА [21:40:17]line Товар: 2000036230011 [21:40:17]line Кофе Латте XL(GABB TRADE) [21:40:17]line 2.000 * 130.00 [21:40:17]line = 260.00 [21:40:17]line НДС 12% НСП 1% [21:40:17]line > о реализуемом товаре [21:40:17]line ИТОГО: 260.00 [21:40:17]line НСП 1% : 2.30 [21:40:17]line НДС 12% : 27.61 [21:40:17]line Наличными: 260.00 [21:40:17]line Безнал.: 0.00 [21:40:17]line Место: АЗС № 176 "Партнер Нефть" [21:40:17]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:40:17]line СНО: Общий режим [21:40:17]line Чек 106 22.09.2024 21:40 [21:40:17]line Смена: 180 ФФД: 1.0 [21:40:17]line ЗНМ: 0300000010 [21:40:17]line РНМ: 0000000000152968 [21:40:17]line Версия ККМ: v1.0 [21:40:17]line ФМ: 0000000000959456 [21:40:17]line ФД: 18710 [21:40:17]line ФПД: 11302715639408 [21:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214017&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18710&fm=11302715639408&tin=02508201610067®Number=0000000000152968&sum=26000 [21:40:17]line 0 [21:40:17]OFD Sender: Processing packet 18710 [packets to send 7, broken 6] [21:40:17]ProducePacketName [21:40:17]name=ofd_packets/00018710 [21:40:17]OFD Sender: To server: pG, [21:40:17]CommunicateWithHost lk.salyk.kg:30040 [21:40:17]ConnectInit lk.salyk.kg [21:40:17]written 0, free lines is 4095 [21:40:17]Connected sock=10 [21:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 50 67 20 01 DD 8A 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 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 6A 00 00 00 F4 03 04 00 C1 8E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 16 49 00 00 35 04 06 00 0A 47 9E 59 C6 70 0B BA 47 FE F0 3C AC 9B [21:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7A 74 47 00 10 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 16 49 00 00 F4 03 04 00 28 38 F0 66 B6 04 01 00 00 D6 24 43 11 3F 78 A1 DB [21:40:18]CommunicateWithHost err = 0 [21:40:18]CheckOFDResponse [21:40:18]1017 (14) - 77093643461234 [21:40:18]1041 (16) - 0000000000959456 [21:40:18]1040 (4) - 18710 [21:40:18]1012 (4) - 22.09.2024 15:30 [21:40:18]1206 (1) - 0 [21:40:18]OFD Sender: Remove packet 18710 [21:40:18]ProducePacketName [21:40:18]name=ofd_packets/00018710 [21:40:18]NVStorageDeleteData [21:40:18]Write to MH i2c: 01 00 00 F6 0A 00 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 F6 0A 00 00 00 00 00 3D 0D 51 [21:40:18]RasterBufferAndPrint [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]written 0, free lines is 3398 [21:40:18]MH_Cut [21:40:18]Write to MH i2c: D1 01 00 FD 0A 01 D9 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 01 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 01 00 FD 0A 00 D8 [21:40:18]Write to MH i2c: 01 00 00 FE 0A 08 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]OFD Sender: No OFD packet to send [21:40:18]*** Cut start [21:40:18]*** Partial cut [21:40:18]*** CUTSNS_PIN = 1 [21:40:18]*** CUTSNS_PIN = 0 [21:40:18]*** Brake cut motor [21:40:19]Read from MH i2c: 01 [21:40:19]MH_I2C_Read... [21:40:19]*** Stop cut motor [21:40:19]*** Cut end [21:40:19]Read from MH i2c: 01 07 00 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [21:40:19]process_action close_receipt done [21:40:19]requested_data is exist [21:40:19]produce_requested_data [21:40:19]requested_item fm.sn is exist - process it [21:40:19]wFMCommunicate request_size=4 [21:40:19]MH_SAM_APDU [21:40:19]CAPDU: 80 11 00 00 [21:40:19]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [21:40:19]Write i2c OK [21:40:19]MH_I2C_Read... [21:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:19]Read from MH i2c: E2 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 17 00 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [21:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:40:19]wFMCommunicate OK [21:40:19]requested_item fd.num is exist - process it [21:40:19]SAM_PROTO_GetFieldsCounters [21:40:19]wFMCommunicate request_size=4 [21:40:19]MH_SAM_APDU [21:40:19]CAPDU: 80 13 00 00 [21:40:19]Write to MH i2c: E2 08 00 00 0B 80 13 00 00 00 00 00 00 87 [21:40:19]Write i2c OK [21:40:19]MH_I2C_Read... [21:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:19]Read from MH i2c: E2 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 62 00 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 62 00 00 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 16 49 00 00 0E 04 04 00 B4 00 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 05 [21:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 16 49 00 00 0E 04 04 00 B4 00 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 [21:40:19]wFMCommunicate OK [21:40:19]SAM_PROTO_GetFieldsCounters done [21:40:19]requested_item shift.num is exist - process it [21:40:19]requested_item shift.opened is exist - process it [21:40:19]req_shift_opened [21:40:19]FM_GetShiftState [21:40:19]SAM_PROTO_GetShiftState [21:40:19]wFMCommunicate request_size=4 [21:40:19]MH_SAM_APDU [21:40:19]CAPDU: 80 13 01 00 [21:40:19]Write to MH i2c: E2 08 00 01 0B 80 13 01 00 00 00 00 00 89 [21:40:19]Write i2c OK [21:40:19]MH_I2C_Read... [21:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:19]Read from MH i2c: E2 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 0E 00 [21:40:19]MH_I2C_Read... [21:40:19]Read from MH i2c: E2 0E 00 01 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 49 [21:40:19]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:40:19]wFMCommunicate OK [21:40:19]SAM_PROTO_GetShiftState done [21:40:19]FM_GetShiftState done [21:40:19]req_shift_opened done [21:40:19]requested_item shift.open_date is exist - process it [21:40:19]req_shift_open_date [21:40:19]req_shift_open_date done [21:40:19]produce_requested_data done [21:40:19]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18710,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [21:40:19]process_action_free close_receipt [21:40:19]json_value_free [21:40:19]json_value_free done [21:40:19]process_json_proto returns [21:40:19]Send response to host [21:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18710,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [21:40:19]free response buf [21:40:19]execute_script done [21:40:19]execute_script returns [21:40:19]free content buf [21:40:19]Sock 8.Close socket [21:40:19]Sock 8.Thread stoped [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:20]accept exits with 9 [21:53:20]New connection [21:53:20]New thread 3067129188 created [21:53:20]Thread 3067272548 joined [21:53:20]Waiting for new connection... [21:53:20] Sock 9.Parse request [21:53:20]Sock 9.Check first char [21:53:20]Sock 9.First char is OK [21:53:20]request: POST /json_proto HTTP/1.0 [21:53:20]Method: POST [21:53:20]URL: /json_proto [21:53:20]Method is POST - this is cgi request [21:53:20]url: /json_proto [21:53:20]query_string will be loaded in cgi processing [21:53:20]execute_cgi json_proto POST (null) [21:53:20]execute_cgi path=json_proto method=POST [21:53:20]POST find Content-Length [21:53:20]Host: 172.17.62.196:8080 [21:53:20]Content-Length: 937 [21:53:20]Content-Type: application/json [21:53:20] [21:53:20]POST finish read [21:53:20]Found Content-Length = 937 [21:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16635", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 47.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:20]execute_script... [21:53:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16635", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 47.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:20]POST & json_proto [21:53:20]process_json_proto [21:53:20]json parsed OK: [21:53:20]protocol is kg_v1.0 [21:53:20]action value=close_receipt [21:53:20]process_action close_receipt [21:53:20]cmd_close_receipt [21:53:20]MH_GetDate [21:53:20]Write to MH i2c: F0 00 00 02 0B FC [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: F0 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: F0 09 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: F0 09 00 02 0B 00 D3 91 F0 66 CE CC 0E 66 CD [21:53:20]GetLastDocTimeStamp 1727041217 [21:53:20]current date 1727042003 [21:53:20]FM_GetShiftState [21:53:20]SAM_PROTO_GetShiftState [21:53:20]wFMCommunicate request_size=4 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 13 01 00 [21:53:20]Write to MH i2c: E2 08 00 03 0B 80 13 01 00 00 00 00 00 8B [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 0E 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 0E 00 03 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 4B [21:53:20]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:53:20]wFMCommunicate OK [21:53:20]SAM_PROTO_GetShiftState done [21:53:20]FM_GetShiftState done [21:53:20]opened in 1726963967 [21:53:20]opened+sec_in_day 1727050367 [21:53:20]quantity*price = 4000 [21:53:20]sum+1 = 4001 [21:53:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 47.00 НСП 1% : 0.41 НДС 12% : 4.99 Наличными: 47.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 107 22.09.2024 21:53 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18711 ФПД: 179423076628226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215323&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18711&fm=179423076628226&tin=02508201610067®Number=0000000000152968&sum=4700 0 [21:53:21]StoreToDocumentArchive [21:53:21]shift 180 fd 18711 [21:53:21]save to /storage/0180/doc_00018711 [21:53:21]save last doc name /storage/0180/doc_00018711 to /storage/kkm_last_doc_name [21:53:21]save OK [21:53:21]Clear old archive folders... [21:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=395 [21:53:21]tlvbuf is 001E2E80 [21:53:21]SAM_PROTO_ClearQueue [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 09 00 00 [21:53:21]Write to MH i2c: E2 08 00 10 0B 80 09 00 00 00 00 00 00 8D [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [21:53:21]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]SAM_PROTO_ClearQueue done [21:53:21]KKMCreateOFDPacket [21:53:21]OFDProtocolAddRootSTLVToBuf [21:53:21]FM_MakeSignedData [21:53:21]FM_MakeSignedData [21:53:21]SAM_PROTO_SignData [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 01 02 [21:53:21]Write to MH i2c: E2 08 00 11 0B 80 0D 01 02 00 00 00 00 95 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]wFMCommunicate request_size=255 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 12 00 00 00 00 EB 03 26 00 EF 03 [21:53:22]Write to MH i2c: E2 02 01 12 0B 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 12 00 00 00 00 EB 03 26 00 EF 03 00 00 53 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]wFMCommunicate request_size=154 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 29 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 01 00 00 00 00 07 04 06 00 5C 12 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 D3 91 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 17 49 00 00 35 04 06 00 A3 2F 30 BF 37 02 [21:53:22]Write to MH i2c: E2 9D 00 13 0B 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 29 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 01 00 00 00 00 07 04 06 00 5C 12 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 D3 91 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 17 49 00 00 35 04 06 00 A3 2F 30 BF 37 02 00 00 C3 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [21:53:22]RAPDU: 90 00 [21:53:22]wFMCommunicate OK [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 0D 03 02 [21:53:22]Write to MH i2c: E2 08 00 14 0B 80 0D 03 02 00 00 00 00 9A [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 0B 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 0B 00 14 0B 00 91 58 DE 28 85 4D 35 FD 90 00 8E [21:53:22]RAPDU: 91 58 DE 28 85 4D 35 FD 90 00 [21:53:22]wFMCommunicate OK [21:53:22]SAM_PROTO_SignData done [21:53:22]FM_MakeSignedData done [21:53:22]CreateOFDProtocolMessage [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 11 00 00 [21:53:22]Write to MH i2c: E2 08 00 15 0B 80 11 00 00 00 00 00 00 9A [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 15 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F3 [21:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:53:22]wFMCommunicate OK [21:53:22]CreateOFDProtocolMessage done [21:53:22]OFDSenderStorePacket 18711 [21:53:22]StoreOFDPacket docnum=18711 [21:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9F 01 00 00 4F 47 97 01 B9 21 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 01 00 00 00 00 07 04 06 00 5C 12 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 D3 91 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 17 49 00 00 35 04 06 00 A3 2F 30 BF 37 02 91 58 DE 28 85 4D 35 FD [21:53:22]CheckFolder [21:53:22]dirname=/storage/ofd_packets [21:53:22]CheckFolder done [21:53:22]ProducePacketName [21:53:22]name=ofd_packets/00018711 [21:53:22]NVStorageSaveData ofd_packets/00018711 [21:53:22]File name is /storage/ofd_packets/00018711 [21:53:22]Write 445 bytes [21:53:22]NVStorageSaveData done [21:53:22]OFDSenderStorePacket done [21:53:22]KKMCreateOFDPacket done [21:53:22]NVStorageSaveData kkm_last_timestamp [21:53:22]File name is /storage/kkm_last_timestamp [21:53:22]Write 4 bytes [21:53:22]NVStorageSaveData done [21:53:22]ExternCall_PrintAddStr [21:53:22]wPrintStart [21:53:22]Write to MH i2c: 01 00 00 16 0B 21 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 07 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 FF 0F 36 [21:53:22]RasterBufferAndPrint [21:53:22]line Счет N : (3)16635 [21:53:22]line ИНН: 02508201610067 [21:53:22]line Контрольно-Кассовый Чек [21:53:22]line ПРОДАЖА [21:53:22]line Товар: 4700000310036 [21:53:22]line Вода Жалалабат 27 0,5л [21:53:22]line 1.000 * 40.00 [21:53:22]line = 40.00 [21:53:22]line НДС 12% НСП 1% [21:53:22]line > о реализуемом товаре [21:53:22]line Товар: 2000053020015 [21:53:22]line Бумажные стаканы 250мл 1шт [21:53:22]line 1.000 * 7.00 [21:53:22]line = 7.00 [21:53:22]line НДС 12% НСП 1% [21:53:22]line > о реализуемом товаре [21:53:22]line ИТОГО: 47.00 [21:53:22]line НСП 1% : 0.41 [21:53:22]line НДС 12% : 4.99 [21:53:22]line Наличными: 47.00 [21:53:22]line Безнал.: 0.00 [21:53:22]line Место: АЗС № 176 "Партнер Нефть" [21:53:22]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:53:22]line СНО: Общий режим [21:53:22]line Чек 107 22.09.2024 21:53 [21:53:22]line Смена: 180 ФФД: 1.0 [21:53:22]line ЗНМ: 0300000010 [21:53:22]line РНМ: 0000000000152968 [21:53:22]line Версия ККМ: v1.0 [21:53:22]line ФМ: 0000000000959456 [21:53:22]line ФД: 18711 [21:53:22]line ФПД: 179423076628226 [21:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215323&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18711&fm=179423076628226&tin=02508201610067®Number=0000000000152968&sum=4700 [21:53:22]line 0 [21:53:22]OFD Sender: Processing packet 18711 [packets to send 7, broken 6] [21:53:22]ProducePacketName [21:53:22]name=ofd_packets/00018711 [21:53:22]OFD Sender: To server: pG, [21:53:22]CommunicateWithHost lk.salyk.kg:30040 [21:53:22]ConnectInit lk.salyk.kg [21:53:22]written 0, free lines is 4095 [21:53:23]Connected sock=10 [21:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9F 01 00 00 4F 47 97 01 B9 21 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 01 00 00 00 00 07 04 06 00 5C 12 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 D3 91 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 17 49 00 00 35 04 06 00 A3 2F 30 BF 37 02 91 58 DE 28 85 4D 35 FD [21:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EE 1F 47 00 39 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 17 49 00 00 F4 03 04 00 39 3B F0 66 B6 04 01 00 00 6B 34 62 97 2B C9 50 9A [21:53:23]CommunicateWithHost err = 0 [21:53:23]CheckOFDResponse [21:53:23]1017 (14) - 77093643461234 [21:53:23]1041 (16) - 0000000000959456 [21:53:23]1040 (4) - 18711 [21:53:23]1012 (4) - 22.09.2024 15:43 [21:53:23]1206 (1) - 0 [21:53:23]OFD Sender: Remove packet 18711 [21:53:23]ProducePacketName [21:53:23]name=ofd_packets/00018711 [21:53:23]NVStorageDeleteData [21:53:23]Write to MH i2c: 01 00 00 45 0B 50 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 45 0B 00 00 00 00 00 BA 0C 1D [21:53:23]RasterBufferAndPrint [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]line [21:53:23]written 0, free lines is 3265 [21:53:23]MH_Cut [21:53:23]Write to MH i2c: D1 01 00 4C 0B 01 29 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 01 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: D1 01 00 4C 0B 00 28 [21:53:23]Write to MH i2c: 01 00 00 4D 0B 58 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]OFD Sender: No OFD packet to send [21:53:24]*** Cut start [21:53:24]*** Partial cut [21:53:24]*** CUTSNS_PIN = 1 [21:53:24]*** CUTSNS_PIN = 0 [21:53:24]*** Brake cut motor [21:53:24]Read from MH i2c: 01 [21:53:24]MH_I2C_Read... [21:53:24]*** Stop cut motor [21:53:24]*** Cut end [21:53:24]Read from MH i2c: 01 07 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 FF 0F 6D [21:53:24]process_action close_receipt done [21:53:24]requested_data is exist [21:53:24]produce_requested_data [21:53:24]requested_item fm.sn is exist - process it [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 11 00 00 [21:53:24]Write to MH i2c: E2 08 00 4E 0B 80 11 00 00 00 00 00 00 D3 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 17 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 17 00 4E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2C [21:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:53:24]wFMCommunicate OK [21:53:24]requested_item fd.num is exist - process it [21:53:24]SAM_PROTO_GetFieldsCounters [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 00 00 [21:53:24]Write to MH i2c: E2 08 00 4F 0B 80 13 00 00 00 00 00 00 D6 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 62 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 62 00 4F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 17 49 00 00 0E 04 04 00 B4 00 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 58 [21:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 17 49 00 00 0E 04 04 00 B4 00 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 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetFieldsCounters done [21:53:24]requested_item shift.num is exist - process it [21:53:24]requested_item shift.opened is exist - process it [21:53:24]req_shift_opened [21:53:24]FM_GetShiftState [21:53:24]SAM_PROTO_GetShiftState [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 98 [21:53:24]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]req_shift_opened done [21:53:24]requested_item shift.open_date is exist - process it [21:53:24]req_shift_open_date [21:53:24]req_shift_open_date done [21:53:24]produce_requested_data done [21:53:24]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18711,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [21:53:24]process_action_free close_receipt [21:53:24]json_value_free [21:53:24]json_value_free done [21:53:24]process_json_proto returns [21:53:24]Send response to host [21:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18711,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [21:53:24]free response buf [21:53:24]execute_script done [21:53:24]execute_script returns [21:53:24]free content buf [21:53:24]Sock 9.Close socket [21:53:24]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58: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:09]accept exits with 8 [22:00:09]New connection [22:00:09]New thread 3067272548 created [22:00:09]Thread 3067129188 joined [22:00:09]Waiting for new connection... [22:00:09] Sock 8.Parse request [22:00:09]Sock 8.Check first char [22:00:09]Sock 8.First char is OK [22:00:09]request: POST /json_proto HTTP/1.0 [22:00:09]Method: POST [22:00:09]URL: /json_proto [22:00:09]Method is POST - this is cgi request [22:00:09]url: /json_proto [22:00:09]query_string will be loaded in cgi processing [22:00:09]execute_cgi json_proto POST (null) [22:00:09]execute_cgi path=json_proto method=POST [22:00:09]POST find Content-Length [22:00:09]Host: 172.17.62.196:8080 [22:00:09]Content-Length: 616 [22:00:09]Content-Type: application/json [22:00:09] [22:00:09]POST finish read [22:00:09]Found Content-Length = 616 [22:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16636", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:09]execute_script... [22:00: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)16636", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:09]POST & json_proto [22:00:09]process_json_proto [22:00:09]json parsed OK: [22:00:09]protocol is kg_v1.0 [22:00:09]action value=close_receipt [22:00:09]process_action close_receipt [22:00:09]cmd_close_receipt [22:00:09]MH_GetDate [22:00:09]Write to MH i2c: F0 00 00 51 0B 4B [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: F0 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: F0 09 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: F0 09 00 51 0B 00 6B 93 F0 66 CE CC 0E 66 B6 [22:00:09]GetLastDocTimeStamp 1727042003 [22:00:09]current date 1727042411 [22:00:09]FM_GetShiftState [22:00:09]SAM_PROTO_GetShiftState [22:00:09]wFMCommunicate request_size=4 [22:00:09]MH_SAM_APDU [22:00:09]CAPDU: 80 13 01 00 [22:00:09]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:09]Read from MH i2c: E2 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 9A [22:00:09]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:00:09]wFMCommunicate OK [22:00:09]SAM_PROTO_GetShiftState done [22:00:09]FM_GetShiftState done [22:00:09]opened in 1726963967 [22:00:09]opened+sec_in_day 1727050367 [22:00:09]quantity*price = 28800 [22:00:09]sum+1 = 28801 [22:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 108 22.09.2024 22:00 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18712 ФПД: 65761938194239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220011&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18712&fm=65761938194239&tin=02508201610067®Number=0000000000152968&sum=28800 0 [22:00:10]StoreToDocumentArchive [22:00:10]shift 180 fd 18712 [22:00:10]save to /storage/0180/doc_00018712 [22:00:10]save last doc name /storage/0180/doc_00018712 to /storage/kkm_last_doc_name [22:00:10]save OK [22:00:10]Clear old archive folders... [22:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [22:00:10]tlvbuf is 001B9CD0 [22:00:10]SAM_PROTO_ClearQueue [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 09 00 00 [22:00:10]Write to MH i2c: E2 08 00 5F 0B 80 09 00 00 00 00 00 00 DC [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]SAM_PROTO_ClearQueue done [22:00:10]KKMCreateOFDPacket [22:00:10]OFDProtocolAddRootSTLVToBuf [22:00:10]FM_MakeSignedData [22:00:10]FM_MakeSignedData [22:00:10]SAM_PROTO_SignData [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 01 02 [22:00:10]Write to MH i2c: E2 08 00 60 0B 80 0D 01 02 00 00 00 00 E4 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]wFMCommunicate request_size=255 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 02 02 FA 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 6B 93 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [22:00:10]Write to MH i2c: E2 02 01 61 0B 80 0D 02 02 FA 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 6B 93 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 92 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]wFMCommunicate request_size=28 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 18 49 00 00 35 04 06 00 3B CF 64 F7 3F 3F [22:00:10]Write to MH i2c: E2 1F 00 62 0B 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 18 49 00 00 35 04 06 00 3B CF 64 F7 3F 3F 00 00 BD [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:11]Read from MH i2c: E2 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 03 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [22:00:11]RAPDU: 90 00 [22:00:11]wFMCommunicate OK [22:00:11]wFMCommunicate request_size=4 [22:00:11]MH_SAM_APDU [22:00:11]CAPDU: 80 0D 03 02 [22:00:11]Write to MH i2c: E2 08 00 63 0B 80 0D 03 02 00 00 00 00 E9 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:11]Read from MH i2c: E2 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 0B 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 0B 00 63 0B 00 84 C5 0B FD 37 16 39 E7 90 00 A8 [22:00:11]RAPDU: 84 C5 0B FD 37 16 39 E7 90 00 [22:00:11]wFMCommunicate OK [22:00:11]SAM_PROTO_SignData done [22:00:11]FM_MakeSignedData done [22:00:11]CreateOFDProtocolMessage [22:00:11]wFMCommunicate request_size=4 [22:00:11]MH_SAM_APDU [22:00:11]CAPDU: 80 11 00 00 [22:00:11]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:11]Read from MH i2c: E2 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 17 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 42 [22:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:00:11]wFMCommunicate OK [22:00:11]CreateOFDProtocolMessage done [22:00:11]OFDSenderStorePacket 18712 [22:00:11]StoreOFDPacket docnum=18712 [22:00:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 65 83 19 01 F2 FB 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 6B 93 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 18 49 00 00 35 04 06 00 3B CF 64 F7 3F 3F 84 C5 0B FD 37 16 39 E7 [22:00:11]CheckFolder [22:00:11]dirname=/storage/ofd_packets [22:00:11]CheckFolder done [22:00:11]ProducePacketName [22:00:11]name=ofd_packets/00018712 [22:00:11]NVStorageSaveData ofd_packets/00018712 [22:00:11]File name is /storage/ofd_packets/00018712 [22:00:11]Write 319 bytes [22:00:11]NVStorageSaveData done [22:00:11]OFDSenderStorePacket done [22:00:11]KKMCreateOFDPacket done [22:00:11]NVStorageSaveData kkm_last_timestamp [22:00:11]File name is /storage/kkm_last_timestamp [22:00:11]Write 4 bytes [22:00:11]NVStorageSaveData done [22:00:11]ExternCall_PrintAddStr [22:00:11]wPrintStart [22:00:11]Write to MH i2c: 01 00 00 65 0B 70 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 FF 0F 85 [22:00:11]RasterBufferAndPrint [22:00:11]line Счет N : (3)16636 [22:00:11]line ИНН: 02508201610067 [22:00:11]line Контрольно-Кассовый Чек [22:00:11]line ПРОДАЖА [22:00:11]line Товар: 47803008 [22:00:11]line Сигареты Winston XS Blue [22:00:11]line 2.000 * 144.00 [22:00:11]line = 288.00 [22:00:11]line НДС 12% НСП 1% [22:00:11]line > о реализуемом товаре [22:00:11]line ИТОГО: 288.00 [22:00:11]line НСП 1% : 2.55 [22:00:11]line НДС 12% : 30.58 [22:00:11]line Наличными: 288.00 [22:00:11]line Безнал.: 0.00 [22:00:11]line Место: АЗС № 176 "Партнер Нефть" [22:00:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:00:11]line СНО: Общий режим [22:00:11]line Чек 108 22.09.2024 22:00 [22:00:11]line Смена: 180 ФФД: 1.0 [22:00:11]line ЗНМ: 0300000010 [22:00:11]line РНМ: 0000000000152968 [22:00:11]line Версия ККМ: v1.0 [22:00:11]line ФМ: 0000000000959456 [22:00:11]line ФД: 18712 [22:00:11]line ФПД: 65761938194239 [22:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220011&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18712&fm=65761938194239&tin=02508201610067®Number=0000000000152968&sum=28800 [22:00:11]line 0 [22:00:11]OFD Sender: Processing packet 18712 [packets to send 7, broken 6] [22:00:11]ProducePacketName [22:00:11]name=ofd_packets/00018712 [22:00:11]OFD Sender: To server: pG, [22:00:11]CommunicateWithHost lk.salyk.kg:30040 [22:00:11]ConnectInit lk.salyk.kg [22:00:11]written 0, free lines is 4095 [22:00:11]Connected sock=10 [22:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 65 83 19 01 F2 FB 5A 03 01 00 03 00 0D 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 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 6B 93 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 18 49 00 00 35 04 06 00 3B CF 64 F7 3F 3F 84 C5 0B FD 37 16 39 E7 [22:00:11]Write to MH i2c: 01 00 00 8D 0B 98 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 20 0D CC [22:00:11]RasterBufferAndPrint [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]written 0, free lines is 3366 [22:00:11]MH_Cut [22:00:11]Write to MH i2c: D1 01 00 94 0B 01 71 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 01 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 01 00 94 0B 00 70 [22:00:11]Write to MH i2c: 01 00 00 95 0B A0 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 AF 2F 47 00 47 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 39 35 39 34 35 36 10 04 04 00 18 49 00 00 F4 03 04 00 D2 3C F0 66 B6 04 01 00 00 3C 9C 11 56 28 20 32 D7 [22:00:11]CommunicateWithHost err = 0 [22:00:11]CheckOFDResponse [22:00:11]1017 (14) - 77093643461234 [22:00:11]1041 (16) - 0000000000959456 [22:00:11]1040 (4) - 18712 [22:00:11]1012 (4) - 22.09.2024 15:50 [22:00:11]1206 (1) - 0 [22:00:11]OFD Sender: Remove packet 18712 [22:00:11]ProducePacketName [22:00:11]name=ofd_packets/00018712 [22:00:11]NVStorageDeleteData [22:00:12]OFD Sender: No OFD packet to send [22:00:12]*** Cut start [22:00:12]*** Partial cut [22:00:12]*** CUTSNS_PIN = 1 [22:00:12]*** CUTSNS_PIN = 0 [22:00:12]*** Brake cut motor [22:00:13]Read from MH i2c: 01 [22:00:13]MH_I2C_Read... [22:00:13]*** Stop cut motor [22:00:13]*** Cut end [22:00:13]Read from MH i2c: 01 07 00 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [22:00:13]process_action close_receipt done [22:00:13]requested_data is exist [22:00:13]produce_requested_data [22:00:13]requested_item fm.sn is exist - process it [22:00:13]wFMCommunicate request_size=4 [22:00:13]MH_SAM_APDU [22:00:13]CAPDU: 80 11 00 00 [22:00:13]Write to MH i2c: E2 08 00 96 0B 80 11 00 00 00 00 00 00 1B [22:00:13]Write i2c OK [22:00:13]MH_I2C_Read... [22:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:13]Read from MH i2c: E2 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 17 00 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 17 00 96 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 74 [22:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:00:13]wFMCommunicate OK [22:00:13]requested_item fd.num is exist - process it [22:00:13]SAM_PROTO_GetFieldsCounters [22:00:13]wFMCommunicate request_size=4 [22:00:13]MH_SAM_APDU [22:00:13]CAPDU: 80 13 00 00 [22:00:13]Write to MH i2c: E2 08 00 97 0B 80 13 00 00 00 00 00 00 1E [22:00:13]Write i2c OK [22:00:13]MH_I2C_Read... [22:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:13]Read from MH i2c: E2 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 62 00 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 62 00 97 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 18 49 00 00 0E 04 04 00 B4 00 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 A4 [22:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 18 49 00 00 0E 04 04 00 B4 00 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 [22:00:13]wFMCommunicate OK [22:00:13]SAM_PROTO_GetFieldsCounters done [22:00:13]requested_item shift.num is exist - process it [22:00:13]requested_item shift.opened is exist - process it [22:00:13]req_shift_opened [22:00:13]FM_GetShiftState [22:00:13]SAM_PROTO_GetShiftState [22:00:13]wFMCommunicate request_size=4 [22:00:13]MH_SAM_APDU [22:00:13]CAPDU: 80 13 01 00 [22:00:13]Write to MH i2c: E2 08 00 98 0B 80 13 01 00 00 00 00 00 20 [22:00:13]Write i2c OK [22:00:13]MH_I2C_Read... [22:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:13]Read from MH i2c: E2 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 0E 00 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 0E 00 98 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E0 [22:00:13]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:00:13]wFMCommunicate OK [22:00:13]SAM_PROTO_GetShiftState done [22:00:13]FM_GetShiftState done [22:00:13]req_shift_opened done [22:00:13]requested_item shift.open_date is exist - process it [22:00:13]req_shift_open_date [22:00:13]req_shift_open_date done [22:00:13]produce_requested_data done [22:00:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18712,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:00:13]process_action_free close_receipt [22:00:13]json_value_free [22:00:13]json_value_free done [22:00:13]process_json_proto returns [22:00:13]Send response to host [22:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18712,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:00:13]free response buf [22:00:13]execute_script done [22:00:13]execute_script returns [22:00:13]free content buf [22:00:13]Sock 8.Close socket [22:00:13]Sock 8.Thread stoped [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:50]accept exits with 9 [22:05:50]New connection [22:05:50]New thread 3067129188 created [22:05:50]Thread 3067272548 joined [22:05:50]Waiting for new connection... [22:05:50] Sock 9.Parse request [22:05:50]Sock 9.Check first char [22:05:50]Sock 9.First char is OK [22:05:50]request: POST /json_proto HTTP/1.0 [22:05:50]Method: POST [22:05:50]URL: /json_proto [22:05:50]Method is POST - this is cgi request [22:05:50]url: /json_proto [22:05:50]query_string will be loaded in cgi processing [22:05:50]execute_cgi json_proto POST (null) [22:05:50]execute_cgi path=json_proto method=POST [22:05:50]POST find Content-Length [22:05:50]Host: 172.17.62.196:8080 [22:05:50]Content-Length: 613 [22:05:50]Content-Type: application/json [22:05:50] [22:05:50]POST finish read [22:05:50]Found Content-Length = 613 [22:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16637", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:50]execute_script... [22:05: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)16637", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:50]POST & json_proto [22:05:50]process_json_proto [22:05:50]json parsed OK: [22:05:50]protocol is kg_v1.0 [22:05:50]action value=close_receipt [22:05:50]process_action close_receipt [22:05:50]cmd_close_receipt [22:05:50]MH_GetDate [22:05:50]Write to MH i2c: F0 00 00 99 0B 93 [22:05:50]Write i2c OK [22:05:50]MH_I2C_Read... [22:05:50]Read from MH i2c: F0 [22:05:50]MH_I2C_Read... [22:05:50]Read from MH i2c: F0 09 00 [22:05:50]MH_I2C_Read... [22:05:50]Read from MH i2c: F0 09 00 99 0B 00 C0 94 F0 66 CE CC 0E 66 54 [22:05:50]GetLastDocTimeStamp 1727042411 [22:05:50]current date 1727042752 [22:05:50]FM_GetShiftState [22:05:50]SAM_PROTO_GetShiftState [22:05:50]wFMCommunicate request_size=4 [22:05:50]MH_SAM_APDU [22:05:50]CAPDU: 80 13 01 00 [22:05:50]Write to MH i2c: E2 08 00 9A 0B 80 13 01 00 00 00 00 00 22 [22:05:50]Write i2c OK [22:05:50]MH_I2C_Read... [22:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:50]Read from MH i2c: E2 [22:05:50]MH_I2C_Read... [22:05:50]Read from MH i2c: E2 0E 00 [22:05:50]MH_I2C_Read... [22:05:50]Read from MH i2c: E2 0E 00 9A 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E2 [22:05:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:05:50]wFMCommunicate OK [22:05:50]SAM_PROTO_GetShiftState done [22:05:50]FM_GetShiftState done [22:05:50]opened in 1726963967 [22:05:50]opened+sec_in_day 1727050367 [22:05:50]quantity*price = 11000 [22:05:50]sum+1 = 11001 [22:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 109 22.09.2024 22:05 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18713 ФПД: 249359539269137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220552&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18713&fm=249359539269137&tin=02508201610067®Number=0000000000152968&sum=11000 0 [22:05:51]StoreToDocumentArchive [22:05:51]shift 180 fd 18713 [22:05:51]save to /storage/0180/doc_00018713 [22:05:51]save last doc name /storage/0180/doc_00018713 to /storage/kkm_last_doc_name [22:05:51]save OK [22:05:51]Clear old archive folders... [22:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:05:51]tlvbuf is 0019D510 [22:05:51]SAM_PROTO_ClearQueue [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 09 00 00 [22:05:51]Write to MH i2c: E2 08 00 A7 0B 80 09 00 00 00 00 00 00 24 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]SAM_PROTO_ClearQueue done [22:05:51]KKMCreateOFDPacket [22:05:51]OFDProtocolAddRootSTLVToBuf [22:05:51]FM_MakeSignedData [22:05:51]FM_MakeSignedData [22:05:51]SAM_PROTO_SignData [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 0D 01 02 [22:05:51]Write to MH i2c: E2 08 00 A8 0B 80 0D 01 02 00 00 00 00 2C [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]wFMCommunicate request_size=255 [22:05:51]MH_SAM_APDU [22:05:51]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C0 94 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [22:05:51]Write to MH i2c: E2 02 01 A9 0B 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C0 94 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 77 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]wFMCommunicate request_size=25 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 19 49 00 00 35 04 06 00 E2 CA 8A C2 6E 11 [22:05:51]Write to MH i2c: E2 1C 00 AA 0B 80 0D 02 02 14 00 35 36 10 04 04 00 19 49 00 00 35 04 06 00 E2 CA 8A C2 6E 11 00 00 F2 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:51]Read from MH i2c: E2 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 [22:05:51]MH_I2C_Read... [22:05:51]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [22:05:51]RAPDU: 90 00 [22:05:51]wFMCommunicate OK [22:05:51]wFMCommunicate request_size=4 [22:05:51]MH_SAM_APDU [22:05:51]CAPDU: 80 0D 03 02 [22:05:51]Write to MH i2c: E2 08 00 AB 0B 80 0D 03 02 00 00 00 00 31 [22:05:51]Write i2c OK [22:05:51]MH_I2C_Read... [22:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:52]Read from MH i2c: E2 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 0B 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 0B 00 AB 0B 00 E4 10 1D 7A 70 C6 33 12 90 00 38 [22:05:52]RAPDU: E4 10 1D 7A 70 C6 33 12 90 00 [22:05:52]wFMCommunicate OK [22:05:52]SAM_PROTO_SignData done [22:05:52]FM_MakeSignedData done [22:05:52]CreateOFDProtocolMessage [22:05:52]wFMCommunicate request_size=4 [22:05:52]MH_SAM_APDU [22:05:52]CAPDU: 80 11 00 00 [22:05:52]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:52]Read from MH i2c: E2 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 17 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: E2 17 00 AC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8A [22:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:05:52]wFMCommunicate OK [22:05:52]CreateOFDProtocolMessage done [22:05:52]OFDSenderStorePacket 18713 [22:05:52]StoreOFDPacket docnum=18713 [22:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 5C DC 16 01 22 DC 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C0 94 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 19 49 00 00 35 04 06 00 E2 CA 8A C2 6E 11 E4 10 1D 7A 70 C6 33 12 [22:05:52]CheckFolder [22:05:52]dirname=/storage/ofd_packets [22:05:52]CheckFolder done [22:05:52]ProducePacketName [22:05:52]name=ofd_packets/00018713 [22:05:52]NVStorageSaveData ofd_packets/00018713 [22:05:52]File name is /storage/ofd_packets/00018713 [22:05:52]Write 316 bytes [22:05:52]NVStorageSaveData done [22:05:52]OFDSenderStorePacket done [22:05:52]KKMCreateOFDPacket done [22:05:52]NVStorageSaveData kkm_last_timestamp [22:05:52]File name is /storage/kkm_last_timestamp [22:05:52]Write 4 bytes [22:05:52]NVStorageSaveData done [22:05:52]ExternCall_PrintAddStr [22:05:52]wPrintStart [22:05:52]Write to MH i2c: 01 00 00 AD 0B B8 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 07 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [22:05:52]RasterBufferAndPrint [22:05:52]line Счет N : (3)16637 [22:05:52]line ИНН: 02508201610067 [22:05:52]line Контрольно-Кассовый Чек [22:05:52]line ПРОДАЖА [22:05:52]line Товар: 4870001570071 [22:05:52]line Напиток Pepsi 1л [22:05:52]line 1.000 * 110.00 [22:05:52]line = 110.00 [22:05:52]line НДС 12% НСП 1% [22:05:52]line > о реализуемом товаре [22:05:52]line ИТОГО: 110.00 [22:05:52]line НСП 1% : 0.97 [22:05:52]line НДС 12% : 11.68 [22:05:52]line Наличными: 110.00 [22:05:52]line Безнал.: 0.00 [22:05:52]line Место: АЗС № 176 "Партнер Нефть" [22:05:52]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:05:52]line СНО: Общий режим [22:05:52]line Чек 109 22.09.2024 22:05 [22:05:52]line Смена: 180 ФФД: 1.0 [22:05:52]line ЗНМ: 0300000010 [22:05:52]line РНМ: 0000000000152968 [22:05:52]line Версия ККМ: v1.0 [22:05:52]line ФМ: 0000000000959456 [22:05:52]line ФД: 18713 [22:05:52]line ФПД: 249359539269137 [22:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T220552&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18713&fm=249359539269137&tin=02508201610067®Number=0000000000152968&sum=11000 [22:05:52]line 0 [22:05:52]OFD Sender: Processing packet 18713 [packets to send 7, broken 6] [22:05:52]ProducePacketName [22:05:52]name=ofd_packets/00018713 [22:05:52]OFD Sender: To server: pG, [22:05:52]CommunicateWithHost lk.salyk.kg:30040 [22:05:52]ConnectInit lk.salyk.kg [22:05:52]written 0, free lines is 4095 [22:05:52]Connected sock=10 [22:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 5C DC 16 01 22 DC 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 C0 94 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 19 49 00 00 35 04 06 00 E2 CA 8A C2 6E 11 E4 10 1D 7A 70 C6 33 12 [22:05:52]Write to MH i2c: 01 00 00 D5 0B E0 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 07 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: 01 07 00 D5 0B 00 00 00 00 00 23 0D 17 [22:05:52]RasterBufferAndPrint [22:05:52]line [22:05:52]line [22:05:52]line [22:05:52]line [22:05:52]line [22:05:52]written 0, free lines is 3369 [22:05:52]MH_Cut [22:05:52]Write to MH i2c: D1 01 00 DC 0B 01 B9 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: D1 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: D1 01 00 [22:05:52]MH_I2C_Read... [22:05:52]Read from MH i2c: D1 01 00 DC 0B 00 B8 [22:05:52]Write to MH i2c: 01 00 00 DD 0B E8 [22:05:52]Write i2c OK [22:05:52]MH_I2C_Read... [22:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C8 1E 47 00 8B 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 39 35 39 34 35 36 10 04 04 00 19 49 00 00 F4 03 04 00 26 3E F0 66 B6 04 01 00 00 DD 10 63 5D DE DA 6C AA [22:05:52]CommunicateWithHost err = 0 [22:05:52]CheckOFDResponse [22:05:52]1017 (14) - 77093643461234 [22:05:52]1041 (16) - 0000000000959456 [22:05:52]1040 (4) - 18713 [22:05:52]1012 (4) - 22.09.2024 15:56 [22:05:52]1206 (1) - 0 [22:05:52]OFD Sender: Remove packet 18713 [22:05:52]ProducePacketName [22:05:52]name=ofd_packets/00018713 [22:05:52]NVStorageDeleteData [22:05:53]OFD Sender: No OFD packet to send [22:05:53]*** Cut start [22:05:53]*** Partial cut [22:05:53]*** CUTSNS_PIN = 1 [22:05:53]*** CUTSNS_PIN = 0 [22:05:53]*** Brake cut motor [22:05:54]Read from MH i2c: 01 [22:05:54]MH_I2C_Read... [22:05:54]*** Stop cut motor [22:05:54]*** Cut end [22:05:54]Read from MH i2c: 01 07 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: 01 07 00 DD 0B 00 00 00 00 00 FF 0F FD [22:05:54]process_action close_receipt done [22:05:54]requested_data is exist [22:05:54]produce_requested_data [22:05:54]requested_item fm.sn is exist - process it [22:05:54]wFMCommunicate request_size=4 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 11 00 00 [22:05:54]Write to MH i2c: E2 08 00 DE 0B 80 11 00 00 00 00 00 00 63 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 17 00 DE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BC [22:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:05:54]wFMCommunicate OK [22:05:54]requested_item fd.num is exist - process it [22:05:54]SAM_PROTO_GetFieldsCounters [22:05:54]wFMCommunicate request_size=4 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 13 00 00 [22:05:54]Write to MH i2c: E2 08 00 DF 0B 80 13 00 00 00 00 00 00 66 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 62 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 62 00 DF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 19 49 00 00 0E 04 04 00 B4 00 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 F0 [22:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 19 49 00 00 0E 04 04 00 B4 00 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 [22:05:54]wFMCommunicate OK [22:05:54]SAM_PROTO_GetFieldsCounters done [22:05:54]requested_item shift.num is exist - process it [22:05:54]requested_item shift.opened is exist - process it [22:05:54]req_shift_opened [22:05:54]FM_GetShiftState [22:05:54]SAM_PROTO_GetShiftState [22:05:54]wFMCommunicate request_size=4 [22:05:54]MH_SAM_APDU [22:05:54]CAPDU: 80 13 01 00 [22:05:54]Write to MH i2c: E2 08 00 E0 0B 80 13 01 00 00 00 00 00 68 [22:05:54]Write i2c OK [22:05:54]MH_I2C_Read... [22:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:54]Read from MH i2c: E2 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 0E 00 [22:05:54]MH_I2C_Read... [22:05:54]Read from MH i2c: E2 0E 00 E0 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 28 [22:05:54]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:05:54]wFMCommunicate OK [22:05:54]SAM_PROTO_GetShiftState done [22:05:54]FM_GetShiftState done [22:05:54]req_shift_opened done [22:05:54]requested_item shift.open_date is exist - process it [22:05:54]req_shift_open_date [22:05:54]req_shift_open_date done [22:05:54]produce_requested_data done [22:05:54]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18713,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:05:54]process_action_free close_receipt [22:05:54]json_value_free [22:05:54]json_value_free done [22:05:54]process_json_proto returns [22:05:54]Send response to host [22:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18713,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:05:54]free response buf [22:05:54]execute_script done [22:05:54]execute_script returns [22:05:54]free content buf [22:05:54]Sock 9.Close socket [22:05:54]Sock 9.Thread stoped [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:57]accept exits with 8 [22:26:57]New connection [22:26:57]New thread 3067272548 created [22:26:57]Thread 3067129188 joined [22:26:57]Waiting for new connection... [22:26:57] Sock 8.Parse request [22:26:57]Sock 8.Check first char [22:26:57]Sock 8.First char is OK [22:26:57]request: POST /json_proto HTTP/1.0 [22:26:57]Method: POST [22:26:57]URL: /json_proto [22:26:57]Method is POST - this is cgi request [22:26:57]url: /json_proto [22:26:57]query_string will be loaded in cgi processing [22:26:57]execute_cgi json_proto POST (null) [22:26:57]execute_cgi path=json_proto method=POST [22:26:57]POST find Content-Length [22:26:57]Host: 172.17.62.196:8080 [22:26:57]Content-Length: 790 [22:26:57]Content-Type: application/json [22:26:57] [22:26:57]POST finish read [22:26:57]Found Content-Length = 790 [22:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16638", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:57]execute_script... [22:26: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)16638", "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 }]} ], "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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:57]POST & json_proto [22:26:57]process_json_proto [22:26:57]json parsed OK: [22:26:57]protocol is kg_v1.0 [22:26:57]action value=close_receipt [22:26:57]process_action close_receipt [22:26:57]cmd_close_receipt [22:26:57]MH_GetDate [22:26:57]Write to MH i2c: F0 00 00 E1 0B DB [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 09 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: F0 09 00 E1 0B 00 B3 99 F0 66 CE CC 0E 66 94 [22:26:57]GetLastDocTimeStamp 1727042752 [22:26:57]current date 1727044019 [22:26:57]FM_GetShiftState [22:26:57]SAM_PROTO_GetShiftState [22:26:57]wFMCommunicate request_size=4 [22:26:57]MH_SAM_APDU [22:26:57]CAPDU: 80 13 01 00 [22:26:57]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:57]Read from MH i2c: E2 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 0E 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 2A [22:26:57]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:26:57]wFMCommunicate OK [22:26:57]SAM_PROTO_GetShiftState done [22:26:57]FM_GetShiftState done [22:26:57]opened in 1726963967 [22:26:57]opened+sec_in_day 1727050367 [22:26:57]quantity*price = 5000 [22:26:57]sum+1 = 5001 [22:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 110 22.09.2024 22:26 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18714 ФПД: 170268875818635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222659&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18714&fm=170268875818635&tin=02508201610067®Number=0000000000152968&sum=5000 0 [22:26:58]StoreToDocumentArchive [22:26:58]shift 180 fd 18714 [22:26:58]save to /storage/0180/doc_00018714 [22:26:58]save last doc name /storage/0180/doc_00018714 to /storage/kkm_last_doc_name [22:26:58]save OK [22:26:58]Clear old archive folders... [22:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=269 [22:26:58]tlvbuf is 0020A990 [22:26:58]SAM_PROTO_ClearQueue [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 09 00 00 [22:26:58]Write to MH i2c: E2 08 00 EF 0B 80 09 00 00 00 00 00 00 6C [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [22:26:58]RAPDU: 90 00 [22:26:58]wFMCommunicate OK [22:26:58]SAM_PROTO_ClearQueue done [22:26:58]KKMCreateOFDPacket [22:26:58]OFDProtocolAddRootSTLVToBuf [22:26:58]FM_MakeSignedData [22:26:58]FM_MakeSignedData [22:26:58]SAM_PROTO_SignData [22:26:58]wFMCommunicate request_size=4 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 0D 01 02 [22:26:58]Write to MH i2c: E2 08 00 F0 0B 80 0D 01 02 00 00 00 00 74 [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 F0 0B 00 90 00 6F [22:26:58]RAPDU: 90 00 [22:26:58]wFMCommunicate OK [22:26:58]wFMCommunicate request_size=255 [22:26:58]MH_SAM_APDU [22:26:58]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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B3 99 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [22:26:58]Write to MH i2c: E2 02 01 F1 0B 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B3 99 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 56 [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [22:26:59]RAPDU: 90 00 [22:26:59]wFMCommunicate OK [22:26:59]wFMCommunicate request_size=28 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 1A 49 00 00 35 04 06 00 9A DB CF DC 06 8B [22:26:59]Write to MH i2c: E2 1F 00 F2 0B 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 1A 49 00 00 35 04 06 00 9A DB CF DC 06 8B 00 00 1D [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [22:26:59]RAPDU: 90 00 [22:26:59]wFMCommunicate OK [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 0D 03 02 [22:26:59]Write to MH i2c: E2 08 00 F3 0B 80 0D 03 02 00 00 00 00 79 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 F3 0B 00 4F F9 43 2F A5 4D C2 54 90 00 3C [22:26:59]RAPDU: 4F F9 43 2F A5 4D C2 54 90 00 [22:26:59]wFMCommunicate OK [22:26:59]SAM_PROTO_SignData done [22:26:59]FM_MakeSignedData done [22:26:59]CreateOFDProtocolMessage [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 11 00 00 [22:26:59]Write to MH i2c: E2 08 00 F4 0B 80 11 00 00 00 00 00 00 79 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 F4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D2 [22:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:26:59]wFMCommunicate OK [22:26:59]CreateOFDProtocolMessage done [22:26:59]OFDSenderStorePacket 18714 [22:26:59]StoreOFDPacket docnum=18714 [22:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 91 42 19 01 AD CE 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B3 99 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1A 49 00 00 35 04 06 00 9A DB CF DC 06 8B 4F F9 43 2F A5 4D C2 54 [22:26:59]CheckFolder [22:26:59]dirname=/storage/ofd_packets [22:26:59]CheckFolder done [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00018714 [22:26:59]NVStorageSaveData ofd_packets/00018714 [22:26:59]File name is /storage/ofd_packets/00018714 [22:26:59]Write 319 bytes [22:26:59]NVStorageSaveData done [22:26:59]OFDSenderStorePacket done [22:26:59]KKMCreateOFDPacket done [22:26:59]NVStorageSaveData kkm_last_timestamp [22:26:59]File name is /storage/kkm_last_timestamp [22:26:59]Write 4 bytes [22:26:59]NVStorageSaveData done [22:26:59]ExternCall_PrintAddStr [22:26:59]wPrintStart [22:26:59]Write to MH i2c: 01 00 00 F5 0B 00 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 FF 0F 15 [22:26:59]RasterBufferAndPrint [22:26:59]line Счет N : (3)16638 [22:26:59]line ИНН: 02508201610067 [22:26:59]line Контрольно-Кассовый Чек [22:26:59]line ПРОДАЖА [22:26:59]line Товар: 4700000160358 [22:26:59]line Вода Легенда 1л [22:26:59]line 1.000 * 50.00 [22:26:59]line = 50.00 [22:26:59]line НДС 12% НСП 1% [22:26:59]line > о реализуемом товаре [22:26:59]line ИТОГО: 50.00 [22:26:59]line НСП 1% : 0.44 [22:26:59]line НДС 12% : 5.31 [22:26:59]line Наличными: 0.00 [22:26:59]line Безнал.: 50.00 [22:26:59]line Место: АЗС № 176 "Партнер Нефть" [22:26:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:26:59]line СНО: Общий режим [22:26:59]line Чек 110 22.09.2024 22:26 [22:26:59]line Смена: 180 ФФД: 1.0 [22:26:59]line ЗНМ: 0300000010 [22:26:59]line РНМ: 0000000000152968 [22:26:59]line Версия ККМ: v1.0 [22:26:59]line Платежная система: O! деньги [22:26:59]line ФМ: 0000000000959456 [22:26:59]line ФД: 18714 [22:26:59]line ФПД: 170268875818635 [22:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222659&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18714&fm=170268875818635&tin=02508201610067®Number=0000000000152968&sum=5000 [22:26:59]line 0 [22:26:59]OFD Sender: Processing packet 18714 [packets to send 7, broken 6] [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00018714 [22:26:59]OFD Sender: To server: pG, [22:26:59]CommunicateWithHost lk.salyk.kg:30040 [22:26:59]ConnectInit lk.salyk.kg [22:26:59]written 0, free lines is 4095 [22:26:59]Connected sock=10 [22:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 91 42 19 01 AD CE 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B3 99 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1A 49 00 00 35 04 06 00 9A DB CF DC 06 8B 4F F9 43 2F A5 4D C2 54 [22:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EE FE 47 00 D4 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1A 49 00 00 F4 03 04 00 1A 43 F0 66 B6 04 01 00 00 6F B9 E7 40 3B D8 A6 BF [22:26:59]CommunicateWithHost err = 0 [22:26:59]CheckOFDResponse [22:26:59]1017 (14) - 77093643461234 [22:26:59]1041 (16) - 0000000000959456 [22:26:59]1040 (4) - 18714 [22:26:59]1012 (4) - 22.09.2024 16:17 [22:26:59]1206 (1) - 0 [22:26:59]OFD Sender: Remove packet 18714 [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00018714 [22:26:59]NVStorageDeleteData [22:26:59]Write to MH i2c: 01 00 00 1F 0C 2B [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0C 3D [22:26:59]RasterBufferAndPrint [22:26:59]line [22:26:59]line [22:26:59]line [22:26:59]line [22:26:59]line [22:26:59]written 0, free lines is 3333 [22:26:59]MH_Cut [22:26:59]Write to MH i2c: D1 01 00 26 0C 01 04 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: D1 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: D1 01 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: D1 01 00 26 0C 00 03 [22:26:59]Write to MH i2c: 01 00 00 27 0C 33 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:27:00]OFD Sender: No OFD packet to send [22:27:00]*** Cut start [22:27:00]*** Partial cut [22:27:00]*** CUTSNS_PIN = 1 [22:27:00]*** CUTSNS_PIN = 0 [22:27:00]*** Brake cut motor [22:27:01]Read from MH i2c: 01 [22:27:01]MH_I2C_Read... [22:27:01]*** Stop cut motor [22:27:01]*** Cut end [22:27:01]Read from MH i2c: 01 07 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: 01 07 00 27 0C 00 00 00 00 00 FF 0F 48 [22:27:01]process_action close_receipt done [22:27:01]requested_data is exist [22:27:01]produce_requested_data [22:27:01]requested_item fm.sn is exist - process it [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 11 00 00 [22:27:01]Write to MH i2c: E2 08 00 28 0C 80 11 00 00 00 00 00 00 AE [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 17 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 17 00 28 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 07 [22:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:27:01]wFMCommunicate OK [22:27:01]requested_item fd.num is exist - process it [22:27:01]SAM_PROTO_GetFieldsCounters [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 13 00 00 [22:27:01]Write to MH i2c: E2 08 00 29 0C 80 13 00 00 00 00 00 00 B1 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 62 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 62 00 29 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1A 49 00 00 0E 04 04 00 B4 00 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 3F [22:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1A 49 00 00 0E 04 04 00 B4 00 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 [22:27:01]wFMCommunicate OK [22:27:01]SAM_PROTO_GetFieldsCounters done [22:27:01]requested_item shift.num is exist - process it [22:27:01]requested_item shift.opened is exist - process it [22:27:01]req_shift_opened [22:27:01]FM_GetShiftState [22:27:01]SAM_PROTO_GetShiftState [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 13 01 00 [22:27:01]Write to MH i2c: E2 08 00 2A 0C 80 13 01 00 00 00 00 00 B3 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:01]Read from MH i2c: E2 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 0E 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: E2 0E 00 2A 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 73 [22:27:01]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:27:01]wFMCommunicate OK [22:27:01]SAM_PROTO_GetShiftState done [22:27:01]FM_GetShiftState done [22:27:01]req_shift_opened done [22:27:01]requested_item shift.open_date is exist - process it [22:27:01]req_shift_open_date [22:27:01]req_shift_open_date done [22:27:01]produce_requested_data done [22:27:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18714,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:27:01]process_action_free close_receipt [22:27:01]json_value_free [22:27:01]json_value_free done [22:27:01]process_json_proto returns [22:27:01]Send response to host [22:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18714,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:27:01]free response buf [22:27:01]execute_script done [22:27:01]execute_script returns [22:27:01]free content buf [22:27:01]Sock 8.Close socket [22:27:01]Sock 8.Thread stoped [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:26]accept exits with 9 [22:30:26]New connection [22:30:26]New thread 3067129188 created [22:30:26]Thread 3067272548 joined [22:30:26]Waiting for new connection... [22:30:26] Sock 9.Parse request [22:30:26]Sock 9.Check first char [22:30:26]Sock 9.First char is OK [22:30:26]request: POST /json_proto HTTP/1.0 [22:30:26]Method: POST [22:30:26]URL: /json_proto [22:30:26]Method is POST - this is cgi request [22:30:26]url: /json_proto [22:30:26]query_string will be loaded in cgi processing [22:30:26]execute_cgi json_proto POST (null) [22:30:26]execute_cgi path=json_proto method=POST [22:30:26]POST find Content-Length [22:30:26]Host: 172.17.62.196:8080 [22:30:26]Content-Length: 662 [22:30:26]Content-Type: application/json [22:30:26] [22:30:26]POST finish read [22:30:26]Found Content-Length = 662 [22:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16639", "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" : 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" ] } } [22:30:26]execute_script... [22:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16639", "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" : 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" ] } } [22:30:26]POST & json_proto [22:30:26]process_json_proto [22:30:26]json parsed OK: [22:30:26]protocol is kg_v1.0 [22:30:26]action value=close_receipt [22:30:26]process_action close_receipt [22:30:26]cmd_close_receipt [22:30:26]MH_GetDate [22:30:26]Write to MH i2c: F0 00 00 2B 0C 26 [22:30:26]Write i2c OK [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: F0 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: F0 09 00 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: F0 09 00 2B 0C 00 84 9A F0 66 CE CC 0E 66 B1 [22:30:26]GetLastDocTimeStamp 1727044019 [22:30:26]current date 1727044228 [22:30:26]FM_GetShiftState [22:30:26]SAM_PROTO_GetShiftState [22:30:26]wFMCommunicate request_size=4 [22:30:26]MH_SAM_APDU [22:30:26]CAPDU: 80 13 01 00 [22:30:26]Write to MH i2c: E2 08 00 2C 0C 80 13 01 00 00 00 00 00 B5 [22:30:26]Write i2c OK [22:30:26]MH_I2C_Read... [22:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:26]Read from MH i2c: E2 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 0E 00 [22:30:26]MH_I2C_Read... [22:30:26]Read from MH i2c: E2 0E 00 2C 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 75 [22:30:26]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:30:26]wFMCommunicate OK [22:30:26]SAM_PROTO_GetShiftState done [22:30:26]FM_GetShiftState done [22:30:26]opened in 1726963967 [22:30:26]opened+sec_in_day 1727050367 [22:30:26]quantity*price = 17000 [22:30:26]sum+1 = 17001 [22:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 111 22.09.2024 22:30 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18715 ФПД: 215707540193166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223028&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18715&fm=215707540193166&tin=02508201610067®Number=0000000000152968&sum=17000 0 [22:30:27]StoreToDocumentArchive [22:30:27]shift 180 fd 18715 [22:30:27]save to /storage/0180/doc_00018715 [22:30:27]save last doc name /storage/0180/doc_00018715 to /storage/kkm_last_doc_name [22:30:27]save OK [22:30:27]Clear old archive folders... [22:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=287 [22:30:27]tlvbuf is 001F7890 [22:30:27]SAM_PROTO_ClearQueue [22:30:27]wFMCommunicate request_size=4 [22:30:27]MH_SAM_APDU [22:30:27]CAPDU: 80 09 00 00 [22:30:27]Write to MH i2c: E2 08 00 39 0C 80 09 00 00 00 00 00 00 B7 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 39 0C 00 90 00 B9 [22:30:27]RAPDU: 90 00 [22:30:27]wFMCommunicate OK [22:30:27]SAM_PROTO_ClearQueue done [22:30:27]KKMCreateOFDPacket [22:30:27]OFDProtocolAddRootSTLVToBuf [22:30:27]FM_MakeSignedData [22:30:27]FM_MakeSignedData [22:30:27]SAM_PROTO_SignData [22:30:27]wFMCommunicate request_size=4 [22:30:27]MH_SAM_APDU [22:30:27]CAPDU: 80 0D 01 02 [22:30:27]Write to MH i2c: E2 08 00 3A 0C 80 0D 01 02 00 00 00 00 BF [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:27]Read from MH i2c: E2 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 [22:30:27]MH_I2C_Read... [22:30:27]Read from MH i2c: E2 03 00 3A 0C 00 90 00 BA [22:30:27]RAPDU: 90 00 [22:30:27]wFMCommunicate OK [22:30:27]wFMCommunicate request_size=255 [22:30:27]MH_SAM_APDU [22:30:27]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 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 6F 00 00 00 F4 03 04 00 84 9A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [22:30:27]Write to MH i2c: E2 02 01 3B 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 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 6F 00 00 00 F4 03 04 00 84 9A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 D6 [22:30:27]Write i2c OK [22:30:27]MH_I2C_Read... [22:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:28]Read from MH i2c: E2 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 03 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 03 00 3B 0C 00 90 00 BB [22:30:28]RAPDU: 90 00 [22:30:28]wFMCommunicate OK [22:30:28]wFMCommunicate request_size=46 [22:30:28]MH_SAM_APDU [22:30:28]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1B 49 00 00 35 04 06 00 C4 2F 53 4E FF 8E [22:30:28]Write to MH i2c: E2 31 00 3C 0C 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1B 49 00 00 35 04 06 00 C4 2F 53 4E FF 8E 00 00 E2 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:28]Read from MH i2c: E2 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 03 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [22:30:28]RAPDU: 90 00 [22:30:28]wFMCommunicate OK [22:30:28]wFMCommunicate request_size=4 [22:30:28]MH_SAM_APDU [22:30:28]CAPDU: 80 0D 03 02 [22:30:28]Write to MH i2c: E2 08 00 3D 0C 80 0D 03 02 00 00 00 00 C4 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:28]Read from MH i2c: E2 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 0B 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 0B 00 3D 0C 00 21 A5 CA 36 F4 BB 94 54 90 00 22 [22:30:28]RAPDU: 21 A5 CA 36 F4 BB 94 54 90 00 [22:30:28]wFMCommunicate OK [22:30:28]SAM_PROTO_SignData done [22:30:28]FM_MakeSignedData done [22:30:28]CreateOFDProtocolMessage [22:30:28]wFMCommunicate request_size=4 [22:30:28]MH_SAM_APDU [22:30:28]CAPDU: 80 11 00 00 [22:30:28]Write to MH i2c: E2 08 00 3E 0C 80 11 00 00 00 00 00 00 C4 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:28]Read from MH i2c: E2 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 17 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 17 00 3E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1D [22:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:30:28]wFMCommunicate OK [22:30:28]CreateOFDProtocolMessage done [22:30:28]OFDSenderStorePacket 18715 [22:30:28]StoreOFDPacket docnum=18715 [22:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 34 11 2B 01 36 B1 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 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 6F 00 00 00 F4 03 04 00 84 9A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1B 49 00 00 35 04 06 00 C4 2F 53 4E FF 8E 21 A5 CA 36 F4 BB 94 54 [22:30:28]CheckFolder [22:30:28]dirname=/storage/ofd_packets [22:30:28]CheckFolder done [22:30:28]ProducePacketName [22:30:28]name=ofd_packets/00018715 [22:30:28]NVStorageSaveData ofd_packets/00018715 [22:30:28]File name is /storage/ofd_packets/00018715 [22:30:28]Write 337 bytes [22:30:28]NVStorageSaveData done [22:30:28]OFDSenderStorePacket done [22:30:28]KKMCreateOFDPacket done [22:30:28]NVStorageSaveData kkm_last_timestamp [22:30:28]File name is /storage/kkm_last_timestamp [22:30:28]Write 4 bytes [22:30:28]NVStorageSaveData done [22:30:28]ExternCall_PrintAddStr [22:30:28]wPrintStart [22:30:28]Write to MH i2c: 01 00 00 3F 0C 4B [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 07 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 FF 0F 60 [22:30:28]RasterBufferAndPrint [22:30:28]line Счет N : (3)16639 [22:30:28]line ИНН: 02508201610067 [22:30:28]line Контрольно-Кассовый Чек [22:30:28]line ПРОДАЖА [22:30:28]line Товар: 5449000176448 [22:30:28]line Сок Piko Pulpy апельсин ПЭТ 1л [22:30:28]line 1.000 * 170.00 [22:30:28]line = 170.00 [22:30:28]line НДС 12% НСП 1% [22:30:28]line > о реализуемом товаре [22:30:28]line ИТОГО: 170.00 [22:30:28]line НСП 1% : 1.50 [22:30:28]line НДС 12% : 18.05 [22:30:28]line Наличными: 170.00 [22:30:28]line Безнал.: 0.00 [22:30:28]line Место: АЗС № 176 "Партнер Нефть" [22:30:28]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:30:28]line СНО: Общий режим [22:30:28]line Чек 111 22.09.2024 22:30 [22:30:28]line Смена: 180 ФФД: 1.0 [22:30:28]line ЗНМ: 0300000010 [22:30:28]line РНМ: 0000000000152968 [22:30:28]line Версия ККМ: v1.0 [22:30:28]line ФМ: 0000000000959456 [22:30:28]line ФД: 18715 [22:30:28]line ФПД: 215707540193166 [22:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223028&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18715&fm=215707540193166&tin=02508201610067®Number=0000000000152968&sum=17000 [22:30:28]line 0 [22:30:28]OFD Sender: Processing packet 18715 [packets to send 7, broken 6] [22:30:28]ProducePacketName [22:30:28]name=ofd_packets/00018715 [22:30:28]OFD Sender: To server: pG, [22:30:28]CommunicateWithHost lk.salyk.kg:30040 [22:30:28]ConnectInit lk.salyk.kg [22:30:28]written 0, free lines is 4095 [22:30:28]Connected sock=10 [22:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 34 11 2B 01 36 B1 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 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 6F 00 00 00 F4 03 04 00 84 9A F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1B 49 00 00 35 04 06 00 C4 2F 53 4E FF 8E 21 A5 CA 36 F4 BB 94 54 [22:30:28]Write to MH i2c: 01 00 00 68 0C 74 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 07 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 01 0D 89 [22:30:28]RasterBufferAndPrint [22:30:28]line [22:30:28]line [22:30:28]line [22:30:28]line [22:30:28]line [22:30:28]written 0, free lines is 3335 [22:30:29]MH_Cut [22:30:29]Write to MH i2c: D1 01 00 6F 0C 01 4D [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: D1 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: D1 01 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: D1 01 00 6F 0C 00 4C [22:30:29]Write to MH i2c: 01 00 00 70 0C 7C [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EF F0 47 00 28 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1B 49 00 00 F4 03 04 00 EB 43 F0 66 B6 04 01 00 00 84 76 02 67 99 11 BB 50 [22:30:29]CommunicateWithHost err = 0 [22:30:29]CheckOFDResponse [22:30:29]1017 (14) - 77093643461234 [22:30:29]1041 (16) - 0000000000959456 [22:30:29]1040 (4) - 18715 [22:30:29]1012 (4) - 22.09.2024 16:20 [22:30:29]1206 (1) - 0 [22:30:29]OFD Sender: Remove packet 18715 [22:30:29]ProducePacketName [22:30:29]name=ofd_packets/00018715 [22:30:29]NVStorageDeleteData [22:30:29]OFD Sender: No OFD packet to send [22:30:29]*** Cut start [22:30:29]*** Partial cut [22:30:29]*** CUTSNS_PIN = 1 [22:30:29]*** CUTSNS_PIN = 0 [22:30:29]*** Brake cut motor [22:30:30]Read from MH i2c: 01 [22:30:30]MH_I2C_Read... [22:30:30]*** Stop cut motor [22:30:30]*** Cut end [22:30:30]Read from MH i2c: 01 07 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 07 00 70 0C 00 00 00 00 00 FF 0F 91 [22:30:30]process_action close_receipt done [22:30:30]requested_data is exist [22:30:30]produce_requested_data [22:30:30]requested_item fm.sn is exist - process it [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 11 00 00 [22:30:30]Write to MH i2c: E2 08 00 71 0C 80 11 00 00 00 00 00 00 F7 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 17 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 17 00 71 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 50 [22:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:30:30]wFMCommunicate OK [22:30:30]requested_item fd.num is exist - process it [22:30:30]SAM_PROTO_GetFieldsCounters [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 13 00 00 [22:30:30]Write to MH i2c: E2 08 00 72 0C 80 13 00 00 00 00 00 00 FA [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 62 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 62 00 72 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1B 49 00 00 0E 04 04 00 B4 00 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 8C [22:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1B 49 00 00 0E 04 04 00 B4 00 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 [22:30:30]wFMCommunicate OK [22:30:30]SAM_PROTO_GetFieldsCounters done [22:30:30]requested_item shift.num is exist - process it [22:30:30]requested_item shift.opened is exist - process it [22:30:30]req_shift_opened [22:30:30]FM_GetShiftState [22:30:30]SAM_PROTO_GetShiftState [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 13 01 00 [22:30:30]Write to MH i2c: E2 08 00 73 0C 80 13 01 00 00 00 00 00 FC [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0E 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0E 00 73 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 BC [22:30:30]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:30:30]wFMCommunicate OK [22:30:30]SAM_PROTO_GetShiftState done [22:30:30]FM_GetShiftState done [22:30:30]req_shift_opened done [22:30:30]requested_item shift.open_date is exist - process it [22:30:30]req_shift_open_date [22:30:30]req_shift_open_date done [22:30:30]produce_requested_data done [22:30:30]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18715,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:30:30]process_action_free close_receipt [22:30:30]json_value_free [22:30:30]json_value_free done [22:30:30]process_json_proto returns [22:30:30]Send response to host [22:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18715,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:30:30]free response buf [22:30:30]execute_script done [22:30:30]execute_script returns [22:30:30]free content buf [22:30:30]Sock 9.Close socket [22:30:30]Sock 9.Thread stoped [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]accept exits with 8 [22:32:59]New connection [22:32:59]New thread 3067272548 created [22:32:59]Thread 3067129188 joined [22:32:59]Waiting for new connection... [22:32:59] Sock 8.Parse request [22:32:59]Sock 8.Check first char [22:32:59]Sock 8.First char is OK [22:32:59]request: POST /json_proto HTTP/1.0 [22:32:59]Method: POST [22:32:59]URL: /json_proto [22:32:59]Method is POST - this is cgi request [22:32:59]url: /json_proto [22:32:59]query_string will be loaded in cgi processing [22:32:59]execute_cgi json_proto POST (null) [22:32:59]execute_cgi path=json_proto method=POST [22:32:59]POST find Content-Length [22:32:59]Host: 172.17.62.196:8080 [22:32:59]Content-Length: 947 [22:32:59]Content-Type: application/json [22:32:59] [22:32:59]POST finish read [22:32:59]Found Content-Length = 947 [22:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16640", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:59]execute_script... [22: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)16640", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:59]POST & json_proto [22:32:59]process_json_proto [22:32:59]json parsed OK: [22:32:59]protocol is kg_v1.0 [22:32:59]action value=close_receipt [22:32:59]process_action close_receipt [22:32:59]cmd_close_receipt [22:32:59]MH_GetDate [22:32:59]Write to MH i2c: F0 00 00 74 0C 6F [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: F0 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: F0 09 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: F0 09 00 74 0C 00 1E 9B F0 66 CE CC 0E 66 95 [22:32:59]GetLastDocTimeStamp 1727044228 [22:32:59]current date 1727044382 [22:32:59]FM_GetShiftState [22:32:59]SAM_PROTO_GetShiftState [22:32:59]wFMCommunicate request_size=4 [22:32:59]MH_SAM_APDU [22:32:59]CAPDU: 80 13 01 00 [22:32:59]Write to MH i2c: E2 08 00 75 0C 80 13 01 00 00 00 00 00 FE [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:59]Read from MH i2c: E2 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 0E 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 0E 00 75 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 BE [22:32:59]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:32:59]wFMCommunicate OK [22:32:59]SAM_PROTO_GetShiftState done [22:32:59]FM_GetShiftState done [22:32:59]opened in 1726963967 [22:32:59]opened+sec_in_day 1727050367 [22:32:59]quantity*price = 9500 [22:32:59]sum+1 = 9501 [22:32:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 112 22.09.2024 22:33 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18716 ФПД: 8980344739113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223302&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18716&fm=8980344739113&tin=02508201610067®Number=0000000000152968&sum=14500 0 [22:33:00]StoreToDocumentArchive [22:33:00]shift 180 fd 18716 [22:33:00]save to /storage/0180/doc_00018716 [22:33:00]save last doc name /storage/0180/doc_00018716 to /storage/kkm_last_doc_name [22:33:00]save OK [22:33:00]Clear old archive folders... [22:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=402 [22:33:00]tlvbuf is 001B9930 [22:33:00]SAM_PROTO_ClearQueue [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 09 00 00 [22:33:00]Write to MH i2c: E2 08 00 82 0C 80 09 00 00 00 00 00 00 00 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 82 0C 00 90 00 02 [22:33:00]RAPDU: 90 00 [22:33:00]wFMCommunicate OK [22:33:00]SAM_PROTO_ClearQueue done [22:33:00]KKMCreateOFDPacket [22:33:00]OFDProtocolAddRootSTLVToBuf [22:33:00]FM_MakeSignedData [22:33:00]FM_MakeSignedData [22:33:00]SAM_PROTO_SignData [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 0D 01 02 [22:33:00]Write to MH i2c: E2 08 00 83 0C 80 0D 01 02 00 00 00 00 08 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 83 0C 00 90 00 03 [22:33:00]RAPDU: 90 00 [22:33:00]wFMCommunicate OK [22:33:00]wFMCommunicate request_size=255 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 [22:33:00]Write to MH i2c: E2 02 01 84 0C 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 00 00 12 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 03 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 03 00 84 0C 00 90 00 04 [22:33:01]RAPDU: 90 00 [22:33:01]wFMCommunicate OK [22:33:01]wFMCommunicate request_size=161 [22:33:01]MH_SAM_APDU [22:33:01]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 1E 9B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1C 49 00 00 35 04 06 00 08 2A E6 42 15 29 [22:33:01]Write to MH i2c: E2 A4 00 85 0C 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 1E 9B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1C 49 00 00 35 04 06 00 08 2A E6 42 15 29 00 00 22 [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 03 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 03 00 85 0C 00 90 00 05 [22:33:01]RAPDU: 90 00 [22:33:01]wFMCommunicate OK [22:33:01]wFMCommunicate request_size=4 [22:33:01]MH_SAM_APDU [22:33:01]CAPDU: 80 0D 03 02 [22:33:01]Write to MH i2c: E2 08 00 86 0C 80 0D 03 02 00 00 00 00 0D [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 0B 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 0B 00 86 0C 00 29 58 0A 71 9B 98 28 68 90 00 CD [22:33:01]RAPDU: 29 58 0A 71 9B 98 28 68 90 00 [22:33:01]wFMCommunicate OK [22:33:01]SAM_PROTO_SignData done [22:33:01]FM_MakeSignedData done [22:33:01]CreateOFDProtocolMessage [22:33:01]wFMCommunicate request_size=4 [22:33:01]MH_SAM_APDU [22:33:01]CAPDU: 80 11 00 00 [22:33:01]Write to MH i2c: E2 08 00 87 0C 80 11 00 00 00 00 00 00 0D [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 17 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 17 00 87 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 66 [22:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:33:01]wFMCommunicate OK [22:33:01]CreateOFDProtocolMessage done [22:33:01]OFDSenderStorePacket 18716 [22:33:01]StoreOFDPacket docnum=18716 [22:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A6 01 00 00 79 D1 9E 01 32 3F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 1E 9B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1C 49 00 00 35 04 06 00 08 2A E6 42 15 29 29 58 0A 71 9B 98 28 68 [22:33:01]CheckFolder [22:33:01]dirname=/storage/ofd_packets [22:33:01]CheckFolder done [22:33:01]ProducePacketName [22:33:01]name=ofd_packets/00018716 [22:33:01]NVStorageSaveData ofd_packets/00018716 [22:33:01]File name is /storage/ofd_packets/00018716 [22:33:01]Write 452 bytes [22:33:01]NVStorageSaveData done [22:33:01]OFDSenderStorePacket done [22:33:01]KKMCreateOFDPacket done [22:33:01]NVStorageSaveData kkm_last_timestamp [22:33:01]File name is /storage/kkm_last_timestamp [22:33:01]Write 4 bytes [22:33:01]NVStorageSaveData done [22:33:01]ExternCall_PrintAddStr [22:33:01]wPrintStart [22:33:01]Write to MH i2c: 01 00 00 88 0C 94 [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: 01 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: 01 07 00 [22:33:01]MH_I2C_Read... [22:33:01]OFD Sender: Processing packet 18716 [packets to send 7, broken 6] [22:33:01]ProducePacketName [22:33:01]name=ofd_packets/00018716 [22:33:01]OFD Sender: To server: pG, [22:33:01]CommunicateWithHost lk.salyk.kg:30040 [22:33:01]ConnectInit lk.salyk.kg [22:33:01]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 FF 0F A9 [22:33:01]RasterBufferAndPrint [22:33:01]line Счет N : (3)16640 [22:33:01]line ИНН: 02508201610067 [22:33:01]line Контрольно-Кассовый Чек [22:33:01]line ПРОДАЖА [22:33:01]line Товар: 4700000482757 [22:33:01]line Напиток Nitro Fr газ манг,клуб ж/б 0,45л [22:33:01]line 1.000 * 95.00 [22:33:01]line = 95.00 [22:33:01]line НДС 12% НСП 1% [22:33:01]line > о реализуемом товаре [22:33:01]line Товар: 4700000160358 [22:33:01]line Вода Легенда 1л [22:33:01]line 1.000 * 50.00 [22:33:01]line = 50.00 [22:33:01]line НДС 12% НСП 1% [22:33:01]line > о реализуемом товаре [22:33:01]line ИТОГО: 145.00 [22:33:01]line НСП 1% : 1.28 [22:33:01]line НДС 12% : 15.40 [22:33:01]line Наличными: 145.00 [22:33:01]line Безнал.: 0.00 [22:33:01]line Место: АЗС № 176 "Партнер Нефть" [22:33:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:33:01]line СНО: Общий режим [22:33:01]line Чек 112 22.09.2024 22:33 [22:33:01]line Смена: 180 ФФД: 1.0 [22:33:01]line ЗНМ: 0300000010 [22:33:01]line РНМ: 0000000000152968 [22:33:01]line Версия ККМ: v1.0 [22:33:01]line ФМ: 0000000000959456 [22:33:01]line ФД: 18716 [22:33:01]line ФПД: 8980344739113 [22:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223302&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18716&fm=8980344739113&tin=02508201610067®Number=0000000000152968&sum=14500 [22:33:01]line 0 [22:33:01]written 0, free lines is 4095 [22:33:01]Connected sock=10 [22:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A6 01 00 00 79 D1 9E 01 32 3F 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 1E 9B F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1C 49 00 00 35 04 06 00 08 2A E6 42 15 29 29 58 0A 71 9B 98 28 68 [22:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 51 6A 47 00 FE 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1C 49 00 00 F4 03 04 00 84 44 F0 66 B6 04 01 00 00 A7 AE 60 99 F6 72 78 76 [22:33:02]CommunicateWithHost err = 0 [22:33:02]CheckOFDResponse [22:33:02]1017 (14) - 77093643461234 [22:33:02]1041 (16) - 0000000000959456 [22:33:02]1040 (4) - 18716 [22:33:02]1012 (4) - 22.09.2024 16:23 [22:33:02]1206 (1) - 0 [22:33:02]OFD Sender: Remove packet 18716 [22:33:02]ProducePacketName [22:33:02]name=ofd_packets/00018716 [22:33:02]NVStorageDeleteData [22:33:02]Write to MH i2c: 01 00 00 B7 0C C3 [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: 01 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: 01 07 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 C7 0C 9D [22:33:02]RasterBufferAndPrint [22:33:02]line [22:33:02]line [22:33:02]line [22:33:02]line [22:33:02]line [22:33:02]written 0, free lines is 3280 [22:33:02]MH_Cut [22:33:02]Write to MH i2c: D1 01 00 BE 0C 01 9C [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: D1 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: D1 01 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: D1 01 00 BE 0C 00 9B [22:33:02]Write to MH i2c: 01 00 00 BF 0C CB [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]OFD Sender: No OFD packet to send [22:33:02]*** Cut start [22:33:02]*** Partial cut [22:33:02]*** CUTSNS_PIN = 1 [22:33:03]*** CUTSNS_PIN = 0 [22:33:03]*** Brake cut motor [22:33:03]Read from MH i2c: 01 [22:33:03]MH_I2C_Read... [22:33:03]*** Stop cut motor [22:33:03]*** Cut end [22:33:03]Read from MH i2c: 01 07 00 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: 01 07 00 BF 0C 00 00 00 00 00 FF 0F E0 [22:33:03]process_action close_receipt done [22:33:03]requested_data is exist [22:33:03]produce_requested_data [22:33:03]requested_item fm.sn is exist - process it [22:33:03]wFMCommunicate request_size=4 [22:33:03]MH_SAM_APDU [22:33:03]CAPDU: 80 11 00 00 [22:33:03]Write to MH i2c: E2 08 00 C0 0C 80 11 00 00 00 00 00 00 46 [22:33:03]Write i2c OK [22:33:03]MH_I2C_Read... [22:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:03]Read from MH i2c: E2 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 17 00 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 17 00 C0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9F [22:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:33:03]wFMCommunicate OK [22:33:03]requested_item fd.num is exist - process it [22:33:03]SAM_PROTO_GetFieldsCounters [22:33:03]wFMCommunicate request_size=4 [22:33:03]MH_SAM_APDU [22:33:03]CAPDU: 80 13 00 00 [22:33:03]Write to MH i2c: E2 08 00 C1 0C 80 13 00 00 00 00 00 00 49 [22:33:03]Write i2c OK [22:33:03]MH_I2C_Read... [22:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:03]Read from MH i2c: E2 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 62 00 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 62 00 C1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1C 49 00 00 0E 04 04 00 B4 00 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 DF [22:33:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1C 49 00 00 0E 04 04 00 B4 00 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 [22:33:03]wFMCommunicate OK [22:33:03]SAM_PROTO_GetFieldsCounters done [22:33:03]requested_item shift.num is exist - process it [22:33:03]requested_item shift.opened is exist - process it [22:33:03]req_shift_opened [22:33:03]FM_GetShiftState [22:33:03]SAM_PROTO_GetShiftState [22:33:03]wFMCommunicate request_size=4 [22:33:03]MH_SAM_APDU [22:33:03]CAPDU: 80 13 01 00 [22:33:03]Write to MH i2c: E2 08 00 C2 0C 80 13 01 00 00 00 00 00 4B [22:33:03]Write i2c OK [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 [22:33:03]MH_I2C_Read... [22:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:03]Read from MH i2c: E2 0E 00 [22:33:03]MH_I2C_Read... [22:33:03]Read from MH i2c: E2 0E 00 C2 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0B [22:33:03]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:33:03]wFMCommunicate OK [22:33:03]SAM_PROTO_GetShiftState done [22:33:03]FM_GetShiftState done [22:33:03]req_shift_opened done [22:33:03]requested_item shift.open_date is exist - process it [22:33:03]req_shift_open_date [22:33:03]req_shift_open_date done [22:33:03]produce_requested_data done [22:33:03]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18716,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:33:03]process_action_free close_receipt [22:33:03]json_value_free [22:33:03]json_value_free done [22:33:03]process_json_proto returns [22:33:03]Send response to host [22:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18716,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:33:03]free response buf [22:33:03]execute_script done [22:33:03]execute_script returns [22:33:03]free content buf [22:33:03]Sock 8.Close socket [22:33:03]Sock 8.Thread stoped [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38: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:50]accept exits with 9 [22:45:50]New connection [22:45:50]New thread 3067129188 created [22:45:50]Thread 3067272548 joined [22:45:50]Waiting for new connection... [22:45:50] Sock 9.Parse request [22:45:50]Sock 9.Check first char [22:45:50]Sock 9.First char is OK [22:45:50]request: POST /json_proto HTTP/1.0 [22:45:50]Method: POST [22:45:50]URL: /json_proto [22:45:50]Method is POST - this is cgi request [22:45:50]url: /json_proto [22:45:50]query_string will be loaded in cgi processing [22:45:50]execute_cgi json_proto POST (null) [22:45:50]execute_cgi path=json_proto method=POST [22:45:50]POST find Content-Length [22:45:50]Host: 172.17.62.196:8080 [22:45:50]Content-Length: 1539 [22:45:50]Content-Type: application/json [22:45:50] [22:45:50]POST finish read [22:45:50]Found Content-Length = 1539 [22:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16641", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:50]execute_script... [22:45:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16641", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:50]POST & json_proto [22:45:50]process_json_proto [22:45:50]json parsed OK: [22:45:50]protocol is kg_v1.0 [22:45:50]action value=close_receipt [22:45:50]process_action close_receipt [22:45:50]cmd_close_receipt [22:45:50]MH_GetDate [22:45:50]Write to MH i2c: F0 00 00 C3 0C BE [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: F0 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: F0 09 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: F0 09 00 C3 0C 00 20 9E F0 66 CE CC 0E 66 E9 [22:45:50]GetLastDocTimeStamp 1727044382 [22:45:50]current date 1727045152 [22:45:50]FM_GetShiftState [22:45:50]SAM_PROTO_GetShiftState [22:45:50]wFMCommunicate request_size=4 [22:45:50]MH_SAM_APDU [22:45:50]CAPDU: 80 13 01 00 [22:45:50]Write to MH i2c: E2 08 00 C4 0C 80 13 01 00 00 00 00 00 4D [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:50]Read from MH i2c: E2 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 0E 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 0E 00 C4 0C 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 0D [22:45:50]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:45:50]wFMCommunicate OK [22:45:50]SAM_PROTO_GetShiftState done [22:45:50]FM_GetShiftState done [22:45:50]opened in 1726963967 [22:45:50]opened+sec_in_day 1727050367 [22:45:50]quantity*price = 7000 [22:45:50]sum+1 = 7001 [22:45:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46254948 Драже mentos жев фрукты ролл 37г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 271.00 НСП 1% : 2.39 НДС 12% : 28.76 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 113 22.09.2024 22:45 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18717 ФПД: 151673754701202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T224553&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18717&fm=151673754701202&tin=02508201610067®Number=0000000000152968&sum=27100 0 [22:45:51]StoreToDocumentArchive [22:45:51]shift 180 fd 18717 [22:45:51]save to /storage/0180/doc_00018717 [22:45:51]save last doc name /storage/0180/doc_00018717 to /storage/kkm_last_doc_name [22:45:51]save OK [22:45:51]Clear old archive folders... [22:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=638 [22:45:51]tlvbuf is 001FF270 [22:45:51]SAM_PROTO_ClearQueue [22:45:51]wFMCommunicate request_size=4 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 09 00 00 [22:45:51]Write to MH i2c: E2 08 00 D1 0C 80 09 00 00 00 00 00 00 4F [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 [22:45:51]MH_I2C_Read... [22:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:51]Read from MH i2c: E2 03 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [22:45:51]RAPDU: 90 00 [22:45:51]wFMCommunicate OK [22:45:51]SAM_PROTO_ClearQueue done [22:45:51]KKMCreateOFDPacket [22:45:51]OFDProtocolAddRootSTLVToBuf [22:45:51]FM_MakeSignedData [22:45:51]FM_MakeSignedData [22:45:51]SAM_PROTO_SignData [22:45:51]wFMCommunicate request_size=4 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 0D 01 02 [22:45:51]Write to MH i2c: E2 08 00 D2 0C 80 0D 01 02 00 00 00 00 57 [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:51]Read from MH i2c: E2 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 03 00 [22:45:51]MH_I2C_Read... [22:45:51]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [22:45:51]RAPDU: 90 00 [22:45:51]wFMCommunicate OK [22:45:51]wFMCommunicate request_size=255 [22:45:51]MH_SAM_APDU [22:45:51]CAPDU: 80 0D 02 02 FA 03 00 7E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [22:45:51]Write to MH i2c: E2 02 01 D3 0C 80 0D 02 02 FA 00 03 00 7E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 43 [22:45:51]Write i2c OK [22:45:51]MH_I2C_Read... [22:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:52]Read from MH i2c: E2 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [22:45:52]RAPDU: 90 00 [22:45:52]wFMCommunicate OK [22:45:52]wFMCommunicate request_size=255 [22:45:52]MH_SAM_APDU [22:45:52]CAPDU: 80 0D 02 02 FA 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 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [22:45:52]Write to MH i2c: E2 02 01 D4 0C 80 0D 02 02 FA 00 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 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 D8 [22:45:52]Write i2c OK [22:45:52]MH_I2C_Read... [22:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:52]Read from MH i2c: E2 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 D4 0C 00 90 00 54 [22:45:52]RAPDU: 90 00 [22:45:52]wFMCommunicate OK [22:45:52]wFMCommunicate request_size=147 [22:45:52]MH_SAM_APDU [22:45:52]CAPDU: 80 0D 02 02 8E F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0B 00 00 00 00 07 04 06 00 DC 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 71 00 00 00 F4 03 04 00 21 9E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1D 49 00 00 35 04 06 00 89 F2 4C 45 4D 92 [22:45:52]Write to MH i2c: E2 96 00 D5 0C 80 0D 02 02 8E 00 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0B 00 00 00 00 07 04 06 00 DC 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 71 00 00 00 F4 03 04 00 21 9E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1D 49 00 00 35 04 06 00 89 F2 4C 45 4D 92 00 00 B6 [22:45:52]Write i2c OK [22:45:52]MH_I2C_Read... [22:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:52]Read from MH i2c: E2 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 03 00 D5 0C 00 90 00 55 [22:45:52]RAPDU: 90 00 [22:45:52]wFMCommunicate OK [22:45:52]wFMCommunicate request_size=4 [22:45:52]MH_SAM_APDU [22:45:52]CAPDU: 80 0D 03 02 [22:45:52]Write to MH i2c: E2 08 00 D6 0C 80 0D 03 02 00 00 00 00 5D [22:45:52]Write i2c OK [22:45:52]MH_I2C_Read... [22:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:52]Read from MH i2c: E2 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 0B 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 0B 00 D6 0C 00 16 81 2E 5B D8 52 FB 83 90 00 26 [22:45:52]RAPDU: 16 81 2E 5B D8 52 FB 83 90 00 [22:45:52]wFMCommunicate OK [22:45:52]SAM_PROTO_SignData done [22:45:52]FM_MakeSignedData done [22:45:52]CreateOFDProtocolMessage [22:45:52]wFMCommunicate request_size=4 [22:45:52]MH_SAM_APDU [22:45:52]CAPDU: 80 11 00 00 [22:45:52]Write to MH i2c: E2 08 00 D7 0C 80 11 00 00 00 00 00 00 5D [22:45:52]Write i2c OK [22:45:52]MH_I2C_Read... [22:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:52]Read from MH i2c: E2 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 17 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: E2 17 00 D7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B6 [22:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:45:52]wFMCommunicate OK [22:45:52]CreateOFDProtocolMessage done [22:45:52]OFDSenderStorePacket 18717 [22:45:52]StoreOFDPacket docnum=18717 [22:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 92 02 00 00 4D 33 8A 02 12 B4 5A 03 01 00 03 00 7E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 3C 0B 00 00 00 00 07 04 06 00 DC 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 71 00 00 00 F4 03 04 00 21 9E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1D 49 00 00 35 04 06 00 89 F2 4C 45 4D 92 16 81 2E 5B D8 52 FB 83 [22:45:52]CheckFolder [22:45:52]dirname=/storage/ofd_packets [22:45:52]CheckFolder done [22:45:52]ProducePacketName [22:45:52]name=ofd_packets/00018717 [22:45:52]NVStorageSaveData ofd_packets/00018717 [22:45:52]File name is /storage/ofd_packets/00018717 [22:45:52]Write 688 bytes [22:45:52]NVStorageSaveData done [22:45:52]OFDSenderStorePacket done [22:45:52]KKMCreateOFDPacket done [22:45:52]NVStorageSaveData kkm_last_timestamp [22:45:52]File name is /storage/kkm_last_timestamp [22:45:52]Write 4 bytes [22:45:52]NVStorageSaveData done [22:45:52]ExternCall_PrintAddStr [22:45:52]wPrintStart [22:45:52]Write to MH i2c: 01 00 00 D8 0C E4 [22:45:52]Write i2c OK [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: 01 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: 01 07 00 [22:45:52]MH_I2C_Read... [22:45:52]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 FF 0F F9 [22:45:52]RasterBufferAndPrint [22:45:52]line Счет N : (3)16641 [22:45:52]line ИНН: 02508201610067 [22:45:52]line Контрольно-Кассовый Чек [22:45:52]line ПРОДАЖА [22:45:52]line Товар: 4870202521148 [22:45:52]line Напиток MAXI чай зел лимон 0.45л [22:45:52]line 1.000 * 70.00 [22:45:52]line = 70.00 [22:45:52]line НДС 12% НСП 1% [22:45:52]line > о реализуемом товаре [22:45:52]line Товар: 46254948 [22:45:52]line Драже mentos жев фрукты ролл 37г [22:45:52]line 1.000 * 75.00 [22:45:52]line = 75.00 [22:45:52]line НДС 12% НСП 1% [22:45:52]line > о реализуемом товаре [22:45:52]line Товар: 4011100977624 [22:45:52]line Шок Батончик Баунти 55г [22:45:52]line 1.000 * 59.00 [22:45:52]line = 59.00 [22:45:52]line НДС 12% НСП 1% [22:45:52]line > о реализуемом товаре [22:45:52]line Товар: 6931280300549 [22:45:52]line Зажигалка Cricket ПН пьезо [22:45:52]line 1.000 * 67.00 [22:45:52]line = 67.00 [22:45:52]line НДС 12% НСП 1% [22:45:52]line > о реализуемом товаре [22:45:52]line ИТОГО: 271.00 [22:45:52]line НСП 1% : 2.39 [22:45:52]line НДС 12% : 28.76 [22:45:52]line Наличными: 271.00 [22:45:52]line Безнал.: 0.00 [22:45:52]line Место: АЗС № 176 "Партнер Нефть" [22:45:52]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:45:52]line СНО: Общий режим [22:45:52]line Чек 113 22.09.2024 22:45 [22:45:52]line Смена: 180 ФФД: 1.0 [22:45:52]line ЗНМ: 0300000010 [22:45:52]line РНМ: 0000000000152968 [22:45:52]line Версия ККМ: v1.0 [22:45:52]line ФМ: 0000000000959456 [22:45:52]line ФД: 18717 [22:45:52]line ФПД: 151673754701202 [22:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T224553&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18717&fm=151673754701202&tin=02508201610067®Number=0000000000152968&sum=27100 [22:45:52]line 0 [22:45:52]OFD Sender: Processing packet 18717 [packets to send 7, broken 6] [22:45:52]ProducePacketName [22:45:52]name=ofd_packets/00018717 [22:45:52]OFD Sender: To server: pG, [22:45:52]CommunicateWithHost lk.salyk.kg:30040 [22:45:52]ConnectInit lk.salyk.kg [22:45:52]written 0, free lines is 4095 [22:45:53]Connected sock=8 [22:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 92 02 00 00 4D 33 8A 02 12 B4 5A 03 01 00 03 00 7E 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 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 3C 0B 00 00 00 00 07 04 06 00 DC 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 71 00 00 00 F4 03 04 00 21 9E F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1D 49 00 00 35 04 06 00 89 F2 4C 45 4D 92 16 81 2E 5B D8 52 FB 83 [22:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EB 5D 47 00 E2 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1D 49 00 00 F4 03 04 00 87 47 F0 66 B6 04 01 00 00 2D 30 12 51 10 5B 72 A9 [22:45:53]CommunicateWithHost err = 0 [22:45:53]CheckOFDResponse [22:45:53]1017 (14) - 77093643461234 [22:45:53]1041 (16) - 0000000000959456 [22:45:53]1040 (4) - 18717 [22:45:53]1012 (4) - 22.09.2024 16:36 [22:45:53]1206 (1) - 0 [22:45:53]OFD Sender: Remove packet 18717 [22:45:53]ProducePacketName [22:45:53]name=ofd_packets/00018717 [22:45:53]NVStorageDeleteData [22:45:53]Write to MH i2c: 01 00 00 14 0D 21 [22:45:53]Write i2c OK [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: 01 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: 01 07 00 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 1F 0C 53 [22:45:53]RasterBufferAndPrint [22:45:53]line [22:45:53]line [22:45:53]line [22:45:53]line [22:45:53]line [22:45:53]written 0, free lines is 3113 [22:45:53]MH_Cut [22:45:53]Write to MH i2c: D1 01 00 1B 0D 01 FA [22:45:53]Write i2c OK [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: D1 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: D1 01 00 [22:45:53]MH_I2C_Read... [22:45:53]Read from MH i2c: D1 01 00 1B 0D 00 F9 [22:45:53]Write to MH i2c: 01 00 00 1C 0D 29 [22:45:53]Write i2c OK [22:45:53]MH_I2C_Read... [22:45:53]OFD Sender: No OFD packet to send [22:45:54]*** Cut start [22:45:54]*** Partial cut [22:45:54]*** CUTSNS_PIN = 1 [22:45:54]*** CUTSNS_PIN = 0 [22:45:54]*** Brake cut motor [22:45:54]Read from MH i2c: 01 [22:45:54]MH_I2C_Read... [22:45:54]*** Stop cut motor [22:45:54]*** Cut end [22:45:54]Read from MH i2c: 01 07 00 [22:45:54]MH_I2C_Read... [22:45:54]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 FF 0F 3E [22:45:54]process_action close_receipt done [22:45:54]requested_data is exist [22:45:54]produce_requested_data [22:45:54]requested_item fm.sn is exist - process it [22:45:54]wFMCommunicate request_size=4 [22:45:54]MH_SAM_APDU [22:45:54]CAPDU: 80 11 00 00 [22:45:54]Write to MH i2c: E2 08 00 1D 0D 80 11 00 00 00 00 00 00 A4 [22:45:54]Write i2c OK [22:45:54]MH_I2C_Read... [22:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:55]Read from MH i2c: E2 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 17 00 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 17 00 1D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FD [22:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:45:55]wFMCommunicate OK [22:45:55]requested_item fd.num is exist - process it [22:45:55]SAM_PROTO_GetFieldsCounters [22:45:55]wFMCommunicate request_size=4 [22:45:55]MH_SAM_APDU [22:45:55]CAPDU: 80 13 00 00 [22:45:55]Write to MH i2c: E2 08 00 1E 0D 80 13 00 00 00 00 00 00 A7 [22:45:55]Write i2c OK [22:45:55]MH_I2C_Read... [22:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:55]Read from MH i2c: E2 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 62 00 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 62 00 1E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1D 49 00 00 0E 04 04 00 B4 00 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 41 [22:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1D 49 00 00 0E 04 04 00 B4 00 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 [22:45:55]wFMCommunicate OK [22:45:55]SAM_PROTO_GetFieldsCounters done [22:45:55]requested_item shift.num is exist - process it [22:45:55]requested_item shift.opened is exist - process it [22:45:55]req_shift_opened [22:45:55]FM_GetShiftState [22:45:55]SAM_PROTO_GetShiftState [22:45:55]wFMCommunicate request_size=4 [22:45:55]MH_SAM_APDU [22:45:55]CAPDU: 80 13 01 00 [22:45:55]Write to MH i2c: E2 08 00 1F 0D 80 13 01 00 00 00 00 00 A9 [22:45:55]Write i2c OK [22:45:55]MH_I2C_Read... [22:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:55]Read from MH i2c: E2 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 0E 00 [22:45:55]MH_I2C_Read... [22:45:55]Read from MH i2c: E2 0E 00 1F 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 69 [22:45:55]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:45:55]wFMCommunicate OK [22:45:55]SAM_PROTO_GetShiftState done [22:45:55]FM_GetShiftState done [22:45:55]req_shift_opened done [22:45:55]requested_item shift.open_date is exist - process it [22:45:55]req_shift_open_date [22:45:55]req_shift_open_date done [22:45:55]produce_requested_data done [22:45:55]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18717,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:45:55]process_action_free close_receipt [22:45:55]json_value_free [22:45:55]json_value_free done [22:45:55]process_json_proto returns [22:45:55]Send response to host [22:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18717,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:45:55]free response buf [22:45:55]execute_script done [22:45:55]execute_script returns [22:45:55]free content buf [22:45:55]Sock 9.Close socket [22:45:55]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49: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:00]accept exits with 10 [22:55:00]New connection [22:55:00]New thread 3067272548 created [22:55:00]Thread 3067129188 joined [22:55:00]Waiting for new connection... [22:55:00] Sock 10.Parse request [22:55:00]Sock 10.Check first char [22:55:00]Sock 10.First char is OK [22:55:00]request: POST /json_proto HTTP/1.0 [22:55:00]Method: POST [22:55:00]URL: /json_proto [22:55:00]Method is POST - this is cgi request [22:55:00]url: /json_proto [22:55:00]query_string will be loaded in cgi processing [22:55:00]execute_cgi json_proto POST (null) [22:55:00]execute_cgi path=json_proto method=POST [22:55:00]POST find Content-Length [22:55:00]Host: 172.17.62.196:8080 [22:55:00]Content-Length: 790 [22:55:00]Content-Type: application/json [22:55:00] [22:55:00]POST finish read [22:55:00]Found Content-Length = 790 [22:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16642", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:00]execute_script... [22:55: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)16642", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:00]POST & json_proto [22:55:00]process_json_proto [22:55:00]json parsed OK: [22:55:00]protocol is kg_v1.0 [22:55:00]action value=close_receipt [22:55:00]process_action close_receipt [22:55:00]cmd_close_receipt [22:55:00]MH_GetDate [22:55:00]Write to MH i2c: F0 00 00 20 0D 1C [22:55:00]Write i2c OK [22:55:00]MH_I2C_Read... [22:55:00]Read from MH i2c: F0 [22:55:00]MH_I2C_Read... [22:55:00]Read from MH i2c: F0 09 00 [22:55:00]MH_I2C_Read... [22:55:00]Read from MH i2c: F0 09 00 20 0D 00 47 A0 F0 66 CE CC 0E 66 70 [22:55:00]GetLastDocTimeStamp 1727045153 [22:55:00]current date 1727045703 [22:55:00]FM_GetShiftState [22:55:00]SAM_PROTO_GetShiftState [22:55:00]wFMCommunicate request_size=4 [22:55:00]MH_SAM_APDU [22:55:00]CAPDU: 80 13 01 00 [22:55:00]Write to MH i2c: E2 08 00 21 0D 80 13 01 00 00 00 00 00 AB [22:55:00]Write i2c OK [22:55:00]MH_I2C_Read... [22:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:00]Read from MH i2c: E2 [22:55:00]MH_I2C_Read... [22:55:00]Read from MH i2c: E2 0E 00 [22:55:00]MH_I2C_Read... [22:55:00]Read from MH i2c: E2 0E 00 21 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 6B [22:55:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:55:00]wFMCommunicate OK [22:55:00]SAM_PROTO_GetShiftState done [22:55:00]FM_GetShiftState done [22:55:00]opened in 1726963967 [22:55:00]opened+sec_in_day 1727050367 [22:55:00]quantity*price = 11000 [22:55:00]sum+1 = 11001 [22:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 114 22.09.2024 22:55 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18718 ФПД: 61606434317938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225503&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18718&fm=61606434317938&tin=02508201610067®Number=0000000000152968&sum=11000 0 [22:55:01]StoreToDocumentArchive [22:55:01]shift 180 fd 18718 [22:55:01]save to /storage/0180/doc_00018718 [22:55:01]save last doc name /storage/0180/doc_00018718 to /storage/kkm_last_doc_name [22:55:01]save OK [22:55:01]Clear old archive folders... [22:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:55:01]tlvbuf is 001F7090 [22:55:01]SAM_PROTO_ClearQueue [22:55:01]wFMCommunicate request_size=4 [22:55:01]MH_SAM_APDU [22:55:01]CAPDU: 80 09 00 00 [22:55:01]Write to MH i2c: E2 08 00 2E 0D 80 09 00 00 00 00 00 00 AD [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:01]Read from MH i2c: E2 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 03 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [22:55:01]RAPDU: 90 00 [22:55:01]wFMCommunicate OK [22:55:01]SAM_PROTO_ClearQueue done [22:55:01]KKMCreateOFDPacket [22:55:01]OFDProtocolAddRootSTLVToBuf [22:55:01]FM_MakeSignedData [22:55:01]FM_MakeSignedData [22:55:01]SAM_PROTO_SignData [22:55:01]wFMCommunicate request_size=4 [22:55:01]MH_SAM_APDU [22:55:01]CAPDU: 80 0D 01 02 [22:55:01]Write to MH i2c: E2 08 00 2F 0D 80 0D 01 02 00 00 00 00 B5 [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:01]Read from MH i2c: E2 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 03 00 [22:55:01]MH_I2C_Read... [22:55:01]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [22:55:01]RAPDU: 90 00 [22:55:01]wFMCommunicate OK [22:55:01]wFMCommunicate request_size=255 [22:55:01]MH_SAM_APDU [22:55:01]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 47 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [22:55:01]Write to MH i2c: E2 02 01 30 0D 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 47 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 98 [22:55:01]Write i2c OK [22:55:01]MH_I2C_Read... [22:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:02]Read from MH i2c: E2 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 03 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [22:55:02]RAPDU: 90 00 [22:55:02]wFMCommunicate OK [22:55:02]wFMCommunicate request_size=25 [22:55:02]MH_SAM_APDU [22:55:02]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 1E 49 00 00 35 04 06 00 38 07 DD A2 26 72 [22:55:02]Write to MH i2c: E2 1C 00 31 0D 80 0D 02 02 14 00 35 36 10 04 04 00 1E 49 00 00 35 04 06 00 38 07 DD A2 26 72 00 00 5F [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:02]Read from MH i2c: E2 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 03 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [22:55:02]RAPDU: 90 00 [22:55:02]wFMCommunicate OK [22:55:02]wFMCommunicate request_size=4 [22:55:02]MH_SAM_APDU [22:55:02]CAPDU: 80 0D 03 02 [22:55:02]Write to MH i2c: E2 08 00 32 0D 80 0D 03 02 00 00 00 00 BA [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:02]Read from MH i2c: E2 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 0B 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 0B 00 32 0D 00 3C A1 F0 51 BB F8 38 C7 90 00 8B [22:55:02]RAPDU: 3C A1 F0 51 BB F8 38 C7 90 00 [22:55:02]wFMCommunicate OK [22:55:02]SAM_PROTO_SignData done [22:55:02]FM_MakeSignedData done [22:55:02]CreateOFDProtocolMessage [22:55:02]wFMCommunicate request_size=4 [22:55:02]MH_SAM_APDU [22:55:02]CAPDU: 80 11 00 00 [22:55:02]Write to MH i2c: E2 08 00 33 0D 80 11 00 00 00 00 00 00 BA [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:02]Read from MH i2c: E2 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 17 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: E2 17 00 33 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [22:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:55:02]wFMCommunicate OK [22:55:02]CreateOFDProtocolMessage done [22:55:02]OFDSenderStorePacket 18718 [22:55:02]StoreOFDPacket docnum=18718 [22:55:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 AE 17 16 01 05 92 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 47 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1E 49 00 00 35 04 06 00 38 07 DD A2 26 72 3C A1 F0 51 BB F8 38 C7 [22:55:02]CheckFolder [22:55:02]dirname=/storage/ofd_packets [22:55:02]CheckFolder done [22:55:02]ProducePacketName [22:55:02]name=ofd_packets/00018718 [22:55:02]NVStorageSaveData ofd_packets/00018718 [22:55:02]File name is /storage/ofd_packets/00018718 [22:55:02]Write 316 bytes [22:55:02]NVStorageSaveData done [22:55:02]OFDSenderStorePacket done [22:55:02]KKMCreateOFDPacket done [22:55:02]NVStorageSaveData kkm_last_timestamp [22:55:02]File name is /storage/kkm_last_timestamp [22:55:02]Write 4 bytes [22:55:02]NVStorageSaveData done [22:55:02]ExternCall_PrintAddStr [22:55:02]wPrintStart [22:55:02]Write to MH i2c: 01 00 00 34 0D 41 [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 34 0D 00 00 00 00 00 FF 0F 56 [22:55:02]RasterBufferAndPrint [22:55:02]line Счет N : (3)16642 [22:55:02]line ИНН: 02508201610067 [22:55:02]line Контрольно-Кассовый Чек [22:55:02]line ПРОДАЖА [22:55:02]line Товар: 4870001570071 [22:55:02]line Напиток Pepsi 1л [22:55:02]line 1.000 * 110.00 [22:55:02]line = 110.00 [22:55:02]line НДС 12% НСП 1% [22:55:02]line > о реализуемом товаре [22:55:02]line ИТОГО: 110.00 [22:55:02]line НСП 1% : 0.97 [22:55:02]line НДС 12% : 11.68 [22:55:02]line Наличными: 0.00 [22:55:02]line Безнал.: 110.00 [22:55:02]line Место: АЗС № 176 "Партнер Нефть" [22:55:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:55:02]line СНО: Общий режим [22:55:02]line Чек 114 22.09.2024 22:55 [22:55:02]line Смена: 180 ФФД: 1.0 [22:55:02]line ЗНМ: 0300000010 [22:55:02]line РНМ: 0000000000152968 [22:55:02]line Версия ККМ: v1.0 [22:55:02]line Платежная система: Бакай Банк [22:55:02]line ФМ: 0000000000959456 [22:55:02]line ФД: 18718 [22:55:02]line ФПД: 61606434317938 [22:55:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225503&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18718&fm=61606434317938&tin=02508201610067®Number=0000000000152968&sum=11000 [22:55:02]line 0 [22:55:02]OFD Sender: Processing packet 18718 [packets to send 7, broken 6] [22:55:02]ProducePacketName [22:55:02]name=ofd_packets/00018718 [22:55:02]OFD Sender: To server: pG, [22:55:02]CommunicateWithHost lk.salyk.kg:30040 [22:55:02]ConnectInit lk.salyk.kg [22:55:02]written 0, free lines is 4095 [22:55:02]Connected sock=9 [22:55:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 AE 17 16 01 05 92 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 47 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1E 49 00 00 35 04 06 00 38 07 DD A2 26 72 3C A1 F0 51 BB F8 38 C7 [22:55:03]Write to MH i2c: 01 00 00 5E 0D 6B [22:55:03]Write i2c OK [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: 01 [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: 01 07 00 [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 08 0D 87 [22:55:03]RasterBufferAndPrint [22:55:03]line [22:55:03]line [22:55:03]line [22:55:03]line [22:55:03]line [22:55:03]written 0, free lines is 3345 [22:55:03]MH_Cut [22:55:03]Write to MH i2c: D1 01 00 65 0D 01 44 [22:55:03]Write i2c OK [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: D1 [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: D1 01 00 [22:55:03]MH_I2C_Read... [22:55:03]Read from MH i2c: D1 01 00 65 0D 00 43 [22:55:03]Write to MH i2c: 01 00 00 66 0D 73 [22:55:03]Write i2c OK [22:55:03]MH_I2C_Read... [22:55:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 50 54 47 00 6E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1E 49 00 00 F4 03 04 00 AD 49 F0 66 B6 04 01 00 00 2F FD 3E 1A B9 6D F1 54 [22:55:03]CommunicateWithHost err = 0 [22:55:03]CheckOFDResponse [22:55:03]1017 (14) - 77093643461234 [22:55:03]1041 (16) - 0000000000959456 [22:55:03]1040 (4) - 18718 [22:55:03]1012 (4) - 22.09.2024 16:45 [22:55:03]1206 (1) - 0 [22:55:03]OFD Sender: Remove packet 18718 [22:55:03]ProducePacketName [22:55:03]name=ofd_packets/00018718 [22:55:03]NVStorageDeleteData [22:55:03]OFD Sender: No OFD packet to send [22:55:03]*** Cut start [22:55:03]*** Partial cut [22:55:03]*** CUTSNS_PIN = 1 [22:55:03]*** CUTSNS_PIN = 0 [22:55:03]*** Brake cut motor [22:55:04]Read from MH i2c: 01 [22:55:04]MH_I2C_Read... [22:55:04]*** Stop cut motor [22:55:04]*** Cut end [22:55:04]Read from MH i2c: 01 07 00 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [22:55:04]process_action close_receipt done [22:55:04]requested_data is exist [22:55:04]produce_requested_data [22:55:04]requested_item fm.sn is exist - process it [22:55:04]wFMCommunicate request_size=4 [22:55:04]MH_SAM_APDU [22:55:04]CAPDU: 80 11 00 00 [22:55:04]Write to MH i2c: E2 08 00 67 0D 80 11 00 00 00 00 00 00 EE [22:55:04]Write i2c OK [22:55:04]MH_I2C_Read... [22:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:04]Read from MH i2c: E2 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 17 00 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 17 00 67 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 47 [22:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:55:04]wFMCommunicate OK [22:55:04]requested_item fd.num is exist - process it [22:55:04]SAM_PROTO_GetFieldsCounters [22:55:04]wFMCommunicate request_size=4 [22:55:04]MH_SAM_APDU [22:55:04]CAPDU: 80 13 00 00 [22:55:04]Write to MH i2c: E2 08 00 68 0D 80 13 00 00 00 00 00 00 F1 [22:55:04]Write i2c OK [22:55:04]MH_I2C_Read... [22:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:04]Read from MH i2c: E2 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 62 00 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 62 00 68 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1E 49 00 00 0E 04 04 00 B4 00 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 8F [22:55:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1E 49 00 00 0E 04 04 00 B4 00 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 [22:55:04]wFMCommunicate OK [22:55:04]SAM_PROTO_GetFieldsCounters done [22:55:04]requested_item shift.num is exist - process it [22:55:04]requested_item shift.opened is exist - process it [22:55:04]req_shift_opened [22:55:04]FM_GetShiftState [22:55:04]SAM_PROTO_GetShiftState [22:55:04]wFMCommunicate request_size=4 [22:55:04]MH_SAM_APDU [22:55:04]CAPDU: 80 13 01 00 [22:55:04]Write to MH i2c: E2 08 00 69 0D 80 13 01 00 00 00 00 00 F3 [22:55:04]Write i2c OK [22:55:04]MH_I2C_Read... [22:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:04]Read from MH i2c: E2 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 0E 00 [22:55:04]MH_I2C_Read... [22:55:04]Read from MH i2c: E2 0E 00 69 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B3 [22:55:04]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:55:04]wFMCommunicate OK [22:55:04]SAM_PROTO_GetShiftState done [22:55:04]FM_GetShiftState done [22:55:04]req_shift_opened done [22:55:04]requested_item shift.open_date is exist - process it [22:55:04]req_shift_open_date [22:55:04]req_shift_open_date done [22:55:04]produce_requested_data done [22:55:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18718,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:55:04]process_action_free close_receipt [22:55:04]json_value_free [22:55:04]json_value_free done [22:55:04]process_json_proto returns [22:55:04]Send response to host [22:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18718,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:55:04]free response buf [22:55:04]execute_script done [22:55:04]execute_script returns [22:55:04]free content buf [22:55:04]Sock 10.Close socket [22:55:04]Sock 10.Thread stoped [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:57]accept exits with 8 [22:57:57]New connection [22:57:57]New thread 3067129188 created [22:57:57]Thread 3067272548 joined [22:57:57]Waiting for new connection... [22:57:57] Sock 8.Parse request [22:57:57]Sock 8.Check first char [22:57:57]Sock 8.First char is OK [22:57:57]request: POST /json_proto HTTP/1.0 [22:57:57]Method: POST [22:57:57]URL: /json_proto [22:57:57]Method is POST - this is cgi request [22:57:57]url: /json_proto [22:57:57]query_string will be loaded in cgi processing [22:57:57]execute_cgi json_proto POST (null) [22:57:57]execute_cgi path=json_proto method=POST [22:57:57]POST find Content-Length [22:57:57]Host: 172.17.62.196:8080 [22:57:57]Content-Length: 622 [22:57:57]Content-Type: application/json [22:57:57] [22:57:57]POST finish read [22:57:57]Found Content-Length = 622 [22:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16643", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:57]execute_script... [22:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16643", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:57]POST & json_proto [22:57:57]process_json_proto [22:57:57]json parsed OK: [22:57:57]protocol is kg_v1.0 [22:57:57]action value=close_receipt [22:57:57]process_action close_receipt [22:57:57]cmd_close_receipt [22:57:57]MH_GetDate [22:57:57]Write to MH i2c: F0 00 00 6A 0D 66 [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: F0 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: F0 09 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: F0 09 00 6A 0D 00 F7 A0 F0 66 CE CC 0E 66 6A [22:57:57]GetLastDocTimeStamp 1727045703 [22:57:57]current date 1727045879 [22:57:57]FM_GetShiftState [22:57:57]SAM_PROTO_GetShiftState [22:57:57]wFMCommunicate request_size=4 [22:57:57]MH_SAM_APDU [22:57:57]CAPDU: 80 13 01 00 [22:57:57]Write to MH i2c: E2 08 00 6B 0D 80 13 01 00 00 00 00 00 F5 [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:57]Read from MH i2c: E2 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: E2 0E 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: E2 0E 00 6B 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 B5 [22:57:57]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:57:57]wFMCommunicate OK [22:57:57]SAM_PROTO_GetShiftState done [22:57:57]FM_GetShiftState done [22:57:57]opened in 1726963967 [22:57:57]opened+sec_in_day 1727050367 [22:57:57]quantity*price = 40500 [22:57:57]sum+1 = 40501 [22:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 115 22.09.2024 22:58 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18719 ФПД: 93711149405219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225800&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18719&fm=93711149405219&tin=02508201610067®Number=0000000000152968&sum=40500 0 [22:57:58]StoreToDocumentArchive [22:57:58]shift 180 fd 18719 [22:57:58]save to /storage/0180/doc_00018719 [22:57:58]save last doc name /storage/0180/doc_00018719 to /storage/kkm_last_doc_name [22:57:58]save OK [22:57:58]Clear old archive folders... [22:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=283 [22:57:58]tlvbuf is 002056A0 [22:57:58]SAM_PROTO_ClearQueue [22:57:58]wFMCommunicate request_size=4 [22:57:58]MH_SAM_APDU [22:57:58]CAPDU: 80 09 00 00 [22:57:58]Write to MH i2c: E2 08 00 78 0D 80 09 00 00 00 00 00 00 F7 [22:57:58]Write i2c OK [22:57:58]MH_I2C_Read... [22:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:58]Read from MH i2c: E2 [22:57:58]MH_I2C_Read... [22:57:58]Read from MH i2c: E2 03 00 [22:57:58]MH_I2C_Read... [22:57:58]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [22:57:58]RAPDU: 90 00 [22:57:58]wFMCommunicate OK [22:57:58]SAM_PROTO_ClearQueue done [22:57:58]KKMCreateOFDPacket [22:57:58]OFDProtocolAddRootSTLVToBuf [22:57:58]FM_MakeSignedData [22:57:58]FM_MakeSignedData [22:57:58]SAM_PROTO_SignData [22:57:58]wFMCommunicate request_size=4 [22:57:58]MH_SAM_APDU [22:57:58]CAPDU: 80 0D 01 02 [22:57:58]Write to MH i2c: E2 08 00 79 0D 80 0D 01 02 00 00 00 00 FF [22:57:58]Write i2c OK [22:57:58]MH_I2C_Read... [22:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:58]Read from MH i2c: E2 [22:57:58]MH_I2C_Read... [22:57:58]Read from MH i2c: E2 03 00 [22:57:58]MH_I2C_Read... [22:57:58]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [22:57:58]RAPDU: 90 00 [22:57:58]wFMCommunicate OK [22:57:58]wFMCommunicate request_size=255 [22:57:58]MH_SAM_APDU [22:57:58]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F8 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 [22:57:58]Write to MH i2c: E2 02 01 7A 0D 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F8 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 00 00 51 [22:57:58]OFD Sender: No OFD packet to send [22:57:58]Write i2c OK [22:57:58]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 03 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [22:57:59]RAPDU: 90 00 [22:57:59]wFMCommunicate OK [22:57:59]wFMCommunicate request_size=42 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1F 49 00 00 35 04 06 00 55 3A D3 C5 94 23 [22:57:59]Write to MH i2c: E2 2D 00 7B 0D 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1F 49 00 00 35 04 06 00 55 3A D3 C5 94 23 00 00 23 [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 03 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [22:57:59]RAPDU: 90 00 [22:57:59]wFMCommunicate OK [22:57:59]wFMCommunicate request_size=4 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 0D 03 02 [22:57:59]Write to MH i2c: E2 08 00 7C 0D 80 0D 03 02 00 00 00 00 04 [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 0B 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 0B 00 7C 0D 00 95 46 45 2B 05 D0 77 90 90 00 2C [22:57:59]RAPDU: 95 46 45 2B 05 D0 77 90 90 00 [22:57:59]wFMCommunicate OK [22:57:59]SAM_PROTO_SignData done [22:57:59]FM_MakeSignedData done [22:57:59]CreateOFDProtocolMessage [22:57:59]wFMCommunicate request_size=4 [22:57:59]MH_SAM_APDU [22:57:59]CAPDU: 80 11 00 00 [22:57:59]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:59]Read from MH i2c: E2 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 17 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5D [22:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:57:59]wFMCommunicate OK [22:57:59]CreateOFDProtocolMessage done [22:57:59]OFDSenderStorePacket 18719 [22:57:59]StoreOFDPacket docnum=18719 [22:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 01 00 00 65 9A 27 01 46 90 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F8 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1F 49 00 00 35 04 06 00 55 3A D3 C5 94 23 95 46 45 2B 05 D0 77 90 [22:57:59]CheckFolder [22:57:59]dirname=/storage/ofd_packets [22:57:59]CheckFolder done [22:57:59]ProducePacketName [22:57:59]name=ofd_packets/00018719 [22:57:59]NVStorageSaveData ofd_packets/00018719 [22:57:59]File name is /storage/ofd_packets/00018719 [22:57:59]Write 333 bytes [22:57:59]NVStorageSaveData done [22:57:59]OFDSenderStorePacket done [22:57:59]KKMCreateOFDPacket done [22:57:59]NVStorageSaveData kkm_last_timestamp [22:57:59]File name is /storage/kkm_last_timestamp [22:57:59]Write 4 bytes [22:57:59]NVStorageSaveData done [22:57:59]ExternCall_PrintAddStr [22:57:59]wPrintStart [22:57:59]Write to MH i2c: 01 00 00 7E 0D 8B [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 07 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 FF 0F A0 [22:57:59]RasterBufferAndPrint [22:57:59]line Счет N : (3)16643 [22:57:59]line ИНН: 02508201610067 [22:57:59]line Контрольно-Кассовый Чек [22:57:59]line ПРОДАЖА [22:57:59]line Товар: 4630002599859 [22:57:59]line Масло Gazpromneft Standart 15w40 1л [22:57:59]line 1.000 * 405.00 [22:57:59]line = 405.00 [22:57:59]line НДС 12% НСП 1% [22:57:59]line > о реализуемом товаре [22:57:59]line ИТОГО: 405.00 [22:57:59]line НСП 1% : 3.58 [22:57:59]line НДС 12% : 43.01 [22:57:59]line Наличными: 405.00 [22:57:59]line Безнал.: 0.00 [22:57:59]line Место: АЗС № 176 "Партнер Нефть" [22:57:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:57:59]line СНО: Общий режим [22:57:59]line Чек 115 22.09.2024 22:58 [22:57:59]line Смена: 180 ФФД: 1.0 [22:57:59]line ЗНМ: 0300000010 [22:57:59]line РНМ: 0000000000152968 [22:57:59]line Версия ККМ: v1.0 [22:57:59]line ФМ: 0000000000959456 [22:57:59]line ФД: 18719 [22:57:59]line ФПД: 93711149405219 [22:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T225800&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18719&fm=93711149405219&tin=02508201610067®Number=0000000000152968&sum=40500 [22:57:59]line 0 [22:57:59]OFD Sender: Processing packet 18719 [packets to send 7, broken 6] [22:57:59]ProducePacketName [22:57:59]name=ofd_packets/00018719 [22:57:59]OFD Sender: To server: pG, [22:57:59]CommunicateWithHost lk.salyk.kg:30040 [22:57:59]ConnectInit lk.salyk.kg [22:57:59]written 0, free lines is 4095 [22:57:59]Connected sock=10 [22:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 01 00 00 65 9A 27 01 46 90 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F8 A0 F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1F 49 00 00 35 04 06 00 55 3A D3 C5 94 23 95 46 45 2B 05 D0 77 90 [22:57:59]Write to MH i2c: 01 00 00 A7 0D B4 [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 07 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 09 0D D1 [22:57:59]RasterBufferAndPrint [22:57:59]line [22:57:59]line [22:57:59]line [22:57:59]line [22:57:59]line [22:57:59]written 0, free lines is 3343 [22:57:59]MH_Cut [22:57:59]Write to MH i2c: D1 01 00 AE 0D 01 8D [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: D1 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: D1 01 00 [22:57:59]MH_I2C_Read... [22:57:59]Read from MH i2c: D1 01 00 AE 0D 00 8C [22:57:59]Write to MH i2c: 01 00 00 AF 0D BC [22:57:59]Write i2c OK [22:57:59]MH_I2C_Read... [22:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 48 37 47 00 AB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 1F 49 00 00 F4 03 04 00 5E 4A F0 66 B6 04 01 00 00 63 59 32 2D B0 67 89 FA [22:58:00]CommunicateWithHost err = 0 [22:58:00]CheckOFDResponse [22:58:00]1017 (14) - 77093643461234 [22:58:00]1041 (16) - 0000000000959456 [22:58:00]1040 (4) - 18719 [22:58:00]1012 (4) - 22.09.2024 16:48 [22:58:00]1206 (1) - 0 [22:58:00]OFD Sender: Remove packet 18719 [22:58:00]ProducePacketName [22:58:00]name=ofd_packets/00018719 [22:58:00]NVStorageDeleteData [22:58:00]OFD Sender: No OFD packet to send [22:58:00]*** Cut start [22:58:00]*** Partial cut [22:58:00]*** CUTSNS_PIN = 1 [22:58:00]*** CUTSNS_PIN = 0 [22:58:00]*** Brake cut motor [22:58:01]Read from MH i2c: 01 [22:58:01]MH_I2C_Read... [22:58:01]*** Stop cut motor [22:58:01]*** Cut end [22:58:01]Read from MH i2c: 01 07 00 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 FF 0F D1 [22:58:01]process_action close_receipt done [22:58:01]requested_data is exist [22:58:01]produce_requested_data [22:58:01]requested_item fm.sn is exist - process it [22:58:01]wFMCommunicate request_size=4 [22:58:01]MH_SAM_APDU [22:58:01]CAPDU: 80 11 00 00 [22:58:01]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [22:58:01]Write i2c OK [22:58:01]MH_I2C_Read... [22:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:01]Read from MH i2c: E2 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 17 00 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 90 [22:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:58:01]wFMCommunicate OK [22:58:01]requested_item fd.num is exist - process it [22:58:01]SAM_PROTO_GetFieldsCounters [22:58:01]wFMCommunicate request_size=4 [22:58:01]MH_SAM_APDU [22:58:01]CAPDU: 80 13 00 00 [22:58:01]Write to MH i2c: E2 08 00 B1 0D 80 13 00 00 00 00 00 00 3A [22:58:01]Write i2c OK [22:58:01]MH_I2C_Read... [22:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:01]Read from MH i2c: E2 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 62 00 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 62 00 B1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1F 49 00 00 0E 04 04 00 B4 00 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 DC [22:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 1F 49 00 00 0E 04 04 00 B4 00 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 [22:58:01]wFMCommunicate OK [22:58:01]SAM_PROTO_GetFieldsCounters done [22:58:01]requested_item shift.num is exist - process it [22:58:01]requested_item shift.opened is exist - process it [22:58:01]req_shift_opened [22:58:01]FM_GetShiftState [22:58:01]SAM_PROTO_GetShiftState [22:58:01]wFMCommunicate request_size=4 [22:58:01]MH_SAM_APDU [22:58:01]CAPDU: 80 13 01 00 [22:58:01]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [22:58:01]Write i2c OK [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 [22:58:01]MH_I2C_Read... [22:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:01]Read from MH i2c: E2 0E 00 [22:58:01]MH_I2C_Read... [22:58:01]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 FC [22:58:01]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [22:58:01]wFMCommunicate OK [22:58:01]SAM_PROTO_GetShiftState done [22:58:01]FM_GetShiftState done [22:58:01]req_shift_opened done [22:58:01]requested_item shift.open_date is exist - process it [22:58:01]req_shift_open_date [22:58:01]req_shift_open_date done [22:58:01]produce_requested_data done [22:58:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18719,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [22:58:01]process_action_free close_receipt [22:58:01]json_value_free [22:58:01]json_value_free done [22:58:01]process_json_proto returns [22:58:01]Send response to host [22:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18719,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [22:58:01]free response buf [22:58:01]execute_script done [22:58:01]execute_script returns [22:58:01]free content buf [22:58:01]Sock 8.Close socket [22:58:01]Sock 8.Thread stoped [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:48]accept exits with 9 [23:45:48]New connection [23:45:48]New thread 3067272548 created [23:45:48]Thread 3067129188 joined [23:45:48]Waiting for new connection... [23:45:48] Sock 9.Parse request [23:45:48]Sock 9.Check first char [23:45:48]Sock 9.First char is OK [23:45:48]request: POST /json_proto HTTP/1.0 [23:45:48]Method: POST [23:45:48]URL: /json_proto [23:45:48]Method is POST - this is cgi request [23:45:48]url: /json_proto [23:45:48]query_string will be loaded in cgi processing [23:45:48]execute_cgi json_proto POST (null) [23:45:48]execute_cgi path=json_proto method=POST [23:45:48]POST find Content-Length [23:45:48]Host: 172.17.62.196:8080 [23:45:48]Content-Length: 631 [23:45:48]Content-Type: application/json [23:45:48] [23:45:48]POST finish read [23:45:48]Found Content-Length = 631 [23:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16644", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:48]execute_script... [23:45: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)16644", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:48]POST & json_proto [23:45:48]process_json_proto [23:45:48]json parsed OK: [23:45:48]protocol is kg_v1.0 [23:45:48]action value=close_receipt [23:45:48]process_action close_receipt [23:45:48]cmd_close_receipt [23:45:48]MH_GetDate [23:45:48]Write to MH i2c: F0 00 00 B3 0D AF [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: F0 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: F0 09 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: F0 09 00 B3 0D 00 2F AC F0 66 CE CC 0E 66 F7 [23:45:48]GetLastDocTimeStamp 1727045880 [23:45:48]current date 1727048751 [23:45:48]FM_GetShiftState [23:45:48]SAM_PROTO_GetShiftState [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 13 01 00 [23:45:48]Write to MH i2c: E2 08 00 B4 0D 80 13 01 00 00 00 00 00 3E [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 0E 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 0E 00 B4 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 FE [23:45:48]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:45:48]wFMCommunicate OK [23:45:48]SAM_PROTO_GetShiftState done [23:45:48]FM_GetShiftState done [23:45:48]opened in 1726963967 [23:45:48]opened+sec_in_day 1727050367 [23:45:48]quantity*price = 10000 [23:45:48]sum+1 = 10001 [23:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 116 22.09.2024 23:45 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18720 ФПД: 65474067778443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234551&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18720&fm=65474067778443&tin=02508201610067®Number=0000000000152968&sum=10000 0 [23:45:49]StoreToDocumentArchive [23:45:49]shift 180 fd 18720 [23:45:49]save to /storage/0180/doc_00018720 [23:45:49]save last doc name /storage/0180/doc_00018720 to /storage/kkm_last_doc_name [23:45:49]save OK [23:45:49]Clear old archive folders... [23:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:45:49]tlvbuf is B6EF6090 [23:45:49]SAM_PROTO_ClearQueue [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 09 00 00 [23:45:49]Write to MH i2c: E2 08 00 C1 0D 80 09 00 00 00 00 00 00 40 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [23:45:49]RAPDU: 90 00 [23:45:49]wFMCommunicate OK [23:45:49]SAM_PROTO_ClearQueue done [23:45:49]KKMCreateOFDPacket [23:45:49]OFDProtocolAddRootSTLVToBuf [23:45:49]FM_MakeSignedData [23:45:49]FM_MakeSignedData [23:45:49]SAM_PROTO_SignData [23:45:49]wFMCommunicate request_size=4 [23:45:49]MH_SAM_APDU [23:45:49]CAPDU: 80 0D 01 02 [23:45:49]Write to MH i2c: E2 08 00 C2 0D 80 0D 01 02 00 00 00 00 48 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [23:45:49]RAPDU: 90 00 [23:45:49]wFMCommunicate OK [23:45:49]wFMCommunicate request_size=255 [23:45:49]MH_SAM_APDU [23:45:49]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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 2F AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [23:45:49]Write to MH i2c: E2 02 01 C3 0D 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 2F AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 C0 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:50]Read from MH i2c: E2 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 03 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 03 00 C3 0D 00 90 00 44 [23:45:50]RAPDU: 90 00 [23:45:50]wFMCommunicate OK [23:45:50]wFMCommunicate request_size=28 [23:45:50]MH_SAM_APDU [23:45:50]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 20 49 00 00 35 04 06 00 3B 8C 5E 8D 4B 8B [23:45:50]Write to MH i2c: E2 1F 00 C4 0D 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 20 49 00 00 35 04 06 00 3B 8C 5E 8D 4B 8B 00 00 CE [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:50]Read from MH i2c: E2 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 03 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [23:45:50]RAPDU: 90 00 [23:45:50]wFMCommunicate OK [23:45:50]wFMCommunicate request_size=4 [23:45:50]MH_SAM_APDU [23:45:50]CAPDU: 80 0D 03 02 [23:45:50]Write to MH i2c: E2 08 00 C5 0D 80 0D 03 02 00 00 00 00 4D [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:50]Read from MH i2c: E2 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 0B 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 0B 00 C5 0D 00 14 42 3F D2 F0 FE D9 26 90 00 A2 [23:45:50]RAPDU: 14 42 3F D2 F0 FE D9 26 90 00 [23:45:50]wFMCommunicate OK [23:45:50]SAM_PROTO_SignData done [23:45:50]FM_MakeSignedData done [23:45:50]CreateOFDProtocolMessage [23:45:50]wFMCommunicate request_size=4 [23:45:50]MH_SAM_APDU [23:45:50]CAPDU: 80 11 00 00 [23:45:50]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:50]Read from MH i2c: E2 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 17 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A6 [23:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:45:50]wFMCommunicate OK [23:45:50]CreateOFDProtocolMessage done [23:45:50]OFDSenderStorePacket 18720 [23:45:50]StoreOFDPacket docnum=18720 [23:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C2 74 19 01 02 4D 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 2F AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 20 49 00 00 35 04 06 00 3B 8C 5E 8D 4B 8B 14 42 3F D2 F0 FE D9 26 [23:45:50]CheckFolder [23:45:50]dirname=/storage/ofd_packets [23:45:50]CheckFolder done [23:45:50]ProducePacketName [23:45:50]name=ofd_packets/00018720 [23:45:50]NVStorageSaveData ofd_packets/00018720 [23:45:50]File name is /storage/ofd_packets/00018720 [23:45:50]Write 319 bytes [23:45:50]NVStorageSaveData done [23:45:50]OFDSenderStorePacket done [23:45:50]KKMCreateOFDPacket done [23:45:50]NVStorageSaveData kkm_last_timestamp [23:45:50]File name is /storage/kkm_last_timestamp [23:45:50]Write 4 bytes [23:45:50]NVStorageSaveData done [23:45:50]ExternCall_PrintAddStr [23:45:50]wPrintStart [23:45:50]Write to MH i2c: 01 00 00 C7 0D D4 [23:45:50]Write i2c OK [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 07 00 [23:45:50]MH_I2C_Read... [23:45:50]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [23:45:50]RasterBufferAndPrint [23:45:50]line Счет N : (3)16644 [23:45:50]line ИНН: 02508201610067 [23:45:50]line Контрольно-Кассовый Чек [23:45:50]line ПРОДАЖА [23:45:50]line Товар: 4700000160358 [23:45:50]line Вода Легенда 1л [23:45:50]line 2.000 * 50.00 [23:45:50]line = 100.00 [23:45:50]line НДС 12% НСП 1% [23:45:50]line > о реализуемом товаре [23:45:50]line ИТОГО: 100.00 [23:45:50]line НСП 1% : 0.88 [23:45:50]line НДС 12% : 10.62 [23:45:50]line Наличными: 100.00 [23:45:50]line Безнал.: 0.00 [23:45:50]line Место: АЗС № 176 "Партнер Нефть" [23:45:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:45:50]line СНО: Общий режим [23:45:50]line Чек 116 22.09.2024 23:45 [23:45:50]line Смена: 180 ФФД: 1.0 [23:45:50]line ЗНМ: 0300000010 [23:45:50]line РНМ: 0000000000152968 [23:45:50]line Версия ККМ: v1.0 [23:45:50]line ФМ: 0000000000959456 [23:45:50]line ФД: 18720 [23:45:50]line ФПД: 65474067778443 [23:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234551&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18720&fm=65474067778443&tin=02508201610067®Number=0000000000152968&sum=10000 [23:45:50]line 0 [23:45:50]OFD Sender: Processing packet 18720 [packets to send 7, broken 6] [23:45:50]ProducePacketName [23:45:50]name=ofd_packets/00018720 [23:45:50]OFD Sender: To server: pG, [23:45:50]CommunicateWithHost lk.salyk.kg:30040 [23:45:50]ConnectInit lk.salyk.kg [23:45:50]written 0, free lines is 4095 [23:45:50]Connected sock=10 [23:45:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C2 74 19 01 02 4D 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 2F AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 20 49 00 00 35 04 06 00 3B 8C 5E 8D 4B 8B 14 42 3F D2 F0 FE D9 26 [23:45:51]Write to MH i2c: 01 00 00 EF 0D FC [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: 01 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: 01 07 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 23 0D 33 [23:45:51]RasterBufferAndPrint [23:45:51]line [23:45:51]line [23:45:51]line [23:45:51]line [23:45:51]line [23:45:51]written 0, free lines is 3370 [23:45:51]MH_Cut [23:45:51]Write to MH i2c: D1 01 00 F6 0D 01 D5 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: D1 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: D1 01 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: D1 01 00 F6 0D 00 D4 [23:45:51]Write to MH i2c: 01 00 00 F7 0D 04 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BF E8 47 00 FD 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 39 35 39 34 35 36 10 04 04 00 20 49 00 00 F4 03 04 00 95 55 F0 66 B6 04 01 00 00 CE A7 A7 87 6C E4 0D D2 [23:45:51]CommunicateWithHost err = 0 [23:45:51]CheckOFDResponse [23:45:51]1017 (14) - 77093643461234 [23:45:51]1041 (16) - 0000000000959456 [23:45:51]1040 (4) - 18720 [23:45:51]1012 (4) - 22.09.2024 17:36 [23:45:51]1206 (1) - 0 [23:45:51]OFD Sender: Remove packet 18720 [23:45:51]ProducePacketName [23:45:51]name=ofd_packets/00018720 [23:45:51]NVStorageDeleteData [23:45:51]OFD Sender: No OFD packet to send [23:45:51]*** Cut start [23:45:51]*** Partial cut [23:45:51]*** CUTSNS_PIN = 1 [23:45:51]*** CUTSNS_PIN = 0 [23:45:51]*** Brake cut motor [23:45:52]Read from MH i2c: 01 [23:45:52]MH_I2C_Read... [23:45:52]*** Stop cut motor [23:45:52]*** Cut end [23:45:52]Read from MH i2c: 01 07 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [23:45:52]process_action close_receipt done [23:45:52]requested_data is exist [23:45:52]produce_requested_data [23:45:52]requested_item fm.sn is exist - process it [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 11 00 00 [23:45:52]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 17 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D8 [23:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:45:52]wFMCommunicate OK [23:45:52]requested_item fd.num is exist - process it [23:45:52]SAM_PROTO_GetFieldsCounters [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 13 00 00 [23:45:52]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 62 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 62 00 F9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 20 49 00 00 0E 04 04 00 B4 00 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 28 [23:45:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 20 49 00 00 0E 04 04 00 B4 00 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 [23:45:52]wFMCommunicate OK [23:45:52]SAM_PROTO_GetFieldsCounters done [23:45:52]requested_item shift.num is exist - process it [23:45:52]requested_item shift.opened is exist - process it [23:45:52]req_shift_opened [23:45:52]FM_GetShiftState [23:45:52]SAM_PROTO_GetShiftState [23:45:52]wFMCommunicate request_size=4 [23:45:52]MH_SAM_APDU [23:45:52]CAPDU: 80 13 01 00 [23:45:52]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [23:45:52]Write i2c OK [23:45:52]MH_I2C_Read... [23:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:52]Read from MH i2c: E2 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 0E 00 [23:45:52]MH_I2C_Read... [23:45:52]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 44 [23:45:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:45:52]wFMCommunicate OK [23:45:52]SAM_PROTO_GetShiftState done [23:45:52]FM_GetShiftState done [23:45:52]req_shift_opened done [23:45:52]requested_item shift.open_date is exist - process it [23:45:52]req_shift_open_date [23:45:52]req_shift_open_date done [23:45:52]produce_requested_data done [23:45:52]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18720,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [23:45:52]process_action_free close_receipt [23:45:52]json_value_free [23:45:52]json_value_free done [23:45:52]process_json_proto returns [23:45:52]Send response to host [23:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18720,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [23:45:52]free response buf [23:45:52]execute_script done [23:45:52]execute_script returns [23:45:52]free content buf [23:45:52]Sock 9.Close socket [23:45:52]Sock 9.Thread stoped [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:38]accept exits with 8 [23:48:38]New connection [23:48:38]New thread 3067129188 created [23:48:38]Thread 3067272548 joined [23:48:38]Waiting for new connection... [23:48:38] Sock 8.Parse request [23:48:38]Sock 8.Check first char [23:48:38]Sock 8.First char is OK [23:48:38]request: POST /json_proto HTTP/1.0 [23:48:38]Method: POST [23:48:38]URL: /json_proto [23:48:38]Method is POST - this is cgi request [23:48:38]url: /json_proto [23:48:38]query_string will be loaded in cgi processing [23:48:38]execute_cgi json_proto POST (null) [23:48:38]execute_cgi path=json_proto method=POST [23:48:38]POST find Content-Length [23:48:38]Host: 172.17.62.196:8080 [23:48:38]Content-Length: 657 [23:48:38]Content-Type: application/json [23:48:38] [23:48:38]POST finish read [23:48:38]Found Content-Length = 657 [23:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16645", "tax_sys" : 0, "items" : [ { "code": "5900950769000", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 Dr.MARCUS Fresh Bag vanilla", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:38]execute_script... [23:48: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)16645", "tax_sys" : 0, "items" : [ { "code": "5900950769000", "name": "\u0410\u0440\u043E\u043C\u0430\u0442\u0438\u0437\u0430\u0442\u043E\u0440 Dr.MARCUS Fresh Bag vanilla", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:38]POST & json_proto [23:48:38]process_json_proto [23:48:38]json parsed OK: [23:48:38]protocol is kg_v1.0 [23:48:38]action value=close_receipt [23:48:38]process_action close_receipt [23:48:38]cmd_close_receipt [23:48:38]MH_GetDate [23:48:38]Write to MH i2c: F0 00 00 FB 0D F7 [23:48:38]Write i2c OK [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: F0 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: F0 09 00 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: F0 09 00 FB 0D 00 D9 AC F0 66 CE CC 0E 66 E9 [23:48:38]GetLastDocTimeStamp 1727048751 [23:48:38]current date 1727048921 [23:48:38]FM_GetShiftState [23:48:38]SAM_PROTO_GetShiftState [23:48:38]wFMCommunicate request_size=4 [23:48:38]MH_SAM_APDU [23:48:38]CAPDU: 80 13 01 00 [23:48:38]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [23:48:38]Write i2c OK [23:48:38]MH_I2C_Read... [23:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:38]Read from MH i2c: E2 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 46 [23:48:38]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:48:38]wFMCommunicate OK [23:48:38]SAM_PROTO_GetShiftState done [23:48:38]FM_GetShiftState done [23:48:38]opened in 1726963967 [23:48:38]opened+sec_in_day 1727050367 [23:48:38]quantity*price = 25000 [23:48:38]sum+1 = 25001 [23:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 117 22.09.2024 23:48 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18721 ФПД: 75358666993802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234841&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18721&fm=75358666993802&tin=02508201610067®Number=0000000000152968&sum=25000 0 [23:48:39]StoreToDocumentArchive [23:48:39]shift 180 fd 18721 [23:48:39]save to /storage/0180/doc_00018721 [23:48:39]save last doc name /storage/0180/doc_00018721 to /storage/kkm_last_doc_name [23:48:39]save OK [23:48:39]Clear old archive folders... [23:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=294 [23:48:39]tlvbuf is 00207F10 [23:48:39]SAM_PROTO_ClearQueue [23:48:39]wFMCommunicate request_size=4 [23:48:39]MH_SAM_APDU [23:48:39]CAPDU: 80 09 00 00 [23:48:39]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [23:48:39]Write i2c OK [23:48:39]MH_I2C_Read... [23:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:39]Read from MH i2c: E2 [23:48:39]MH_I2C_Read... [23:48:39]Read from MH i2c: E2 03 00 [23:48:39]MH_I2C_Read... [23:48:39]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [23:48:39]RAPDU: 90 00 [23:48:39]wFMCommunicate OK [23:48:39]SAM_PROTO_ClearQueue done [23:48:39]KKMCreateOFDPacket [23:48:39]OFDProtocolAddRootSTLVToBuf [23:48:39]FM_MakeSignedData [23:48:39]FM_MakeSignedData [23:48:39]SAM_PROTO_SignData [23:48:39]wFMCommunicate request_size=4 [23:48:39]MH_SAM_APDU [23:48:39]CAPDU: 80 0D 01 02 [23:48:39]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [23:48:39]Write i2c OK [23:48:39]MH_I2C_Read... [23:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:39]Read from MH i2c: E2 [23:48:39]MH_I2C_Read... [23:48:39]Read from MH i2c: E2 03 00 [23:48:39]MH_I2C_Read... [23:48:39]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [23:48:39]RAPDU: 90 00 [23:48:39]wFMCommunicate OK [23:48:39]wFMCommunicate request_size=255 [23:48:39]MH_SAM_APDU [23:48:39]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 30 30 06 04 34 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 76 61 6E 69 6C 6C 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [23:48:39]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 30 30 06 04 34 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 76 61 6E 69 6C 6C 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 8C [23:48:39]Write i2c OK [23:48:39]MH_I2C_Read... [23:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:40]Read from MH i2c: E2 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 03 00 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [23:48:40]RAPDU: 90 00 [23:48:40]wFMCommunicate OK [23:48:40]wFMCommunicate request_size=53 [23:48:40]MH_SAM_APDU [23:48:40]CAPDU: 80 0D 02 02 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 21 49 00 00 35 04 06 00 44 89 CE 93 B0 8A [23:48:40]Write to MH i2c: E2 38 00 0C 0E 80 0D 02 02 30 00 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 21 49 00 00 35 04 06 00 44 89 CE 93 B0 8A 00 00 67 [23:48:40]Write i2c OK [23:48:40]MH_I2C_Read... [23:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:40]Read from MH i2c: E2 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 03 00 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [23:48:40]RAPDU: 90 00 [23:48:40]wFMCommunicate OK [23:48:40]wFMCommunicate request_size=4 [23:48:40]MH_SAM_APDU [23:48:40]CAPDU: 80 0D 03 02 [23:48:40]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [23:48:40]Write i2c OK [23:48:40]MH_I2C_Read... [23:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:40]Read from MH i2c: E2 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 0B 00 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 0B 00 0D 0E 00 75 61 D3 48 DB 3D 28 46 90 00 0E [23:48:40]RAPDU: 75 61 D3 48 DB 3D 28 46 90 00 [23:48:40]wFMCommunicate OK [23:48:40]SAM_PROTO_SignData done [23:48:40]FM_MakeSignedData done [23:48:40]CreateOFDProtocolMessage [23:48:40]wFMCommunicate request_size=4 [23:48:40]MH_SAM_APDU [23:48:40]CAPDU: 80 11 00 00 [23:48:40]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [23:48:40]Write i2c OK [23:48:40]MH_I2C_Read... [23:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:40]Read from MH i2c: E2 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 17 00 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EF [23:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:48:40]wFMCommunicate OK [23:48:40]CreateOFDProtocolMessage done [23:48:40]OFDSenderStorePacket 18721 [23:48:40]StoreOFDPacket docnum=18721 [23:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 42 D0 32 01 3E 42 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 30 30 06 04 34 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 76 61 6E 69 6C 6C 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 21 49 00 00 35 04 06 00 44 89 CE 93 B0 8A 75 61 D3 48 DB 3D 28 46 [23:48:40]CheckFolder [23:48:40]dirname=/storage/ofd_packets [23:48:40]CheckFolder done [23:48:40]ProducePacketName [23:48:40]name=ofd_packets/00018721 [23:48:40]NVStorageSaveData ofd_packets/00018721 [23:48:40]File name is /storage/ofd_packets/00018721 [23:48:40]Write 344 bytes [23:48:40]NVStorageSaveData done [23:48:40]OFDSenderStorePacket done [23:48:40]KKMCreateOFDPacket done [23:48:40]NVStorageSaveData kkm_last_timestamp [23:48:40]File name is /storage/kkm_last_timestamp [23:48:40]Write 4 bytes [23:48:40]NVStorageSaveData done [23:48:40]ExternCall_PrintAddStr [23:48:40]wPrintStart [23:48:40]Write to MH i2c: 01 00 00 0F 0E 1D [23:48:40]Write i2c OK [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: 01 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: 01 07 00 [23:48:40]MH_I2C_Read... [23:48:40]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [23:48:40]RasterBufferAndPrint [23:48:40]line Счет N : (3)16645 [23:48:40]line ИНН: 02508201610067 [23:48:40]line Контрольно-Кассовый Чек [23:48:40]line ПРОДАЖА [23:48:40]line Товар: 5900950769000 [23:48:40]line Ароматизатор Dr.MARCUS Fresh Bag vanilla [23:48:40]line 1.000 * 250.00 [23:48:40]line = 250.00 [23:48:40]line НДС 12% НСП 1% [23:48:40]line > о реализуемом товаре [23:48:40]line ИТОГО: 250.00 [23:48:40]line НСП 1% : 2.21 [23:48:40]line НДС 12% : 26.55 [23:48:40]line Наличными: 250.00 [23:48:40]line Безнал.: 0.00 [23:48:40]line Место: АЗС № 176 "Партнер Нефть" [23:48:40]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:48:40]line СНО: Общий режим [23:48:40]line Чек 117 22.09.2024 23:48 [23:48:40]line Смена: 180 ФФД: 1.0 [23:48:40]line ЗНМ: 0300000010 [23:48:40]line РНМ: 0000000000152968 [23:48:40]line Версия ККМ: v1.0 [23:48:40]line ФМ: 0000000000959456 [23:48:40]line ФД: 18721 [23:48:40]line ФПД: 75358666993802 [23:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234841&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18721&fm=75358666993802&tin=02508201610067®Number=0000000000152968&sum=25000 [23:48:40]OFD Sender: Processing packet 18721 [packets to send 7, broken 6] [23:48:40]ProducePacketName [23:48:40]name=ofd_packets/00018721 [23:48:40]OFD Sender: To server: pG, [23:48:40]CommunicateWithHost lk.salyk.kg:30040 [23:48:40]ConnectInit lk.salyk.kg [23:48:40]line 0 [23:48:40]written 0, free lines is 4095 [23:48:40]Connected sock=10 [23:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 42 D0 32 01 3E 42 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 39 30 30 39 35 30 37 36 39 30 30 30 06 04 34 00 D0 90 D1 80 D0 BE D0 BC D0 B0 D1 82 D0 B8 D0 B7 D0 B0 D1 82 D0 BE D1 80 20 44 72 2E 4D 41 52 43 55 53 20 46 72 65 73 68 20 42 61 67 20 76 61 6E 69 6C 6C 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D9 AC F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 21 49 00 00 35 04 06 00 44 89 CE 93 B0 8A 75 61 D3 48 DB 3D 28 46 [23:48:41]Write to MH i2c: 01 00 00 38 0E 46 [23:48:41]Write i2c OK [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: 01 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: 01 07 00 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: 01 07 00 38 0E 00 00 00 00 00 19 0D 73 [23:48:41]RasterBufferAndPrint [23:48:41]line [23:48:41]line [23:48:41]line [23:48:41]line [23:48:41]line [23:48:41]written 0, free lines is 3360 [23:48:41]MH_Cut [23:48:41]Write to MH i2c: D1 01 00 3F 0E 01 1F [23:48:41]Write i2c OK [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: D1 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: D1 01 00 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: D1 01 00 3F 0E 00 1E [23:48:41]Write to MH i2c: 01 00 00 40 0E 4E [23:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B8 79 47 00 81 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 21 49 00 00 F4 03 04 00 3F 56 F0 66 B6 04 01 00 00 AE 05 19 CA 28 25 15 F2 [23:48:41]CommunicateWithHost err = 0 [23:48:41]CheckOFDResponse [23:48:41]1017 (14) - 77093643461234 [23:48:41]1041 (16) - 0000000000959456 [23:48:41]1040 (4) - 18721 [23:48:41]1012 (4) - 22.09.2024 17:39 [23:48:41]1206 (1) - 0 [23:48:41]OFD Sender: Remove packet 18721 [23:48:41]ProducePacketName [23:48:41]name=ofd_packets/00018721 [23:48:41]NVStorageDeleteData [23:48:41]Write i2c OK [23:48:41]MH_I2C_Read... [23:48:41]OFD Sender: No OFD packet to send [23:48:41]*** Cut start [23:48:41]*** Partial cut [23:48:41]*** CUTSNS_PIN = 1 [23:48:41]*** CUTSNS_PIN = 0 [23:48:42]*** Brake cut motor [23:48:42]Read from MH i2c: 01 [23:48:42]MH_I2C_Read... [23:48:42]*** Stop cut motor [23:48:42]*** Cut end [23:48:42]Read from MH i2c: 01 07 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [23:48:42]process_action close_receipt done [23:48:42]requested_data is exist [23:48:42]produce_requested_data [23:48:42]requested_item fm.sn is exist - process it [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 11 00 00 [23:48:42]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 17 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 22 [23:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:48:42]wFMCommunicate OK [23:48:42]requested_item fd.num is exist - process it [23:48:42]SAM_PROTO_GetFieldsCounters [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 13 00 00 [23:48:42]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 62 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 62 00 42 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 21 49 00 00 0E 04 04 00 B4 00 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 76 [23:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 21 49 00 00 0E 04 04 00 B4 00 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 [23:48:42]wFMCommunicate OK [23:48:42]SAM_PROTO_GetFieldsCounters done [23:48:42]requested_item shift.num is exist - process it [23:48:42]requested_item shift.opened is exist - process it [23:48:42]req_shift_opened [23:48:42]FM_GetShiftState [23:48:42]SAM_PROTO_GetShiftState [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 13 01 00 [23:48:42]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 0E 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 8E [23:48:42]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:48:42]wFMCommunicate OK [23:48:42]SAM_PROTO_GetShiftState done [23:48:42]FM_GetShiftState done [23:48:42]req_shift_opened done [23:48:42]requested_item shift.open_date is exist - process it [23:48:42]req_shift_open_date [23:48:42]req_shift_open_date done [23:48:42]produce_requested_data done [23:48:42]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18721,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [23:48:42]process_action_free close_receipt [23:48:42]json_value_free [23:48:42]json_value_free done [23:48:42]process_json_proto returns [23:48:42]Send response to host [23:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18721,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [23:48:42]free response buf [23:48:42]execute_script done [23:48:42]execute_script returns [23:48:42]free content buf [23:48:42]Sock 8.Close socket [23:48:42]Sock 8.Thread stoped [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:43]accept exits with 9 [23:53:43]New connection [23:53:43]New thread 3067272548 created [23:53:43]Thread 3067129188 joined [23:53:43]Waiting for new connection... [23:53:43] Sock 9.Parse request [23:53:43]Sock 9.Check first char [23:53:43]Sock 9.First char is OK [23:53:43]request: POST /json_proto HTTP/1.0 [23:53:43]Method: POST [23:53:43]URL: /json_proto [23:53:43]Method is POST - this is cgi request [23:53:43]url: /json_proto [23:53:43]query_string will be loaded in cgi processing [23:53:43]execute_cgi json_proto POST (null) [23:53:43]execute_cgi path=json_proto method=POST [23:53:43]POST find Content-Length [23:53:43]Host: 172.17.62.196:8080 [23:53:43]Content-Length: 901 [23:53:43]Content-Type: application/json [23:53:43] [23:53:43]POST finish read [23:53:43]Found Content-Length = 901 [23:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16646", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:43]execute_script... [23:53: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)16646", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 237.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:43]POST & json_proto [23:53:43]process_json_proto [23:53:43]json parsed OK: [23:53:43]protocol is kg_v1.0 [23:53:43]action value=close_receipt [23:53:43]process_action close_receipt [23:53:43]cmd_close_receipt [23:53:43]MH_GetDate [23:53:43]Write to MH i2c: F0 00 00 44 0E 41 [23:53:43]Write i2c OK [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: F0 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: F0 09 00 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: F0 09 00 44 0E 00 0A AE F0 66 CE CC 0E 66 66 [23:53:43]GetLastDocTimeStamp 1727048921 [23:53:43]current date 1727049226 [23:53:43]FM_GetShiftState [23:53:43]SAM_PROTO_GetShiftState [23:53:43]wFMCommunicate request_size=4 [23:53:43]MH_SAM_APDU [23:53:43]CAPDU: 80 13 01 00 [23:53:43]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [23:53:43]Write i2c OK [23:53:43]MH_I2C_Read... [23:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:43]Read from MH i2c: E2 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: E2 0E 00 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 90 [23:53:43]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:53:43]wFMCommunicate OK [23:53:43]SAM_PROTO_GetShiftState done [23:53:43]FM_GetShiftState done [23:53:43]opened in 1726963967 [23:53:43]opened+sec_in_day 1727050367 [23:53:43]quantity*price = 7700 [23:53:43]sum+1 = 7701 [23:53:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4780022460216 Антифриз Yumiko red 1кг 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 237.00 НСП 1% : 2.10 НДС 12% : 25.17 Наличными: 237.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 118 22.09.2024 23:53 Смена: 180 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18722 ФПД: 25863316528903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235346&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18722&fm=25863316528903&tin=02508201610067®Number=0000000000152968&sum=23700 0 [23:53:44]StoreToDocumentArchive [23:53:44]shift 180 fd 18722 [23:53:44]save to /storage/0180/doc_00018722 [23:53:44]save last doc name /storage/0180/doc_00018722 to /storage/kkm_last_doc_name [23:53:44]save OK [23:53:44]Clear old archive folders... [23:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=398 [23:53:44]tlvbuf is 00207B00 [23:53:44]SAM_PROTO_ClearQueue [23:53:44]wFMCommunicate request_size=4 [23:53:44]MH_SAM_APDU [23:53:44]CAPDU: 80 09 00 00 [23:53:44]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [23:53:44]Write i2c OK [23:53:44]MH_I2C_Read... [23:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:44]Read from MH i2c: E2 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 03 00 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [23:53:44]RAPDU: 90 00 [23:53:44]wFMCommunicate OK [23:53:44]SAM_PROTO_ClearQueue done [23:53:44]KKMCreateOFDPacket [23:53:44]OFDProtocolAddRootSTLVToBuf [23:53:44]FM_MakeSignedData [23:53:44]FM_MakeSignedData [23:53:44]SAM_PROTO_SignData [23:53:44]wFMCommunicate request_size=4 [23:53:44]MH_SAM_APDU [23:53:44]CAPDU: 80 0D 01 02 [23:53:44]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [23:53:44]Write i2c OK [23:53:44]MH_I2C_Read... [23:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:44]Read from MH i2c: E2 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 03 00 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [23:53:44]RAPDU: 90 00 [23:53:44]wFMCommunicate OK [23:53:44]wFMCommunicate request_size=255 [23:53:44]MH_SAM_APDU [23:53:44]CAPDU: 80 0D 02 02 FA 03 00 8E 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 [23:53:44]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 8E 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 00 6D [23:53:44]Write i2c OK [23:53:44]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 03 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [23:53:45]RAPDU: 90 00 [23:53:45]wFMCommunicate OK [23:53:45]wFMCommunicate request_size=157 [23:53:45]MH_SAM_APDU [23:53:45]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 94 5C 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 0A AE F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 22 49 00 00 35 04 06 00 17 85 C5 CB 5F 07 [23:53:45]Write to MH i2c: E2 A0 00 55 0E 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 94 5C 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 0A AE F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 22 49 00 00 35 04 06 00 17 85 C5 CB 5F 07 00 00 17 [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 03 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [23:53:45]RAPDU: 90 00 [23:53:45]wFMCommunicate OK [23:53:45]wFMCommunicate request_size=4 [23:53:45]MH_SAM_APDU [23:53:45]CAPDU: 80 0D 03 02 [23:53:45]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 0B 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 0B 00 56 0E 00 A9 C1 7B 7C 9D CD 76 91 90 00 B2 [23:53:45]RAPDU: A9 C1 7B 7C 9D CD 76 91 90 00 [23:53:45]wFMCommunicate OK [23:53:45]SAM_PROTO_SignData done [23:53:45]FM_MakeSignedData done [23:53:45]CreateOFDProtocolMessage [23:53:45]wFMCommunicate request_size=4 [23:53:45]MH_SAM_APDU [23:53:45]CAPDU: 80 11 00 00 [23:53:45]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 17 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 38 [23:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:53:45]wFMCommunicate OK [23:53:45]CreateOFDProtocolMessage done [23:53:45]OFDSenderStorePacket 18722 [23:53:45]StoreOFDPacket docnum=18722 [23:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A2 01 00 00 71 E1 9A 01 62 23 5A 03 01 00 03 00 8E 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 94 5C 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 0A AE F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 22 49 00 00 35 04 06 00 17 85 C5 CB 5F 07 A9 C1 7B 7C 9D CD 76 91 [23:53:45]CheckFolder [23:53:45]dirname=/storage/ofd_packets [23:53:45]CheckFolder done [23:53:45]ProducePacketName [23:53:45]name=ofd_packets/00018722 [23:53:45]NVStorageSaveData ofd_packets/00018722 [23:53:45]File name is /storage/ofd_packets/00018722 [23:53:45]Write 448 bytes [23:53:45]NVStorageSaveData done [23:53:45]OFDSenderStorePacket done [23:53:45]KKMCreateOFDPacket done [23:53:45]NVStorageSaveData kkm_last_timestamp [23:53:45]File name is /storage/kkm_last_timestamp [23:53:45]Write 4 bytes [23:53:45]NVStorageSaveData done [23:53:45]ExternCall_PrintAddStr [23:53:45]wPrintStart [23:53:45]Write to MH i2c: 01 00 00 58 0E 66 [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: 01 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: 01 07 00 [23:53:45]MH_I2C_Read... [23:53:45]OFD Sender: Processing packet 18722 [packets to send 7, broken 6] [23:53:45]ProducePacketName [23:53:45]name=ofd_packets/00018722 [23:53:45]OFD Sender: To server: pG, [23:53:45]CommunicateWithHost lk.salyk.kg:30040 [23:53:45]ConnectInit lk.salyk.kg [23:53:45]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [23:53:45]RasterBufferAndPrint [23:53:45]line Счет N : (3)16646 [23:53:45]line ИНН: 02508201610067 [23:53:45]line Контрольно-Кассовый Чек [23:53:45]line ПРОДАЖА [23:53:45]line Товар: 4700000480050 [23:53:45]line Напиток Nitro Energy эн green ж/б 0,45л [23:53:45]line 1.000 * 77.00 [23:53:45]line = 77.00 [23:53:45]line НДС 12% НСП 1% [23:53:45]line > о реализуемом товаре [23:53:45]line Товар: 4780022460216 [23:53:45]line Антифриз Yumiko red 1кг [23:53:45]line 1.000 * 160.00 [23:53:45]line = 160.00 [23:53:45]line НДС 12% НСП 1% [23:53:45]line > о реализуемом товаре [23:53:45]line ИТОГО: 237.00 [23:53:45]line НСП 1% : 2.10 [23:53:45]line НДС 12% : 25.17 [23:53:45]line Наличными: 237.00 [23:53:45]line Безнал.: 0.00 [23:53:45]line Место: АЗС № 176 "Партнер Нефть" [23:53:45]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:53:45]line СНО: Общий режим [23:53:45]line Чек 118 22.09.2024 23:53 [23:53:45]line Смена: 180 ФФД: 1.0 [23:53:45]line ЗНМ: 0300000010 [23:53:45]line РНМ: 0000000000152968 [23:53:45]line Версия ККМ: v1.0 [23:53:45]line ФМ: 0000000000959456 [23:53:45]line ФД: 18722 [23:53:45]line ФПД: 25863316528903 [23:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T235346&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18722&fm=25863316528903&tin=02508201610067®Number=0000000000152968&sum=23700 [23:53:45]line 0 [23:53:45]written 0, free lines is 4095 [23:53:45]Connected sock=10 [23:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A2 01 00 00 71 E1 9A 01 62 23 5A 03 01 00 03 00 8E 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 09 00 00 00 00 07 04 06 00 94 5C 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 0A AE F0 66 0E 04 04 00 B4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 22 49 00 00 35 04 06 00 17 85 C5 CB 5F 07 A9 C1 7B 7C 9D CD 76 91 [23:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9C 4A 47 00 3F 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 39 35 39 34 35 36 10 04 04 00 22 49 00 00 F4 03 04 00 70 57 F0 66 B6 04 01 00 00 1F B9 15 E2 D9 48 EC DD [23:53:46]CommunicateWithHost err = 0 [23:53:46]CheckOFDResponse [23:53:46]1017 (14) - 77093643461234 [23:53:46]1041 (16) - 0000000000959456 [23:53:46]1040 (4) - 18722 [23:53:46]1012 (4) - 22.09.2024 17:44 [23:53:46]1206 (1) - 0 [23:53:46]OFD Sender: Remove packet 18722 [23:53:46]ProducePacketName [23:53:46]name=ofd_packets/00018722 [23:53:46]NVStorageDeleteData [23:53:46]Write to MH i2c: 01 00 00 87 0E 95 [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: 01 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: 01 07 00 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 C7 0C 6F [23:53:46]RasterBufferAndPrint [23:53:46]line [23:53:46]line [23:53:46]line [23:53:46]line [23:53:46]line [23:53:46]written 0, free lines is 3277 [23:53:46]MH_Cut [23:53:46]Write to MH i2c: D1 01 00 8E 0E 01 6E [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: D1 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: D1 01 00 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: D1 01 00 8E 0E 00 6D [23:53:46]Write to MH i2c: 01 00 00 8F 0E 9D [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:46]OFD Sender: No OFD packet to send [23:53:47]*** Cut start [23:53:47]*** Partial cut [23:53:47]*** CUTSNS_PIN = 1 [23:53:47]*** CUTSNS_PIN = 0 [23:53:47]*** Brake cut motor [23:53:47]Read from MH i2c: 01 [23:53:47]MH_I2C_Read... [23:53:47]*** Stop cut motor [23:53:47]*** Cut end [23:53:47]Read from MH i2c: 01 07 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: 01 07 00 8F 0E 00 00 00 00 00 FF 0F B2 [23:53:47]process_action close_receipt done [23:53:47]requested_data is exist [23:53:47]produce_requested_data [23:53:47]requested_item fm.sn is exist - process it [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 11 00 00 [23:53:47]Write to MH i2c: E2 08 00 90 0E 80 11 00 00 00 00 00 00 18 [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 17 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 17 00 90 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 71 [23:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:53:47]wFMCommunicate OK [23:53:47]requested_item fd.num is exist - process it [23:53:47]SAM_PROTO_GetFieldsCounters [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 13 00 00 [23:53:47]Write to MH i2c: E2 08 00 91 0E 80 13 00 00 00 00 00 00 1B [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 62 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 62 00 91 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 C9 [23:53:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 [23:53:47]wFMCommunicate OK [23:53:47]SAM_PROTO_GetFieldsCounters done [23:53:47]requested_item shift.num is exist - process it [23:53:47]requested_item shift.opened is exist - process it [23:53:47]req_shift_opened [23:53:47]FM_GetShiftState [23:53:47]SAM_PROTO_GetShiftState [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 13 01 00 [23:53:47]Write to MH i2c: E2 08 00 92 0E 80 13 01 00 00 00 00 00 1D [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 0E 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 0E 00 92 0E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 DD [23:53:47]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [23:53:47]wFMCommunicate OK [23:53:47]SAM_PROTO_GetShiftState done [23:53:47]FM_GetShiftState done [23:53:47]req_shift_opened done [23:53:47]requested_item shift.open_date is exist - process it [23:53:47]req_shift_open_date [23:53:47]req_shift_open_date done [23:53:47]produce_requested_data done [23:53:47]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [23:53:47]process_action_free close_receipt [23:53:47]json_value_free [23:53:47]json_value_free done [23:53:47]process_json_proto returns [23:53:47]Send response to host [23:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [23:53:47]free response buf [23:53:47]execute_script done [23:53:47]execute_script returns [23:53:47]free content buf [23:53:47]Sock 9.Close socket [23:53:47]Sock 9.Thread stoped [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:52]accept exits with 8 [00:06:52]New connection [00:06:52]New thread 3067129188 created [00:06:52]Thread 3067272548 joined [00:06:52]Waiting for new connection... [00:06:52] Sock 8.Parse request [00:06:52]Sock 8.Check first char [00:06:52]Sock 8.First char is OK [00:06:52]request: POST /json_proto HTTP/1.0 [00:06:52]Method: POST [00:06:52]URL: /json_proto [00:06:52]Method is POST - this is cgi request [00:06:52]url: /json_proto [00:06:52]query_string will be loaded in cgi processing [00:06:52]execute_cgi json_proto POST (null) [00:06:52]execute_cgi path=json_proto method=POST [00:06:52]POST find Content-Length [00:06:52]Host: 172.17.62.196:8080 [00:06:52]Content-Length: 215 [00:06:52]Content-Type: application/json [00:06:52] [00:06:52]POST finish read [00:06:52]Found Content-Length = 215 [00:06:52]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:06:52]execute_script... [00:06:52]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:06:52]POST & json_proto [00:06:52]process_json_proto [00:06:52]json parsed OK: [00:06:52]protocol is kg_v1.0 [00:06:52]action value=get_value [00:06:52]process_action get_value [00:06:52]cmd_get_value [00:06:52]process_action get_value done [00:06:52]requested_data is exist [00:06:52]produce_requested_data [00:06:52]requested_item kkm.sn is exist - process it [00:06:52]requested_item kkm.ver is exist - process it [00:06:52]requested_item fm.sn is exist - process it [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 11 00 00 [00:06:52]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 17 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 74 [00:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:06:52]wFMCommunicate OK [00:06:52]requested_item fd.num is exist - process it [00:06:52]SAM_PROTO_GetFieldsCounters [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 13 00 00 [00:06:52]Write to MH i2c: E2 08 00 94 0E 80 13 00 00 00 00 00 00 1E [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 62 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 62 00 94 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 CC [00:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 [00:06:52]wFMCommunicate OK [00:06:52]SAM_PROTO_GetFieldsCounters done [00:06:52]requested_item shift.num is exist - process it [00:06:52]requested_item shift.opened is exist - process it [00:06:52]req_shift_opened [00:06:52]FM_GetShiftState [00:06:52]SAM_PROTO_GetShiftState [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 13 01 00 [00:06:52]Write to MH i2c: E2 08 00 95 0E 80 13 01 00 00 00 00 00 20 [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 0E 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 0E 00 95 0E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 E0 [00:06:52]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [00:06:52]wFMCommunicate OK [00:06:52]SAM_PROTO_GetShiftState done [00:06:52]FM_GetShiftState done [00:06:52]req_shift_opened done [00:06:52]requested_item shift.open_date is exist - process it [00:06:52]req_shift_open_date [00:06:52]req_shift_open_date done [00:06:52]produce_requested_data done [00:06:52]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [00:06:52]process_action_free get_value [00:06:52]json_value_free [00:06:52]json_value_free done [00:06:52]process_json_proto returns [00:06:52]Send response to host [00:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [00:06:52]free response buf [00:06:52]execute_script done [00:06:52]execute_script returns [00:06:52]free content buf [00:06:52]Sock 8.Close socket [00:06:52]Sock 8.Thread stoped [00:06:52]accept exits with 9 [00:06:52]New connection [00:06:52]New thread 3067272548 created [00:06:52]Thread 3067129188 joined [00:06:52]Waiting for new connection... [00:06:52] Sock 9.Parse request [00:06:52]Sock 9.Check first char [00:06:52]Sock 9.First char is OK [00:06:52]request: POST /json_proto HTTP/1.0 [00:06:52]Method: POST [00:06:52]URL: /json_proto [00:06:52]Method is POST - this is cgi request [00:06:52]url: /json_proto [00:06:52]query_string will be loaded in cgi processing [00:06:52]execute_cgi json_proto POST (null) [00:06:52]execute_cgi path=json_proto method=POST [00:06:52]POST find Content-Length [00:06:52]Host: 172.17.62.196:8080 [00:06:52]Content-Length: 331 [00:06:52]Content-Type: application/json [00:06:52] [00:06:52]POST finish read [00:06:52]Found Content-Length = 331 [00:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:52]execute_script... [00:06:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:53]POST & json_proto [00:06:53]process_json_proto [00:06:53]json parsed OK: [00:06:53]protocol is kg_v1.0 [00:06:53]action value=get_value [00:06:53]process_action get_value [00:06:53]cmd_get_value [00:06:53]process_action get_value done [00:06:53]requested_data is exist [00:06:53]produce_requested_data [00:06:53]requested_item fm.sale.total is exist - process it [00:06:53]SAM_PROTO_GetFMData [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 13 03 00 [00:06:53]Write to MH i2c: E2 08 00 96 0E 80 13 03 00 00 00 00 00 23 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:53]Read from MH i2c: E2 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 96 0E 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 B8 [00:06:53]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 97 0E 80 17 00 00 00 00 00 00 25 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:53]Read from MH i2c: E2 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 97 0E 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 55 [00:06:53]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 98 0E 80 17 00 00 00 00 00 00 26 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 98 0E 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 58 [00:06:54]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:06:54]wFMCommunicate OK [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 17 00 00 [00:06:54]Write to MH i2c: E2 08 00 99 0E 80 17 00 00 00 00 00 00 27 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 99 0E 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:06:54]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:06:54]wFMCommunicate OK [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 17 00 00 [00:06:54]Write to MH i2c: E2 08 00 9A 0E 80 17 00 00 00 00 00 00 28 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 DB 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 DB 00 9A 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 0A [00:06:54]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:06:54]wFMCommunicate OK [00:06:54]SAM_PROTO_GetFMData done [00:06:54]requested_item fm.sale_refund.total is exist - process it [00:06:54]requested_item fm.buy.total is exist - process it [00:06:54]requested_item shift.sale.total is exist - process it [00:06:54]SAM_PROTO_GetShiftData [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 13 02 00 [00:06:54]Write to MH i2c: E2 08 00 9B 0E 80 13 02 00 00 00 00 00 27 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 9B 0E 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [00:06:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 17 00 00 [00:06:55]Write to MH i2c: E2 08 00 9C 0E 80 17 00 00 00 00 00 00 2A [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 9C 0E 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 4C [00:06:55]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:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 17 00 00 [00:06:55]Write to MH i2c: E2 08 00 9D 0E 80 17 00 00 00 00 00 00 2B [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 FD 00 9D 0E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [00:06:55]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:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 17 00 00 [00:06:55]Write to MH i2c: E2 08 00 9E 0E 80 17 00 00 00 00 00 00 2C [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 9E 0E 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 9E [00:06:56]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:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 9F 0E 80 17 00 00 00 00 00 00 2D [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 CB 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 CB 00 9F 0E 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 16 [00:06:56]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:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_GetShiftData done [00:06:56]requested_item shift.sale.total_cash is exist - process it [00:06:56]requested_item shift.sale_refund.total is exist - process it [00:06:56]requested_item shift.sale_refund.total_cash is exist - process it [00:06:56]requested_item shift.buy.total is exist - process it [00:06:56]requested_item shift.buy.total_cash is exist - process it [00:06:56]produce_requested_data done [00:06:56]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:06:56]process_action_free get_value [00:06:56]json_value_free [00:06:56]json_value_free done [00:06:56]process_json_proto returns [00:06:56]Send response to host [00:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:06:56]free response buf [00:06:56]execute_script done [00:06:56]execute_script returns [00:06:56]free content buf [00:06:56]Sock 9.Close socket [00:06:56]Sock 9.Thread stoped [00:06:56]accept exits with 8 [00:06:56]New connection [00:06:56]New thread 3067129188 created [00:06:56]Thread 3067272548 joined [00:06:56]Waiting for new connection... [00:06:56] Sock 8.Parse request [00:06:56]Sock 8.Check first char [00:06:56]Sock 8.First char is OK [00:06:56]request: POST /json_proto HTTP/1.0 [00:06:56]Method: POST [00:06:56]URL: /json_proto [00:06:56]Method is POST - this is cgi request [00:06:56]url: /json_proto [00:06:56]query_string will be loaded in cgi processing [00:06:56]execute_cgi json_proto POST (null) [00:06:56]execute_cgi path=json_proto method=POST [00:06:56]POST find Content-Length [00:06:56]Host: 172.17.62.196:8080 [00:06:56]Content-Length: 331 [00:06:56]Content-Type: application/json [00:06:56] [00:06:56]POST finish read [00:06:56]Found Content-Length = 331 [00:06:56]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:06:56]execute_script... [00:06:56]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:06:56]POST & json_proto [00:06:56]process_json_proto [00:06:56]json parsed OK: [00:06:56]protocol is kg_v1.0 [00:06:56]action value=get_value [00:06:56]process_action get_value [00:06:56]cmd_get_value [00:06:56]process_action get_value done [00:06:56]requested_data is exist [00:06:56]produce_requested_data [00:06:56]requested_item fm.sale.total is exist - process it [00:06:56]SAM_PROTO_GetFMData [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 13 03 00 [00:06:56]Write to MH i2c: E2 08 00 A0 0E 80 13 03 00 00 00 00 00 2D [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 A0 0E 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 C2 [00:06:56]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 A1 0E 80 17 00 00 00 00 00 00 2F [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 A1 0E 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [00:06:57]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:57]wFMCommunicate OK [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 17 00 00 [00:06:57]Write to MH i2c: E2 08 00 A2 0E 80 17 00 00 00 00 00 00 30 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]OFD Sender: No OFD packet to send [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 A2 0E 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 62 [00:06:57]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:06:57]wFMCommunicate OK [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 17 00 00 [00:06:57]Write to MH i2c: E2 08 00 A3 0E 80 17 00 00 00 00 00 00 31 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 A3 0E 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:06:57]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:06:58]wFMCommunicate OK [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 A4 0E 80 17 00 00 00 00 00 00 32 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 DB 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 DB 00 A4 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 14 [00:06:58]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_GetFMData done [00:06:58]requested_item fm.sale_refund.total is exist - process it [00:06:58]requested_item fm.buy.total is exist - process it [00:06:58]requested_item shift.sale.total is exist - process it [00:06:58]SAM_PROTO_GetShiftData [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 13 02 00 [00:06:58]Write to MH i2c: E2 08 00 A5 0E 80 13 02 00 00 00 00 00 31 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 A5 0E 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:06:58]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:58]wFMCommunicate OK [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 A6 0E 80 17 00 00 00 00 00 00 34 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:59]Read from MH i2c: E2 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 A6 0E 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 56 [00:06:59]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:06:59]wFMCommunicate OK [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 17 00 00 [00:06:59]Write to MH i2c: E2 08 00 A7 0E 80 17 00 00 00 00 00 00 35 [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:06:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:59]Read from MH i2c: E2 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 [00:06:59]MH_I2C_Read... [00:06:59]Read from MH i2c: E2 FD 00 A7 0E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:06:59]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:06:59]wFMCommunicate OK [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 17 00 00 [00:06:59]Write to MH i2c: E2 08 00 A8 0E 80 17 00 00 00 00 00 00 36 [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 A8 0E 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 A8 [00:07:00]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:07:00]wFMCommunicate OK [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 17 00 00 [00:07:00]Write to MH i2c: E2 08 00 A9 0E 80 17 00 00 00 00 00 00 37 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 CB 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 CB 00 A9 0E 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 20 [00:07:00]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:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetShiftData done [00:07:00]requested_item shift.sale.total_cash is exist - process it [00:07:00]requested_item shift.sale_refund.total is exist - process it [00:07:00]requested_item shift.sale_refund.total_cash is exist - process it [00:07:00]requested_item shift.buy.total is exist - process it [00:07:00]requested_item shift.buy.total_cash is exist - process it [00:07:00]produce_requested_data done [00:07:00]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:00]process_action_free get_value [00:07:00]json_value_free [00:07:00]json_value_free done [00:07:00]process_json_proto returns [00:07:00]Send response to host [00:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:00]free response buf [00:07:00]execute_script done [00:07:00]execute_script returns [00:07:00]free content buf [00:07:00]Sock 8.Close socket [00:07:00]Sock 8.Thread stoped [00:07:00]accept exits with 9 [00:07:00]New connection [00:07:00]New thread 3067272548 created [00:07:00] Sock 9.Parse request [00:07:00]Thread 3067129188 joined [00:07:00]Sock 9.Check first char [00:07:00]Waiting for new connection... [00:07:00]Sock 9.First char is OK [00:07:00]request: POST /json_proto HTTP/1.0 [00:07:00]Method: POST [00:07:00]URL: /json_proto [00:07:00]Method is POST - this is cgi request [00:07:00]url: /json_proto [00:07:00]query_string will be loaded in cgi processing [00:07:00]execute_cgi json_proto POST (null) [00:07:00]execute_cgi path=json_proto method=POST [00:07:00]POST find Content-Length [00:07:00]Host: 172.17.62.196:8080 [00:07:00]Content-Length: 287 [00:07:00]Content-Type: application/json [00:07:00] [00:07:00]POST finish read [00:07:00]Found Content-Length = 287 [00:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u044B\u0440\u0430\u0445\u043C\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]execute_script... [00:07:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0431\u0434\u044B\u0440\u0430\u0445\u043C\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]POST & json_proto [00:07:00]process_json_proto [00:07:00]json parsed OK: [00:07:00]protocol is kg_v1.0 [00:07:00]action value=x_report [00:07:00]process_action x_report [00:07:00]cmd_x_report [00:07:00]MH_GetDate [00:07:00]Write to MH i2c: F0 00 00 AA 0E A7 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 AA 0E 00 27 B1 F0 66 CE CC 0E 66 EC [00:07:00]GetLastDocTimeStamp 1727049226 [00:07:00]current date 1727050023 [00:07:00]FM_GetShiftState [00:07:00]SAM_PROTO_GetShiftState [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 01 00 [00:07:00]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 F6 [00:07:00]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [00:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetShiftState done [00:07:00]FM_GetShiftState done [00:07:00]KKMCreateXReportDocument [00:07:00]Load OK [00:07:00]Malloc new data [00:07:00]MH_GetDate [00:07:00]Write to MH i2c: F0 00 00 AC 0E A9 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 AC 0E 00 27 B1 F0 66 CE CC 0E 66 EE [00:07:00]Malloc new data [00:07:00]Malloc new data [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 11 00 00 [00:07:00]Write to MH i2c: E2 08 00 AD 0E 80 11 00 00 00 00 00 00 35 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 17 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 17 00 AD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8E [00:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetFieldsCounters [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 00 00 [00:07:00]Write to MH i2c: E2 08 00 AE 0E 80 13 00 00 00 00 00 00 38 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 62 00 AE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 E6 [00:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 [00:07:01]wFMCommunicate OK [00:07:01]SAM_PROTO_GetFieldsCounters done [00:07:01]Malloc new data [00:07:01]Malloc new data [00:07:01]Malloc new data [00:07:01]KKMCreateXReportDocument OK [00:07:01]KKMSetXReportData OK [00:07:01]KKMPrepareXReportFMData [00:07:01]SAM_PROTO_GetShiftData [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 13 02 00 [00:07:01]Write to MH i2c: E2 08 00 AF 0E 80 13 02 00 00 00 00 00 3B [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 AF 0E 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [00:07:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 B0 0E 80 17 00 00 00 00 00 00 3E [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 B0 0E 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 60 [00:07:02]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:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 B1 0E 80 17 00 00 00 00 00 00 3F [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 B1 0E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:07:02]09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 F6 [00:07: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 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 B2 0E 80 17 00 00 00 00 00 00 40 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 B2 0E 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 B2 [00:07:03]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:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 17 00 00 [00:07:03]Write to MH i2c: E2 08 00 B3 0E 80 17 00 00 00 00 00 00 41 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 CB 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 CB 00 B3 0E 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 2A [00:07:03]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:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetShiftData done [00:07:03]1194 (1194) - счетчики итогов смены [00:07:03] 1134 (4) - 118 - количество чеков со всеми признаками расчетов [00:07:03] 1129 (155) - счетчики операций «приход» [00:07:03] 1135 (4) - 118 - количество чеков по признаку расчетов [00:07:03] 1201 (3) - 22623.00 - общая итоговая сумма в чеках [00:07:03] 1136 (3) - 14452.00 - итоговая сумма в чеках наличными [00:07:03] 1138 (3) - 8171.00 - итоговая сумма в чеках безналичными [00:07:03] 1024 (122) - суммы налогов [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 0% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1006 (12) - суммы НДС [00:07:03] 1010 (1) - 12% - код ставки НДС [00:07:03] 1011 (3) - 2402.29 - сумма НДС по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (11) - суммы НСП [00:07:03] 1014 (1) - 1% - код ставки НСП [00:07:03] 1015 (2) - 200.09 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 2% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 3% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 5% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1130 (141) - счетчики операций «возврат прихода» [00:07:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:03] 1024 (117) - суммы налогов [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 0% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 12% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 2% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 3% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 5% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1131 (141) - счетчики операций «расход» [00:07:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:03] 1024 (117) - суммы налогов [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 0% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 12% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 2% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 3% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 5% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1132 (141) - счетчики операций «возврат расхода» [00:07:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:03] 1024 (117) - суммы налогов [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 0% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1006 (9) - суммы НДС [00:07:03] 1010 (1) - 12% - код ставки НДС [00:07:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 2% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 3% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 5% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 0,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1007 (9) - суммы НСП [00:07:03] 1014 (1) - 1,50% - код ставки НСП [00:07:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:03] 1133 (588) - - счетчики коррекции - не используются [00:07:03]SetTLVBufToDocument [00:07:03]Processing tag 1194 (04AA) [00:07:03]Load OK [00:07:03]SetTLVBufToDocument [00:07:03]Processing tag 1134 (046E) [00:07:03]Malloc new data [00:07:03]Processing tag 1129 (0469) [00:07:03]Load OK [00:07:03]SetTLVBufToDocument [00:07:03]Processing tag 1135 (046F) [00:07:03]Malloc new data [00:07:03]Processing tag 1201 (04B1) [00:07:03]Malloc new data [00:07:03]Processing tag 1136 (0470) [00:07:03]Malloc new data [00:07:03]Processing tag 1138 (0472) [00:07:03]Malloc new data [00:07:04]Processing tag 1024 (0400) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1130 (046A) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1135 (046F) [00:07:04]Malloc new data [00:07:04]Processing tag 1201 (04B1) [00:07:04]Malloc new data [00:07:04]Processing tag 1136 (0470) [00:07:04]Malloc new data [00:07:04]Processing tag 1138 (0472) [00:07:04]Malloc new data [00:07:04]Processing tag 1024 (0400) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1131 (046B) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1135 (046F) [00:07:04]Malloc new data [00:07:04]Processing tag 1201 (04B1) [00:07:04]Malloc new data [00:07:04]Processing tag 1136 (0470) [00:07:04]Malloc new data [00:07:04]Processing tag 1138 (0472) [00:07:04]Malloc new data [00:07:04]Processing tag 1024 (0400) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1132 (046C) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1135 (046F) [00:07:04]Malloc new data [00:07:04]Processing tag 1201 (04B1) [00:07:04]Malloc new data [00:07:04]Processing tag 1136 (0470) [00:07:04]Malloc new data [00:07:04]Processing tag 1138 (0472) [00:07:04]Malloc new data [00:07:04]Processing tag 1024 (0400) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1006 (03EE) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1010 (03F2) [00:07:04]Malloc new data [00:07:04]Processing tag 1011 (03F3) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1007 (03EF) [00:07:04]Load OK [00:07:04]SetTLVBufToDocument [00:07:04]Processing tag 1014 (03F6) [00:07:04]Malloc new data [00:07:04]Processing tag 1015 (03F7) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Processing tag 1133 (046D) [00:07:04]Malloc new data [00:07:04]SetTLVBufToDocument err=0 [00:07:04]SetTLVBufToDocument err=0 [00:07:04]Malloc new data [00:07:04]SAM_PROTO_GetFMData [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 13 03 00 [00:07:04]Write to MH i2c: E2 08 00 B4 0E 80 13 03 00 00 00 00 00 41 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 B4 0E 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 D6 [00:07:05]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 B5 0E 80 17 00 00 00 00 00 00 43 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 FD 00 B5 0E 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [00:07:05]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 17 00 00 [00:07:05]Write to MH i2c: E2 08 00 B6 0E 80 17 00 00 00 00 00 00 44 [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 B6 0E 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 76 [00:07:06]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=4 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 17 00 00 [00:07:06]Write to MH i2c: E2 08 00 B7 0E 80 17 00 00 00 00 00 00 45 [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 FD 00 B7 0E 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:07:06]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 17 00 00 [00:07:07]Write to MH i2c: E2 08 00 B8 0E 80 17 00 00 00 00 00 00 46 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 DB 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 DB 00 B8 0E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 28 [00:07:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_GetFMData done [00:07:07]FM_GetFMData:85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 OFD Sender: No OFD packet to send [00:07:07]00 CF 15 09 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 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:08]oper:6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:08]total:02 0B 69 31 [00:07:08]Malloc new data [00:07:08]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 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 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:08]total:00 8C 55 [00:07:08]Malloc new data [00:07:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:08]total: [00:07:08]Malloc new data [00:07:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:08]total: [00:07:08]Malloc new data [00:07:08]KKMPrepareXReportFMData err=0 [00:07:08]Х отчет ИНН: 02508201610067 Кассир: Абдырахманова Ж. 23.09.2024 00:07 Смена: 10 РНМ: 0000000000152968 ЗНМ: 0300000010 СНО: Общий режим Всего чеков: 118 ИТОГИ ПРИХОД Чеков: 118 Общий итог: 22623.00 Итого наличными: 14452.00 Итого безнал.: 8171.00 НДС 0% : 0.00 НДС 12% : 2402.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 200.09 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 14452.00 НС Приход: 8289676.82 НС Возвр.Прихода: 56064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000959456 [00:07:08]StoreToDocumentArchive [00:07:08]MH_GetDate [00:07:08]Write to MH i2c: F0 00 00 B9 0E B6 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: F0 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: F0 09 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: F0 09 00 B9 0E 00 2F B1 F0 66 CE CC 0E 66 03 [00:07:08]shift 10 fd 1727050031 [00:07:08]Create dir for shift 0010 [00:07:08]save to /storage/0010/doc_1727050031 [00:07:08]save last doc name /storage/0010/doc_1727050031 to /storage/kkm_last_doc_name [00:07:08]save OK [00:07:08]Clear old archive folders... [00:07:08]NVStorageSaveData kkm_last_timestamp [00:07:08]File name is /storage/kkm_last_timestamp [00:07:08]Write 4 bytes [00:07:08]NVStorageSaveData done [00:07:08]ExternCall_PrintAddStr [00:07:08]wPrintStart [00:07:08]Write to MH i2c: 01 00 00 BA 0E C8 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 07 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 07 00 BA 0E 00 00 00 00 00 FF 0F DD [00:07:08]RasterBufferAndPrint [00:07:08]line Х отчет [00:07:08]line ИНН: 02508201610067 [00:07:08]line Кассир: Абдырахманова Ж. [00:07:08]line 23.09.2024 00:07 [00:07:08]line Смена: 10 [00:07:08]line РНМ: 0000000000152968 [00:07:08]line ЗНМ: 0300000010 [00:07:08]line СНО: Общий режим [00:07:08]line Всего чеков: 118 [00:07:08]line ИТОГИ ПРИХОД [00:07:08]line Чеков: 118 [00:07:08]line Общий итог: 22623.00 [00:07:08]line Итого наличными: 14452.00 [00:07:08]line Итого безнал.: 8171.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 2402.29 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 200.09 [00:07:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line ИТОГИ РАСХОД [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line Сумма внесений: 0.00 [00:07:08]line Сумма выплат: 0.00 [00:07:08]line Нал. в кассе: 14452.00 [00:07:08]line НС Приход: 8289676.82 [00:07:08]line НС Возвр.Прихода: 56064.00 [00:07:08]line НС Расход: 0.00 [00:07:08]line НС Возвр.Расхода: 0.00 [00:07:08]line ФМ: 0000000000959456 [00:07:08]written 0, free lines is 4095 [00:07:09]Write to MH i2c: 01 00 00 05 0F 14 [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: 01 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: 01 07 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 0F 0B 35 [00:07:09]RasterBufferAndPrint [00:07:09]line [00:07:09]line [00:07:09]line [00:07:09]line [00:07:09]line [00:07:09]written 0, free lines is 2867 [00:07:09]MH_Cut [00:07:09]Write to MH i2c: D1 01 00 0C 0F 01 ED [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: D1 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: D1 01 00 [00:07:09]MH_I2C_Read... [00:07:09]Read from MH i2c: D1 01 00 0C 0F 00 EC [00:07:09]Write to MH i2c: 01 00 00 0D 0F 1C [00:07:09]Write i2c OK [00:07:09]MH_I2C_Read... [00:07:10]*** Cut start [00:07:10]*** Partial cut [00:07:10]*** CUTSNS_PIN = 1 [00:07:10]*** CUTSNS_PIN = 0 [00:07:10]*** Brake cut motor [00:07:10]Read from MH i2c: 01 [00:07:10]MH_I2C_Read... [00:07:10]*** Stop cut motor [00:07:10]*** Cut end [00:07:10]Read from MH i2c: 01 07 00 [00:07:10]MH_I2C_Read... [00:07:10]Read from MH i2c: 01 07 00 0D 0F 00 00 00 00 00 FF 0F 31 [00:07:11]process_action x_report done [00:07:11]requested_data is exist [00:07:11]produce_requested_data [00:07:11]requested_item fd.num is exist - process it [00:07:11]SAM_PROTO_GetFieldsCounters [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 13 00 00 [00:07:11]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 62 00 [00:07:11]MH_I2C_Read... [00:07:11]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 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 47 [00:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 [00:07:11]wFMCommunicate OK [00:07:11]SAM_PROTO_GetFieldsCounters done [00:07:11]requested_item shift.num is exist - process it [00:07:11]requested_item shift.opened is exist - process it [00:07:11]req_shift_opened [00:07:11]FM_GetShiftState [00:07:11]SAM_PROTO_GetShiftState [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 13 01 00 [00:07:11]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 0E 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 5B [00:07:11]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [00:07:11]wFMCommunicate OK [00:07:11]SAM_PROTO_GetShiftState done [00:07:11]FM_GetShiftState done [00:07:11]req_shift_opened done [00:07:11]requested_item shift.open_date is exist - process it [00:07:11]req_shift_open_date [00:07:11]req_shift_open_date done [00:07:11]produce_requested_data done [00:07:11]produce_requested_data return {"fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [00:07:11]process_action_free x_report [00:07:11]json_value_free [00:07:11]json_value_free done [00:07:11]process_json_proto returns [00:07:11]Send response to host [00:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [00:07:11]free response buf [00:07:11]execute_script done [00:07:11]execute_script returns [00:07:11]free content buf [00:07:11]Sock 9.Close socket [00:07:11]Sock 9.Thread stoped [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:46]accept exits with 8 [00:07:46]New connection [00:07:46]New thread 3067129188 created [00:07:46]Thread 3067272548 joined [00:07:46]Waiting for new connection... [00:07:46] Sock 8.Parse request [00:07:46]Sock 8.Check first char [00:07:46]Sock 8.First char is OK [00:07:46]request: POST /json_proto HTTP/1.0 [00:07:46]Method: POST [00:07:46]URL: /json_proto [00:07:46]Method is POST - this is cgi request [00:07:46]url: /json_proto [00:07:46]query_string will be loaded in cgi processing [00:07:46]execute_cgi json_proto POST (null) [00:07:46]execute_cgi path=json_proto method=POST [00:07:46]POST find Content-Length [00:07:46]Host: 172.17.62.196:8080 [00:07:46]Content-Length: 215 [00:07:46]Content-Type: application/json [00:07:46] [00:07:46]POST finish read [00:07:46]Found Content-Length = 215 [00:07:46]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:07:46]execute_script... [00:07:46]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:07:46]POST & json_proto [00:07:46]process_json_proto [00:07:46]json parsed OK: [00:07:46]protocol is kg_v1.0 [00:07:46]action value=get_value [00:07:46]process_action get_value [00:07:46]cmd_get_value [00:07:46]process_action get_value done [00:07:46]requested_data is exist [00:07:46]produce_requested_data [00:07:46]requested_item kkm.sn is exist - process it [00:07:46]requested_item kkm.ver is exist - process it [00:07:46]requested_item fm.sn is exist - process it [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 11 00 00 [00:07:46]Write to MH i2c: E2 08 00 10 0F 80 11 00 00 00 00 00 00 99 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 17 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 17 00 10 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F2 [00:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:07:46]wFMCommunicate OK [00:07:46]requested_item fd.num is exist - process it [00:07:46]SAM_PROTO_GetFieldsCounters [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 00 00 [00:07:46]Write to MH i2c: E2 08 00 11 0F 80 13 00 00 00 00 00 00 9C [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 62 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 62 00 11 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 4A [00:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 22 49 00 00 0E 04 04 00 B4 00 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 [00:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetFieldsCounters done [00:07:46]requested_item shift.num is exist - process it [00:07:46]requested_item shift.opened is exist - process it [00:07:46]req_shift_opened [00:07:46]FM_GetShiftState [00:07:46]SAM_PROTO_GetShiftState [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 01 00 [00:07:46]Write to MH i2c: E2 08 00 12 0F 80 13 01 00 00 00 00 00 9E [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 0E 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 0E 00 12 0F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 5E [00:07:46]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [00:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetShiftState done [00:07:46]FM_GetShiftState done [00:07:46]req_shift_opened done [00:07:46]requested_item shift.open_date is exist - process it [00:07:46]req_shift_open_date [00:07:46]req_shift_open_date done [00:07:46]produce_requested_data done [00:07:46]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967} [00:07:46]process_action_free get_value [00:07:46]json_value_free [00:07:46]json_value_free done [00:07:46]process_json_proto returns [00:07:46]Send response to host [00:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18722,"shift.num":180,"shift.opened":1,"shift.open_date":1726963967}}} [00:07:46]free response buf [00:07:46]execute_script done [00:07:46]execute_script returns [00:07:46]free content buf [00:07:46]Sock 8.Close socket [00:07:46]Sock 8.Thread stoped [00:07:46]accept exits with 9 [00:07:46]New connection [00:07:46]New thread 3067272548 created [00:07:46]Thread 3067129188 joined [00:07:46]Waiting for new connection... [00:07:46] Sock 9.Parse request [00:07:46]Sock 9.Check first char [00:07:46]Sock 9.First char is OK [00:07:46]request: POST /json_proto HTTP/1.0 [00:07:46]Method: POST [00:07:46]URL: /json_proto [00:07:46]Method is POST - this is cgi request [00:07:46]url: /json_proto [00:07:46]query_string will be loaded in cgi processing [00:07:46]execute_cgi json_proto POST (null) [00:07:46]execute_cgi path=json_proto method=POST [00:07:46]POST find Content-Length [00:07:46]Host: 172.17.62.196:8080 [00:07:46]Content-Length: 331 [00:07:46]Content-Type: application/json [00:07:46] [00:07:46]POST finish read [00:07:46]Found Content-Length = 331 [00:07: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:07:46]execute_script... [00:07: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:07:46]POST & json_proto [00:07:46]process_json_proto [00:07:46]json parsed OK: [00:07:46]protocol is kg_v1.0 [00:07:46]action value=get_value [00:07:46]process_action get_value [00:07:46]cmd_get_value [00:07:46]process_action get_value done [00:07:46]requested_data is exist [00:07:46]produce_requested_data [00:07:47]requested_item fm.sale.total is exist - process it [00:07:47]SAM_PROTO_GetFMData [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 03 00 [00:07:47]Write to MH i2c: E2 08 00 13 0F 80 13 03 00 00 00 00 00 A1 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 13 0F 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 36 [00:07:47]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 14 0F 80 17 00 00 00 00 00 00 A3 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]OFD Sender: No OFD packet to send [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 14 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [00:07:48]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 15 0F 80 17 00 00 00 00 00 00 A4 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 15 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D6 [00:07:48]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 16 0F 80 17 00 00 00 00 00 00 A5 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 16 0F 00 04 F7 03 00 00 EF 03 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 90 00 20 [00:07:48]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 17 0F 80 17 00 00 00 00 00 00 A6 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 DB 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 DB 00 17 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 88 [00:07:48]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetFMData done [00:07:48]requested_item fm.sale_refund.total is exist - process it [00:07:48]requested_item fm.buy.total is exist - process it [00:07:48]requested_item shift.sale.total is exist - process it [00:07:48]SAM_PROTO_GetShiftData [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 02 00 [00:07:48]Write to MH i2c: E2 08 00 18 0F 80 13 02 00 00 00 00 00 A5 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 18 0F 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [00:07:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 19 0F 80 17 00 00 00 00 00 00 A8 [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 19 0F 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 CA [00:07:49]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:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 1A 0F 80 17 00 00 00 00 00 00 A9 [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 1A 0F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [00:07:50]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:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 1B 0F 80 17 00 00 00 00 00 00 AA [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 1B 0F 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 1C [00:07:50]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:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 1C 0F 80 17 00 00 00 00 00 00 AB [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 CB 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 CB 00 1C 0F 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 94 [00:07:50]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:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetShiftData done [00:07:50]requested_item shift.sale.total_cash is exist - process it [00:07:50]requested_item shift.sale_refund.total is exist - process it [00:07:50]requested_item shift.sale_refund.total_cash is exist - process it [00:07:50]requested_item shift.buy.total is exist - process it [00:07:50]requested_item shift.buy.total_cash is exist - process it [00:07:50]produce_requested_data done [00:07:50]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:50]process_action_free get_value [00:07:50]json_value_free [00:07:50]json_value_free done [00:07:50]process_json_proto returns [00:07:50]Send response to host [00:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:50]free response buf [00:07:50]execute_script done [00:07:50]execute_script returns [00:07:50]free content buf [00:07:50]Sock 9.Close socket [00:07:50]Sock 9.Thread stoped [00:07:50]accept exits with 8 [00:07:50]New connection [00:07:50]New thread 3067129188 created [00:07:50]Thread 3067272548 joined [00:07:50]Waiting for new connection... [00:07:50] Sock 8.Parse request [00:07:50]Sock 8.Check first char [00:07:50]Sock 8.First char is OK [00:07:50]request: POST /json_proto HTTP/1.0 [00:07:50]Method: POST [00:07:50]URL: /json_proto [00:07:50]Method is POST - this is cgi request [00:07:50]url: /json_proto [00:07:50]query_string will be loaded in cgi processing [00:07:50]execute_cgi json_proto POST (null) [00:07:50]execute_cgi path=json_proto method=POST [00:07:50]POST find Content-Length [00:07:50]Host: 172.17.62.196:8080 [00:07:50]Content-Length: 331 [00:07:50]Content-Type: application/json [00:07:50] [00:07:50]POST finish read [00:07:50]Found Content-Length = 331 [00:07: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" ] } } [00:07:50]execute_script... [00:07: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" ] } } [00:07:50]POST & json_proto [00:07:50]process_json_proto [00:07:50]json parsed OK: [00:07:50]protocol is kg_v1.0 [00:07:50]action value=get_value [00:07:50]process_action get_value [00:07:50]cmd_get_value [00:07:50]process_action get_value done [00:07:50]requested_data is exist [00:07:50]produce_requested_data [00:07:50]requested_item fm.sale.total is exist - process it [00:07:50]SAM_PROTO_GetFMData [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 13 03 00 [00:07:50]Write to MH i2c: E2 08 00 1D 0F 80 13 03 00 00 00 00 00 AB [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 1D 0F 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 40 [00:07:51]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 1E 0F 80 17 00 00 00 00 00 00 AD [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 1E 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:07:51]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 1F 0F 80 17 00 00 00 00 00 00 AE [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 1F 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E0 [00:07:52]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 20 0F 80 17 00 00 00 00 00 00 AF [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 20 0F 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:07:52]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 21 0F 80 17 00 00 00 00 00 00 B0 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]OFD Sender: No OFD packet to send [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 DB 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 DB 00 21 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [00:07:52]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetFMData done [00:07:53]requested_item fm.sale_refund.total is exist - process it [00:07:53]requested_item fm.buy.total is exist - process it [00:07:53]requested_item shift.sale.total is exist - process it [00:07:53]SAM_PROTO_GetShiftData [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 13 02 00 [00:07:53]Write to MH i2c: E2 08 00 22 0F 80 13 02 00 00 00 00 00 AF [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 22 0F 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [00:07:53]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 23 0F 80 17 00 00 00 00 00 00 B2 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 23 0F 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 D4 [00:07: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 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 24 0F 80 17 00 00 00 00 00 00 B3 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 24 0F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [00:07: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 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 25 0F 80 17 00 00 00 00 00 00 B4 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 25 0F 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 26 [00:07: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 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 26 0F 80 17 00 00 00 00 00 00 B5 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 CB 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 CB 00 26 0F 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 9E [00:07: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 [00:07:55]wFMCommunicate OK [00:07:55]SAM_PROTO_GetShiftData done [00:07:55]requested_item shift.sale.total_cash is exist - process it [00:07:55]requested_item shift.sale_refund.total is exist - process it [00:07:55]requested_item shift.sale_refund.total_cash is exist - process it [00:07:55]requested_item shift.buy.total is exist - process it [00:07:55]requested_item shift.buy.total_cash is exist - process it [00:07:55]produce_requested_data done [00:07:55]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:55]process_action_free get_value [00:07:55]json_value_free [00:07:55]json_value_free done [00:07:55]process_json_proto returns [00:07:55]Send response to host [00:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:07:55]free response buf [00:07:55]execute_script done [00:07:55]execute_script returns [00:07:55]free content buf [00:07:55]Sock 8.Close socket [00:07:55]Sock 8.Thread stoped [00:07:55]accept exits with 9 [00:07:55]New connection [00:07:55]New thread 3067272548 created [00:07:55]Thread 3067129188 joined [00:07:55]Waiting for new connection... [00:07:55] Sock 9.Parse request [00:07:55]Sock 9.Check first char [00:07:55]Sock 9.First char is OK [00:07:55]request: POST /json_proto HTTP/1.0 [00:07:55]Method: POST [00:07:55]URL: /json_proto [00:07:55]Method is POST - this is cgi request [00:07:55]url: /json_proto [00:07:55]query_string will be loaded in cgi processing [00:07:55]execute_cgi json_proto POST (null) [00:07:55]execute_cgi path=json_proto method=POST [00:07:55]POST find Content-Length [00:07:55]Host: 172.17.62.196:8080 [00:07:55]Content-Length: 290 [00:07:55]Content-Type: application/json [00:07:55] [00:07:55]POST finish read [00:07:55]Found Content-Length = 290 [00:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u044B\u0440\u0430\u0445\u043C\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:55]execute_script... [00:07:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0431\u0434\u044B\u0440\u0430\u0445\u043C\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:55]POST & json_proto [00:07:55]process_json_proto [00:07:55]json parsed OK: [00:07:55]protocol is kg_v1.0 [00:07:55]action value=close_shift [00:07:55]process_action close_shift [00:07:55]cmd_close_shift [00:07:55]MH_GetDate [00:07:55]Write to MH i2c: F0 00 00 27 0F 25 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 27 0F 00 5E B1 F0 66 CE CC 0E 66 A1 [00:07:55]GetLastDocTimeStamp 1727050023 [00:07:55]current date 1727050078 [00:07:55]FM_GetShiftState [00:07:55]SAM_PROTO_GetShiftState [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 13 01 00 [00:07:55]Write to MH i2c: E2 08 00 28 0F 80 13 01 00 00 00 00 00 B4 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 0E 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 0E 00 28 0F 00 09 00 01 FF 60 EF 66 00 00 00 00 90 00 74 [00:07:55]RAPDU: 09 00 01 FF 60 EF 66 00 00 00 00 90 00 [00:07:55]wFMCommunicate OK [00:07:55]SAM_PROTO_GetShiftState done [00:07:55]FM_GetShiftState done [00:07:55]KKMCreateCloseShiftDocument [00:07:55]Load OK [00:07:55]Malloc new data [00:07:55]MH_GetDate [00:07:55]Write to MH i2c: F0 00 00 29 0F 27 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 29 0F 00 5E B1 F0 66 CE CC 0E 66 A3 [00:07:55]Malloc new data [00:07:55]Malloc new data [00:07:55]Malloc new data [00:07:55]Malloc new data [00:07:55]KKMCreateCloseShiftDocument OK [00:07:55]KKMSetCloseShiftData OK [00:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=81 [00:07:55]tlvbuf is 002716A0 [00:07:55]KKMLoadAndSignCloseShiftData [00:07:55]SAM_PROTO_ProcessDocument [00:07:55]wFMCommunicate request_size=9 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 15 01 00 04 05 00 51 00 [00:07:55]Write to MH i2c: E2 0C 00 2A 0F 80 15 01 00 04 00 05 00 51 00 00 00 16 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 03 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [00:07:55]RAPDU: 90 00 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=23 [00:07:55]MH_SAM_APDU [00:07:55]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:07:55]Write to MH i2c: E2 1A 00 2B 0F 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 AF [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 03 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [00:07:55]RAPDU: 90 00 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=40 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 15 02 00 23 FD 03 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [00:07:55]Write to MH i2c: E2 2B 00 2C 0F 80 15 02 00 23 00 FD 03 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 05 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [00:07:56]RAPDU: 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=13 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 15 02 00 08 F4 03 04 00 5E B1 F0 66 [00:07:56]Write to MH i2c: E2 10 00 2D 0F 80 15 02 00 08 00 F4 03 04 00 5E B1 F0 66 00 00 2C [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [00:07:56]RAPDU: 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=25 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [00:07:56]Write to MH i2c: E2 1C 00 2E 0F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 25 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [00:07:56]RAPDU: 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 15 03 00 [00:07:56]Write to MH i2c: E2 08 00 2F 0F 80 15 03 00 00 00 00 00 BF [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 2F 0F 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [00:07:56]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_ProcessDocument answer len = 1265 [00:07:56]SAM_PROTO_ProcessDocument remain to read = 1017 [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 30 0F 80 17 00 00 00 00 00 00 BF [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 30 0F 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 08 [00:07:57]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 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:57]SAM_PROTO_ProcessDocument remain to read = 767 [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 31 0F 80 17 00 00 00 00 00 00 C0 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 31 0F 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 22 [00:07:57]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 [00:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:57]SAM_PROTO_ProcessDocument remain to read = 517 [00:07:57]wFMCommunicate request_size=4 [00:07:57]OFD Sender: No OFD packet to send [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 32 0F 80 17 00 00 00 00 00 00 C1 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 32 0F 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 4B [00:07:58]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 [00:07:58]wFMCommunicate OK [00:07:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:58]SAM_PROTO_ProcessDocument remain to read = 267 [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 33 0F 80 17 00 00 00 00 00 00 C2 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 33 0F 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 8A [00:07:58]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 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:59]SAM_PROTO_ProcessDocument remain to read = 17 [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 34 0F 80 17 00 00 00 00 00 00 C3 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 14 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 14 00 34 0F 00 01 00 06 F7 03 00 00 35 04 06 00 2D 29 A0 56 64 75 90 00 2D [00:07:59]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 2D 29 A0 56 64 75 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:07:59]SAM_PROTO_ProcessDocument done [00:07:59]1209 (1) - 1.0 - номер версии ФФД [00:07:59]1041 (16) - 0000000000959456 - номер ФМ [00:07:59]1040 (4) - 18723 - номер ФД [00:07:59]1038 (4) - 180 - номер смены [00:07:59]1118 (4) - 118 - количество кассовых чеков за смену [00:07:59]1111 (4) - 120 - общее количество ФД за смену [00:07:59]1194 (1194) - счетчики итогов смены [00:07:59] 1134 (4) - 118 - количество чеков со всеми признаками расчетов [00:07:59] 1129 (155) - счетчики операций «приход» [00:07:59] 1135 (4) - 118 - количество чеков по признаку расчетов [00:07:59] 1201 (3) - 22623.00 - общая итоговая сумма в чеках [00:07:59] 1136 (3) - 14452.00 - итоговая сумма в чеках наличными [00:07:59] 1138 (3) - 8171.00 - итоговая сумма в чеках безналичными [00:07:59] 1024 (122) - суммы налогов [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 0% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1006 (12) - суммы НДС [00:07:59] 1010 (1) - 12% - код ставки НДС [00:07:59] 1011 (3) - 2402.29 - сумма НДС по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (11) - суммы НСП [00:07:59] 1014 (1) - 1% - код ставки НСП [00:07:59] 1015 (2) - 200.09 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 2% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 3% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 5% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1130 (141) - счетчики операций «возврат прихода» [00:07:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:59] 1024 (117) - суммы налогов [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 0% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 12% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 2% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 3% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 5% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1131 (141) - счетчики операций «расход» [00:07:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:59] 1024 (117) - суммы налогов [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 0% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 12% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 2% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 3% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 5% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1132 (141) - счетчики операций «возврат расхода» [00:07:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:59] 1024 (117) - суммы налогов [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 0% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1006 (9) - суммы НДС [00:07:59] 1010 (1) - 12% - код ставки НДС [00:07:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 2% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 3% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 5% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 0,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1007 (9) - суммы НСП [00:07:59] 1014 (1) - 1,50% - код ставки НСП [00:07:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:59] 1133 (588) - - счетчики коррекции - не используются [00:07:59]1077 (6) - 49656806925429 - ФПД [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1209 (04B9) [00:07:59]Malloc new data [00:07:59]Processing tag 1041 (0411) [00:07:59]Processing tag 1040 (0410) [00:07:59]Malloc new data [00:07:59]Processing tag 1038 (040E) [00:07:59]Malloc new data [00:07:59]Processing tag 1118 (045E) [00:07:59]Malloc new data [00:07:59]Processing tag 1111 (0457) [00:07:59]Malloc new data [00:07:59]Processing tag 1194 (04AA) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1134 (046E) [00:07:59]Malloc new data [00:07:59]Processing tag 1129 (0469) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1135 (046F) [00:07:59]Malloc new data [00:07:59]Processing tag 1201 (04B1) [00:07:59]Malloc new data [00:07:59]Processing tag 1136 (0470) [00:07:59]Malloc new data [00:07:59]Processing tag 1138 (0472) [00:07:59]Malloc new data [00:07:59]Processing tag 1024 (0400) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1006 (03EE) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1010 (03F2) [00:07:59]Malloc new data [00:07:59]Processing tag 1011 (03F3) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1006 (03EE) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1010 (03F2) [00:07:59]Malloc new data [00:07:59]Processing tag 1011 (03F3) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]SetTLVBufToDocument err=0 [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1130 (046A) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1135 (046F) [00:07:59]Malloc new data [00:07:59]Processing tag 1201 (04B1) [00:07:59]Malloc new data [00:07:59]Processing tag 1136 (0470) [00:07:59]Malloc new data [00:07:59]Processing tag 1138 (0472) [00:07:59]Malloc new data [00:07:59]Processing tag 1024 (0400) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1006 (03EE) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1010 (03F2) [00:07:59]Malloc new data [00:07:59]Processing tag 1011 (03F3) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1006 (03EE) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1010 (03F2) [00:07:59]Malloc new data [00:07:59]Processing tag 1011 (03F3) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:07:59]Malloc new data [00:07:59]SetTLVBufToDocument err=0 [00:07:59]Processing tag 1007 (03EF) [00:07:59]Load OK [00:07:59]SetTLVBufToDocument [00:07:59]Processing tag 1014 (03F6) [00:07:59]Malloc new data [00:07:59]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1131 (046B) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1135 (046F) [00:08:00]Malloc new data [00:08:00]Processing tag 1201 (04B1) [00:08:00]Malloc new data [00:08:00]Processing tag 1136 (0470) [00:08:00]Malloc new data [00:08:00]Processing tag 1138 (0472) [00:08:00]Malloc new data [00:08:00]Processing tag 1024 (0400) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1006 (03EE) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1010 (03F2) [00:08:00]Malloc new data [00:08:00]Processing tag 1011 (03F3) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1006 (03EE) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1010 (03F2) [00:08:00]Malloc new data [00:08:00]Processing tag 1011 (03F3) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1132 (046C) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1135 (046F) [00:08:00]Malloc new data [00:08:00]Processing tag 1201 (04B1) [00:08:00]Malloc new data [00:08:00]Processing tag 1136 (0470) [00:08:00]Malloc new data [00:08:00]Processing tag 1138 (0472) [00:08:00]Malloc new data [00:08:00]Processing tag 1024 (0400) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1006 (03EE) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1010 (03F2) [00:08:00]Malloc new data [00:08:00]Processing tag 1011 (03F3) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1006 (03EE) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1010 (03F2) [00:08:00]Malloc new data [00:08:00]Processing tag 1011 (03F3) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1007 (03EF) [00:08:00]Load OK [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1014 (03F6) [00:08:00]Malloc new data [00:08:00]Processing tag 1015 (03F7) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1133 (046D) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Processing tag 1077 (0435) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]Malloc new data [00:08:00]SAM_PROTO_GetFMData [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 13 03 00 [00:08:00]Write to MH i2c: E2 08 00 35 0F 80 13 03 00 00 00 00 00 C3 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 FD 00 35 0F 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 58 [00:08:01]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 36 0F 80 17 00 00 00 00 00 00 C5 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 FD 00 36 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [00:08:01]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:01]wFMCommunicate OK [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 17 00 00 [00:08:01]Write to MH i2c: E2 08 00 37 0F 80 17 00 00 00 00 00 00 C6 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 37 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F8 [00:08:02]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 38 0F 80 17 00 00 00 00 00 00 C7 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 FD 00 38 0F 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:08:02]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 17 00 00 [00:08:02]Write to MH i2c: E2 08 00 39 0F 80 17 00 00 00 00 00 00 C8 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:03]OFD Sender: No OFD packet to send [00:08:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DB 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 DB 00 39 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [00:08:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:08:03]wFMCommunicate OK [00:08:03]SAM_PROTO_GetFMData done [00:08:03]Malloc new data [00:08:03]Malloc new data [00:08:03]Malloc new data [00:08:03]Malloc new data [00:08:03]KKMLoadAndSignCloseShiftData err=0 [00:08:03]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абдырахманова Ж. 23.09.2024 00:07 Смена: 180 РНМ: 0000000000152968 ЗНМ: 0300000010 СНО: Общий режим Чеков за смену: 118 ФД за смену: 120 Всего чеков: 118 ИТОГИ ПРИХОД Чеков: 118 Общий итог: 22623.00 Итого наличными: 14452.00 Итого безнал.: 8171.00 НДС 0% : 0.00 НДС 12% : 2402.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 200.09 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 14452.00 НС Приход: 8289676.82 НС Возвр.Прихода: 56064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 18723 ФМ: 0000000000959456 ФПД: 49656806925429 [00:08:03]StoreToDocumentArchive [00:08:03]shift 180 fd 18723 [00:08:03]save to /storage/0180/doc_00018723 [00:08:03]save last doc name /storage/0180/doc_00018723 to /storage/kkm_last_doc_name [00:08:03]save OK [00:08:03]Clear old archive folders... [00:08:03]Remove dir /storage/0010 [00:08:03]opendir ok [00:08:03]file . [00:08:03]file .. [00:08:03]file doc_1727050031 [00:08:03]remove file /storage/0010/doc_1727050031 [00:08:03]remove dir /storage/0010 [00:08:03]NVStorageSaveData kkm_registers [00:08:03]File name is /storage/kkm_registers [00:08:03]Write 24 bytes [00:08:03]NVStorageSaveData done [00:08:03]NVStorageSaveData kkm_registers [00:08:03]File name is /storage/kkm_registers [00:08:03]Write 24 bytes [00:08:03]NVStorageSaveData done [00:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:08:03]tlvbuf is 001E3730 [00:08:03]SAM_PROTO_ClearQueue [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 09 00 00 [00:08:03]Write to MH i2c: E2 08 00 3A 0F 80 09 00 00 00 00 00 00 BB [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]SAM_PROTO_ClearQueue done [00:08:03]KKMCreateOFDPacket [00:08:03]OFDProtocolAddRootSTLVToBuf [00:08:03]FM_MakeSignedData [00:08:03]FM_MakeSignedData [00:08:03]SAM_PROTO_SignData [00:08:03]wFMCommunicate request_size=4 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 0D 01 02 [00:08:03]Write to MH i2c: E2 08 00 3B 0F 80 0D 01 02 00 00 00 00 C3 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:03]Read from MH i2c: E2 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: E2 03 00 3B 0F 00 90 00 BE [00:08:03]RAPDU: 90 00 [00:08:03]wFMCommunicate OK [00:08:03]wFMCommunicate request_size=255 [00:08:03]MH_SAM_APDU [00:08:03]CAPDU: 80 0D 02 02 FA 05 00 6D 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 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 5E B1 F0 66 0E 04 04 00 B4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 D5 04 6E 04 04 00 76 00 00 00 69 04 A2 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 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 [00:08:03]Write to MH i2c: E2 02 01 3C 0F 80 0D 02 02 FA 00 05 00 6D 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 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 5E B1 F0 66 0E 04 04 00 B4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 D5 04 6E 04 04 00 76 00 00 00 69 04 A2 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 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 00 00 AC [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 3C 0F 00 90 00 BF [00:08:04]RAPDU: 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=255 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 0D 02 02 FA 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 29 4E 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 [00:08:04]Write to MH i2c: E2 02 01 3D 0F 80 0D 02 02 FA 00 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 29 4E 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 00 00 B8 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 03 00 3D 0F 00 90 00 C0 [00:08:04]RAPDU: 90 00 [00:08:04]wFMCommunicate OK [00:08:04]wFMCommunicate request_size=255 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 0D 02 02 FA 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 [00:08:05]Write to MH i2c: E2 02 01 3E 0F 80 0D 02 02 FA 00 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 00 00 7F [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 03 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 03 00 3E 0F 00 90 00 C1 [00:08:05]RAPDU: 90 00 [00:08:05]wFMCommunicate OK [00:08:05]wFMCommunicate request_size=255 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 0D 02 02 FA 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 [00:08:05]Write to MH i2c: E2 02 01 3F 0F 80 0D 02 02 FA 00 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 00 00 9F [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 3F 0F 00 90 00 C2 [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=255 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:06]Write to MH i2c: E2 02 01 40 0F 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 59 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 40 0F 00 90 00 C3 [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=148 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 2D 29 A0 56 64 75 [00:08:06]Write to MH i2c: E2 97 00 41 0F 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 2D 29 A0 56 64 75 00 00 A0 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 03 00 41 0F 00 90 00 C4 [00:08:07]RAPDU: 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 0D 03 02 [00:08:07]Write to MH i2c: E2 08 00 42 0F 80 0D 03 02 00 00 00 00 CC [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 0B 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 0B 00 42 0F 00 8E FE 04 F2 1F C2 F3 FC 90 00 1F [00:08:07]RAPDU: 8E FE 04 F2 1F C2 F3 FC 90 00 [00:08:07]wFMCommunicate OK [00:08:07]SAM_PROTO_SignData done [00:08:07]FM_MakeSignedData done [00:08:07]CreateOFDProtocolMessage [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 11 00 00 [00:08:07]Write to MH i2c: E2 08 00 43 0F 80 11 00 00 00 00 00 00 CC [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 17 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 17 00 43 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 25 [00:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:08:07]wFMCommunicate OK [00:08:07]CreateOFDProtocolMessage done [00:08:07]OFDSenderStorePacket 18723 [00:08:07]StoreOFDPacket docnum=18723 [00:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 81 05 00 00 54 91 79 05 82 6C 5A 05 01 00 05 00 6D 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 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 5E B1 F0 66 0E 04 04 00 B4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 D5 04 6E 04 04 00 76 00 00 00 69 04 A2 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 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 29 4E 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 23 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 2D 29 A0 56 64 75 8E FE 04 F2 1F C2 F3 FC [00:08:07]CheckFolder [00:08:07]dirname=/storage/ofd_packets [00:08:07]CheckFolder done [00:08:07]ProducePacketName [00:08:07]name=ofd_packets/00018723 [00:08:07]NVStorageSaveData ofd_packets/00018723 [00:08:07]File name is /storage/ofd_packets/00018723 [00:08:07]Write 1439 bytes [00:08:07]NVStorageSaveData done [00:08:07]OFDSenderStorePacket done [00:08:07]KKMCreateOFDPacket done [00:08:07]NVStorageSaveData kkm_last_timestamp [00:08:07]File name is /storage/kkm_last_timestamp [00:08:07]Write 4 bytes [00:08:07]NVStorageSaveData done [00:08:07]ExternCall_PrintAddStr [00:08:07]wPrintStart [00:08:07]Write to MH i2c: 01 00 00 44 0F 53 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 FF 0F 68 [00:08:07]RasterBufferAndPrint [00:08:07]line Отчет о закрытии смены [00:08:07]line ФФД: 1.0 [00:08:07]line ИНН: 02508201610067 [00:08:07]line Кассир: Абдырахманова Ж. [00:08:07]line 23.09.2024 00:07 [00:08:07]line Смена: 180 [00:08:07]line РНМ: 0000000000152968 [00:08:07]line ЗНМ: 0300000010 [00:08:07]line СНО: Общий режим [00:08:07]line Чеков за смену: 118 [00:08:07]line ФД за смену: 120 [00:08:07]line Всего чеков: 118 [00:08:07]line ИТОГИ ПРИХОД [00:08:07]line Чеков: 118 [00:08:07]line Общий итог: 22623.00 [00:08:07]line Итого наличными: 14452.00 [00:08:07]line Итого безнал.: 8171.00 [00:08:07]line НДС 0% : 0.00 [00:08:07]line НДС 12% : 2402.29 [00:08:07]line НСП 0% : 0.00 [00:08:07]line НСП 1,50% : 0.00 [00:08:07]line НСП 0,50% : 0.00 [00:08:07]line НСП 5% : 0.00 [00:08:07]line НСП 3% : 0.00 [00:08:07]line НСП 2% : 0.00 [00:08:07]line НСП 1% : 200.09 [00:08:07]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:07]line Чеков: 0 [00:08:07]line Общий итог: 0.00 [00:08:07]line Итого наличными: 0.00 [00:08:07]line Итого безнал.: 0.00 [00:08:07]line НДС 0% : 0.00 [00:08:07]line НДС 12% : 0.00 [00:08:07]line НСП 0% : 0.00 [00:08:07]line НСП 1,50% : 0.00 [00:08:07]line НСП 0,50% : 0.00 [00:08:07]line НСП 5% : 0.00 [00:08:07]line НСП 3% : 0.00 [00:08:07]line НСП 2% : 0.00 [00:08:07]line НСП 1% : 0.00 [00:08:07]line ИТОГИ РАСХОД [00:08:07]line Чеков: 0 [00:08:07]line Общий итог: 0.00 [00:08:07]line Итого наличными: 0.00 [00:08:07]line Итого безнал.: 0.00 [00:08:07]OFD Sender: Processing packet 18723 [packets to send 7, broken 6] [00:08:07]ProducePacketName [00:08:07]name=ofd_packets/00018723 [00:08:07]OFD Sender: To server: pG, [00:08:07]CommunicateWithHost lk.salyk.kg:30040 [00:08:07]ConnectInit lk.salyk.kg [00:08:07]line НДС 0% : 0.00 [00:08:07]line НДС 12% : 0.00 [00:08:07]line НСП 0% : 0.00 [00:08:07]line НСП 1,50% : 0.00 [00:08:07]line НСП 0,50% : 0.00 [00:08:07]line НСП 5% : 0.00 [00:08:07]line НСП 3% : 0.00 [00:08:07]line НСП 2% : 0.00 [00:08:07]line НСП 1% : 0.00 [00:08:07]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:07]line Чеков: 0 [00:08:07]line Общий итог: 0.00 [00:08:07]line Итого наличными: 0.00 [00:08:07]line Итого безнал.: 0.00 [00:08:07]line НДС 0% : 0.00 [00:08:07]line НДС 12% : 0.00 [00:08:07]line НСП 0% : 0.00 [00:08:07]line НСП 1,50% : 0.00 [00:08:07]line НСП 0,50% : 0.00 [00:08:07]line НСП 5% : 0.00 [00:08:07]line НСП 3% : 0.00 [00:08:07]line НСП 2% : 0.00 [00:08:07]line НСП 1% : 0.00 [00:08:07]line Сумма внесений: 0.00 [00:08:07]line Сумма выплат: 0.00 [00:08:07]line Нал. в кассе: 14452.00 [00:08:07]line НС Приход: 8289676.82 [00:08:07]line НС Возвр.Прихода: 56064.00 [00:08:07]line НС Расход: 0.00 [00:08:07]line НС Возвр.Расхода: 0.00 [00:08:07]line ФД: 18723 [00:08:07]line ФМ: 0000000000959456 [00:08:07]line ФПД: 49656806925429 [00:08:07]written 0, free lines is 4095 [00:08:07]Connected sock=10 [00:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 81 05 00 00 54 91 79 05 82 6C 5A 05 01 00 05 00 6D 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 1F 00 D0 90 D0 B1 D0 B4 D1 8B D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 5E B1 F0 66 0E 04 04 00 B4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 AA 04 D5 04 6E 04 04 00 76 00 00 00 69 04 A2 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 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 29 4E 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 Write to MH i2c: 09 01 00 00 F6 00 03 94 01 0F 00 A3 04 [00:08:08]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 Write i2c OK [00:08:08]03 MH_I2C_Read... [00:08:08]00 Read from MH i2c: 01 00 [00:08:08]EF MH_I2C_Read... [00:08:08]03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 Read from MH i2c: 04 01 00 07 00 00 00 [00:08:08]00 MH_I2C_Read... [00:08:08]00 Read from MH i2c: B1 01 04 07 00 00 00 94 70 0F 04 00 00 00 00 00 72 00 04 00 00 69 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 0C 03 1F 00 [00:08:08]00 RasterBufferAndPrint [00:08:08]EE line [00:08:08]03 line [00:08:08]09 line [00:08:08]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 line [00:08:08]03 line [00:08:08]01 00 00 F7 03 00 00 EF 03 09 00 F6 written 0, free lines is 3327 [00:08:09]03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [00:08:09]01 Write to MH i2c: D1 00 01 02 00 F7 9B 03 0F 00 01 00 7C EF [00:08:09]03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 Write i2c OK [00:08:09]04 MH_I2C_Read... [00:08:09]F7 Read from MH i2c: 03 D1 00 [00:08:09]00 MH_I2C_Read... [00:08:09]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 [00:08:09]00 MH_I2C_Read... [00:08:09]06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 Read from MH i2c: B1 D1 04 01 00 00 00 9B 70 0F 04 00 00 7B 00 [00:08:09]72 Write to MH i2c: 04 01 00 00 00 00 00 9C 04 0F 75 AB 00 [00:08:09]EE 03 09 00 F2 03 01 00 00 F3 03 Write i2c OK [00:08:09]00 MH_I2C_Read... [00:08:09]00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 2D 29 A0 56 64 75 8E FE 04 F2 1F C2 F3 FC [00:08:09]*** Cut start [00:08:09]*** Partial cut [00:08:09]*** CUTSNS_PIN = 1 [00:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 5C 83 47 00 *** CUTSNS_PIN = 0 [00:08:09]D0 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 39 35 39 34 35 36 10 04 04 00 23 49 00 00 F4 03 04 00 D0 5A F0 66 B6 04 01 00 00 A7 A5 69 EC BA B6 7A EC [00:08:09]CommunicateWithHost err = 0 [00:08:09]CheckOFDResponse [00:08:09]*** Brake cut motor [00:08:09]1017 (14) - 77093643461234 [00:08:09]1041 (16) - 0000000000959456 [00:08:09]1040 (4) - 18723 [00:08:09]1012 (4) - 22.09.2024 17:58 [00:08:09]1206 (1) - 0 [00:08:09]OFD Sender: Remove packet 18723 [00:08:09]ProducePacketName [00:08:09]name=ofd_packets/00018723 [00:08:09]NVStorageDeleteData [00:08:10]Read from MH i2c: 01 [00:08:10]MH_I2C_Read... [00:08:10]*** Stop cut motor [00:08:10]*** Cut end [00:08:10]Read from MH i2c: 01 07 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [00:08:10]process_action close_shift done [00:08:10]requested_data is exist [00:08:10]produce_requested_data [00:08:10]requested_item fd.num is exist - process it [00:08:10]SAM_PROTO_GetFieldsCounters [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 00 00 [00:08:10]Write to MH i2c: E2 08 00 9D 0F 80 13 00 00 00 00 00 00 28 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 [00:08:10]MH_I2C_Read... [00:08:10]OFD Sender: No OFD packet to send [00:08:10]Read from MH i2c: E2 62 00 9D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetFieldsCounters done [00:08:10]requested_item shift.num is exist - process it [00:08:10]requested_item shift.opened is exist - process it [00:08:10]req_shift_opened [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 9E 0F 80 13 01 00 00 00 00 00 2A [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 9E 0F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 35 [00:08:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_opened done [00:08:10]requested_item shift.open_date is exist - process it [00:08:10]req_shift_open_date [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 36 [00:08:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_open_date done [00:08:10]produce_requested_data done [00:08:10]produce_requested_data return {"fd.num":18723,"shift.num":180,"shift.opened":0,"shift.open_date":0} [00:08:10]process_action_free close_shift [00:08:10]json_value_free [00:08:10]json_value_free done [00:08:10]process_json_proto returns [00:08:10]Send response to host [00:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18723,"shift.num":180,"shift.opened":0,"shift.open_date":0}}} [00:08:10]free response buf [00:08:10]execute_script done [00:08:10]execute_script returns [00:08:10]free content buf [00:08:10]Sock 9.Close socket [00:08:10]Sock 9.Thread stoped [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:45]accept exits with 8 [00:12:45]New connection [00:12:45]New thread 3067129188 created [00:12:45]Thread 3067272548 joined [00:12:45]Waiting for new connection... [00:12:45] Sock 8.Parse request [00:12:45]Sock 8.Check first char [00:12:45]Sock 8.First char is OK [00:12:45]request: POST /json_proto HTTP/1.0 [00:12:45]Method: POST [00:12:45]URL: /json_proto [00:12:45]Method is POST - this is cgi request [00:12:45]url: /json_proto [00:12:45]query_string will be loaded in cgi processing [00:12:45]execute_cgi json_proto POST (null) [00:12:45]execute_cgi path=json_proto method=POST [00:12:45]POST find Content-Length [00:12:45]Host: 172.17.62.196:8080 [00:12:45]Content-Length: 215 [00:12:45]Content-Type: application/json [00:12:45] [00:12:45]POST finish read [00:12:45]Found Content-Length = 215 [00:12:45]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:45]execute_script... [00:12:45]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:45]POST & json_proto [00:12:45]process_json_proto [00:12:45]json parsed OK: [00:12:45]protocol is kg_v1.0 [00:12:45]action value=get_value [00:12:45]process_action get_value [00:12:45]cmd_get_value [00:12:45]process_action get_value done [00:12:45]requested_data is exist [00:12:45]produce_requested_data [00:12:45]requested_item kkm.sn is exist - process it [00:12:45]requested_item kkm.ver is exist - process it [00:12:45]requested_item fm.sn is exist - process it [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 11 00 00 [00:12:45]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 17 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 17 00 A0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 82 [00:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:12:45]wFMCommunicate OK [00:12:45]requested_item fd.num is exist - process it [00:12:45]SAM_PROTO_GetFieldsCounters [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 00 00 [00:12:45]Write to MH i2c: E2 08 00 A1 0F 80 13 00 00 00 00 00 00 2C [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 62 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 62 00 A1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [00:12:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 23 49 00 00 0E 04 04 00 B4 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetFieldsCounters done [00:12:45]requested_item shift.num is exist - process it [00:12:45]requested_item shift.opened is exist - process it [00:12:45]req_shift_opened [00:12:45]FM_GetShiftState [00:12:45]SAM_PROTO_GetShiftState [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 01 00 [00:12:45]Write to MH i2c: E2 08 00 A2 0F 80 13 01 00 00 00 00 00 2E [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 A2 0F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 39 [00:12:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetShiftState done [00:12:45]FM_GetShiftState done [00:12:45]req_shift_opened done [00:12:45]requested_item shift.open_date is exist - process it [00:12:45]req_shift_open_date [00:12:45]FM_GetShiftState [00:12:45]SAM_PROTO_GetShiftState [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 01 00 [00:12:45]Write to MH i2c: E2 08 00 A3 0F 80 13 01 00 00 00 00 00 2F [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 A3 0F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3A [00:12:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetShiftState done [00:12:45]FM_GetShiftState done [00:12:45]req_shift_open_date done [00:12:45]produce_requested_data done [00:12:45]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18723,"shift.num":180,"shift.opened":0,"shift.open_date":0} [00:12:45]process_action_free get_value [00:12:45]json_value_free [00:12:45]json_value_free done [00:12:45]process_json_proto returns [00:12:45]Send response to host [00:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18723,"shift.num":180,"shift.opened":0,"shift.open_date":0}}} [00:12:45]free response buf [00:12:45]execute_script done [00:12:45]execute_script returns [00:12:45]free content buf [00:12:45]Sock 8.Close socket [00:12:45]Sock 8.Thread stoped [00:12:46]accept exits with 9 [00:12:46]New connection [00:12:46]New thread 3067272548 created [00:12:46]Thread 3067129188 joined [00:12:46]Waiting for new connection... [00:12:46] Sock 9.Parse request [00:12:46]Sock 9.Check first char [00:12:46]Sock 9.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.62.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 A4 0F 80 13 03 00 00 00 00 00 32 [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 A4 0F 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 C7 [00:12:46]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:12:46]wFMCommunicate OK [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 17 00 00 [00:12:46]Write to MH i2c: E2 08 00 A5 0F 80 17 00 00 00 00 00 00 34 [00:12:46]Write i2c OK [00:12:46]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 A5 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [00:12:47]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 A6 0F 80 17 00 00 00 00 00 00 35 [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 A6 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 67 [00:12:47]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 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 A7 0F 80 17 00 00 00 00 00 00 36 [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 A7 0F 00 04 F7 03 00 00 EF 03 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 90 00 B1 [00:12:47]RAPDU: 04 F7 03 00 00 EF 03 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 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 A8 0F 80 17 00 00 00 00 00 00 37 [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 = 216! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 DB 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 DB 00 A8 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:12:47]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:47]wFMCommunicate OK [00:12:47]SAM_PROTO_GetFMData done [00:12:47]requested_item fm.sale_refund.total is exist - process it [00:12:47]requested_item fm.buy.total is exist - process it [00:12:47]requested_item shift.sale.total is exist - process it [00:12:47]SAM_PROTO_GetShiftData [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 13 02 00 [00:12:47]Write to MH i2c: E2 08 00 A9 0F 80 13 02 00 00 00 00 00 36 [00:12:47]Write i2c OK [00:12:47]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:48]Read from MH i2c: E2 FD 00 A9 0F 00 AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 [00:12:48]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 76 00 00 00 69 04 9B 00 6F 04 04 00 76 00 00 00 B1 04 03 00 1C 85 22 70 04 03 00 50 0D 16 72 04 03 00 CC 77 0C 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 65 AA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 29 4E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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: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 AA 0F 80 17 00 00 00 00 00 00 39 [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 = 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 AA 0F 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 5B [00:12:48]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: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 AB 0F 80 17 00 00 00 00 00 00 3A [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 = 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 AB 0F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 [00:12:48]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: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 AC 0F 80 17 00 00 00 00 00 00 3B [00:12:48]Write i2c OK [00:12:48]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 AC 0F 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 AD [00:12:49]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: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 AD 0F 80 17 00 00 00 00 00 00 3C [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 = 200! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 CB 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 CB 00 AD 0F 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 25 [00:12:49]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:49]wFMCommunicate OK [00:12:49]SAM_PROTO_GetShiftData done [00:12:49]requested_item shift.sale.total_cash is exist - process it [00:12:49]requested_item shift.sale_refund.total is exist - process it [00:12:49]requested_item shift.sale_refund.total_cash is exist - process it [00:12:49]requested_item shift.buy.total is exist - process it [00:12:49]requested_item shift.buy.total_cash is exist - process it [00:12:49]produce_requested_data done [00:12:49]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:49]process_action_free get_value [00:12:49]json_value_free [00:12:49]json_value_free done [00:12:49]process_json_proto returns [00:12:49]Send response to host [00:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":22623.00,"shift.sale.total_cash":14452.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:49]free response buf [00:12:49]execute_script done [00:12:49]execute_script returns [00:12:49]free content buf [00:12:49]Sock 9.Close socket [00:12:49]Sock 9.Thread stoped [00:12:49]accept exits with 8 [00:12:49]New connection [00:12:49]New thread 3067129188 created [00:12:49]Thread 3067272548 joined [00:12:49]Waiting for new connection... [00:12:49] Sock 8.Parse request [00:12:49]Sock 8.Check first char [00:12:49]Sock 8.First char is OK [00:12:49]request: POST /json_proto HTTP/1.0 [00:12:49]Method: POST [00:12:49]URL: /json_proto [00:12:49]Method is POST - this is cgi request [00:12:49]url: /json_proto [00:12:49]query_string will be loaded in cgi processing [00:12:49]execute_cgi json_proto POST (null) [00:12:49]execute_cgi path=json_proto method=POST [00:12:49]POST find Content-Length [00:12:49]Host: 172.17.62.196:8080 [00:12:49]Content-Length: 253 [00:12:49]Content-Type: application/json [00:12:49] [00:12:49]POST finish read [00:12:49]Found Content-Length = 253 [00:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:49]execute_script... [00:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:49]POST & json_proto [00:12:49]process_json_proto [00:12:49]json parsed OK: [00:12:49]protocol is kg_v1.0 [00:12:49]action value=open_shift [00:12:49]process_action open_shift [00:12:49]cmd_open_shift [00:12:49]MH_GetDate [00:12:49]Write to MH i2c: F0 00 00 AE 0F AC [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 AE 0F 00 84 B2 F0 66 CE CC 0E 66 4F [00:12:49]GetLastDocTimeStamp 1727050078 [00:12:49]current date 1727050372 [00:12:49]FM_GetShiftState [00:12:49]SAM_PROTO_GetShiftState [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 13 01 00 [00:12:49]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0E 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 46 [00:12:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:49]wFMCommunicate OK [00:12:49]SAM_PROTO_GetShiftState done [00:12:49]FM_GetShiftState done [00:12:49]KKMCreateOpenShiftDocument [00:12:49]Load OK [00:12:49]Malloc new data [00:12:49]MH_GetDate [00:12:49]Write to MH i2c: F0 00 00 B0 0F AE [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 B0 0F 00 84 B2 F0 66 CE CC 0E 66 51 [00:12:49]Malloc new data [00:12:49]KKMCreateOpenShiftDocument OK [00:12:49]KKMSetOpenShiftData OK [00:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=204 [00:12:49]tlvbuf is 002435E0 [00:12:49]KKMLoadAndSignOpenShiftData [00:12:49]SAM_PROTO_ProcessDocument [00:12:49]wFMCommunicate request_size=9 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 01 00 04 02 00 CC 00 [00:12:49]Write to MH i2c: E2 0C 00 B1 0F 80 15 01 00 04 00 02 00 CC 00 00 00 15 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=23 [00:12:49]MH_SAM_APDU [00:12:49]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:49]Write to MH i2c: E2 1A 00 B2 0F 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 36 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=28 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 [00:12:49]Write to MH i2c: E2 1F 00 B3 0F 80 15 02 00 17 00 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 00 00 FF [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=94 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 59 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 [00:12:49]Write to MH i2c: E2 61 00 B4 0F 80 15 02 00 59 00 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 00 00 6F [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=51 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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:50]Write to MH i2c: E2 36 00 B5 0F 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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 F4 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=13 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 02 00 08 F4 03 04 00 84 B2 F0 66 [00:12:50]Write to MH i2c: E2 10 00 B6 0F 80 15 02 00 08 00 F4 03 04 00 84 B2 F0 66 00 00 DC [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=25 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [00:12:50]Write to MH i2c: E2 1C 00 B7 0F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 AE [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [00:12:50]RAPDU: 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 15 03 00 [00:12:50]Write to MH i2c: E2 08 00 B8 0F 80 15 03 00 00 00 00 00 48 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 38 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 38 00 B8 0F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 24 49 00 00 0E 04 04 00 B5 00 00 00 35 04 06 00 B6 59 EF BD A7 EA 90 00 88 [00:12:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 24 49 00 00 0E 04 04 00 B5 00 00 00 35 04 06 00 B6 59 EF BD A7 EA 90 00 [00:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_ProcessDocument answer len = 51 [00:12:50]SAM_PROTO_ProcessDocument done [00:12:50]SetTLVBufToDocument [00:12:50]Processing tag 1209 (04B9) [00:12:50]Malloc new data [00:12:50]Processing tag 1041 (0411) [00:12:50]Processing tag 1040 (0410) [00:12:50]Malloc new data [00:12:50]Processing tag 1038 (040E) [00:12:50]Malloc new data [00:12:50]Processing tag 1077 (0435) [00:12:50]Malloc new data [00:12:50]SetTLVBufToDocument err=0 [00:12:50]KKMLoadAndSignOpenShiftData store KKM data [00:12:50]KKMLoadAndSignOpenShiftData err=0 [00:12:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамедов Э. Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 Место: АЗС № 176 "Партнер Нефть" 23.09.2024 00:12 Смена: 181 РНМ: 0000000000152968 ЗНМ: 0300000010 ФД: 18724 ФМ: 0000000000959456 ФПД: 200497390528490 [00:12:50]StoreToDocumentArchive [00:12:50]shift 181 fd 18724 [00:12:50]Create dir for shift 0181 [00:12:50]save to /storage/0181/doc_00018724 [00:12:50]save last doc name /storage/0181/doc_00018724 to /storage/kkm_last_doc_name [00:12:50]save OK [00:12:50]Clear old archive folders... [00:12:50]Remove dir /storage/0180 [00:12:50]opendir ok [00:12:50]file . [00:12:50]file .. [00:12:50]file doc_00018604 [00:12:50]remove file /storage/0180/doc_00018604 [00:12:50]file doc_00018605 [00:12:50]remove file /storage/0180/doc_00018605 [00:12:50]file doc_00018606 [00:12:50]remove file /storage/0180/doc_00018606 [00:12:50]file doc_00018607 [00:12:50]remove file /storage/0180/doc_00018607 [00:12:50]file doc_00018608 [00:12:50]remove file /storage/0180/doc_00018608 [00:12:50]file doc_00018609 [00:12:50]remove file /storage/0180/doc_00018609 [00:12:50]file doc_00018610 [00:12:50]remove file /storage/0180/doc_00018610 [00:12:50]file doc_00018611 [00:12:50]remove file /storage/0180/doc_00018611 [00:12:50]file doc_00018612 [00:12:50]remove file /storage/0180/doc_00018612 [00:12:50]file doc_00018613 [00:12:50]remove file /storage/0180/doc_00018613 [00:12:50]file doc_00018614 [00:12:50]remove file /storage/0180/doc_00018614 [00:12:50]file doc_00018615 [00:12:50]remove file /storage/0180/doc_00018615 [00:12:50]file doc_00018616 [00:12:50]remove file /storage/0180/doc_00018616 [00:12:50]file doc_00018617 [00:12:50]remove file /storage/0180/doc_00018617 [00:12:50]file doc_00018618 [00:12:50]remove file /storage/0180/doc_00018618 [00:12:50]file doc_00018619 [00:12:50]remove file /storage/0180/doc_00018619 [00:12:50]file doc_00018620 [00:12:50]remove file /storage/0180/doc_00018620 [00:12:50]file doc_00018621 [00:12:50]remove file /storage/0180/doc_00018621 [00:12:50]file doc_00018622 [00:12:50]remove file /storage/0180/doc_00018622 [00:12:50]file doc_00018623 [00:12:50]remove file /storage/0180/doc_00018623 [00:12:50]file doc_00018624 [00:12:50]remove file /storage/0180/doc_00018624 [00:12:50]file doc_00018625 [00:12:50]remove file /storage/0180/doc_00018625 [00:12:50]file doc_00018626 [00:12:50]remove file /storage/0180/doc_00018626 [00:12:50]file doc_00018627 [00:12:50]remove file /storage/0180/doc_00018627 [00:12:50]file doc_00018628 [00:12:50]remove file /storage/0180/doc_00018628 [00:12:50]file doc_00018629 [00:12:50]remove file /storage/0180/doc_00018629 [00:12:50]file doc_00018630 [00:12:50]remove file /storage/0180/doc_00018630 [00:12:50]file doc_00018631 [00:12:50]remove file /storage/0180/doc_00018631 [00:12:50]file doc_00018632 [00:12:50]remove file /storage/0180/doc_00018632 [00:12:50]file doc_00018633 [00:12:50]remove file /storage/0180/doc_00018633 [00:12:50]file doc_00018634 [00:12:50]remove file /storage/0180/doc_00018634 [00:12:50]file doc_00018635 [00:12:50]remove file /storage/0180/doc_00018635 [00:12:50]file doc_00018636 [00:12:50]remove file /storage/0180/doc_00018636 [00:12:50]file doc_00018637 [00:12:50]remove file /storage/0180/doc_00018637 [00:12:50]file doc_00018638 [00:12:50]remove file /storage/0180/doc_00018638 [00:12:50]file doc_00018639 [00:12:50]remove file /storage/0180/doc_00018639 [00:12:50]file doc_00018640 [00:12:50]remove file /storage/0180/doc_00018640 [00:12:50]file doc_00018641 [00:12:50]remove file /storage/0180/doc_00018641 [00:12:50]file doc_00018642 [00:12:50]remove file /storage/0180/doc_00018642 [00:12:50]file doc_00018643 [00:12:50]remove file /storage/0180/doc_00018643 [00:12:50]file doc_00018644 [00:12:50]remove file /storage/0180/doc_00018644 [00:12:50]file doc_00018645 [00:12:50]remove file /storage/0180/doc_00018645 [00:12:50]file doc_00018646 [00:12:50]remove file /storage/0180/doc_00018646 [00:12:50]file doc_00018647 [00:12:50]remove file /storage/0180/doc_00018647 [00:12:50]file doc_00018648 [00:12:50]remove file /storage/0180/doc_00018648 [00:12:50]file doc_00018649 [00:12:50]remove file /storage/0180/doc_00018649 [00:12:50]file doc_00018650 [00:12:50]remove file /storage/0180/doc_00018650 [00:12:50]file doc_00018651 [00:12:50]remove file /storage/0180/doc_00018651 [00:12:50]file doc_00018652 [00:12:50]remove file /storage/0180/doc_00018652 [00:12:50]file doc_00018653 [00:12:50]remove file /storage/0180/doc_00018653 [00:12:50]file doc_00018654 [00:12:50]remove file /storage/0180/doc_00018654 [00:12:50]file doc_00018655 [00:12:50]remove file /storage/0180/doc_00018655 [00:12:50]file doc_00018656 [00:12:50]remove file /storage/0180/doc_00018656 [00:12:50]file doc_00018657 [00:12:50]remove file /storage/0180/doc_00018657 [00:12:50]file doc_00018658 [00:12:50]remove file /storage/0180/doc_00018658 [00:12:50]file doc_00018659 [00:12:50]remove file /storage/0180/doc_00018659 [00:12:50]file doc_00018660 [00:12:50]remove file /storage/0180/doc_00018660 [00:12:50]file doc_00018661 [00:12:50]remove file /storage/0180/doc_00018661 [00:12:50]file doc_00018662 [00:12:50]remove file /storage/0180/doc_00018662 [00:12:50]file doc_00018663 [00:12:50]remove file /storage/0180/doc_00018663 [00:12:50]file doc_00018664 [00:12:50]remove file /storage/0180/doc_00018664 [00:12:50]file doc_00018665 [00:12:50]remove file /storage/0180/doc_00018665 [00:12:50]file doc_00018666 [00:12:50]remove file /storage/0180/doc_00018666 [00:12:50]file doc_00018667 [00:12:50]remove file /storage/0180/doc_00018667 [00:12:50]file doc_00018668 [00:12:50]remove file /storage/0180/doc_00018668 [00:12:50]file doc_00018669 [00:12:50]remove file /storage/0180/doc_00018669 [00:12:50]file doc_00018670 [00:12:50]remove file /storage/0180/doc_00018670 [00:12:50]file doc_00018671 [00:12:50]remove file /storage/0180/doc_00018671 [00:12:50]file doc_00018672 [00:12:50]remove file /storage/0180/doc_00018672 [00:12:50]file doc_00018673 [00:12:50]remove file /storage/0180/doc_00018673 [00:12:50]file doc_00018674 [00:12:50]remove file /storage/0180/doc_00018674 [00:12:50]file doc_00018675 [00:12:50]remove file /storage/0180/doc_00018675 [00:12:50]file doc_00018676 [00:12:50]remove file /storage/0180/doc_00018676 [00:12:50]file doc_00018677 [00:12:50]remove file /storage/0180/doc_00018677 [00:12:50]file doc_00018678 [00:12:50]remove file /storage/0180/doc_00018678 [00:12:50]file doc_00018679 [00:12:50]remove file /storage/0180/doc_00018679 [00:12:50]file doc_00018680 [00:12:50]remove file /storage/0180/doc_00018680 [00:12:50]file doc_00018681 [00:12:50]remove file /storage/0180/doc_00018681 [00:12:50]file doc_00018682 [00:12:50]remove file /storage/0180/doc_00018682 [00:12:50]file doc_00018683 [00:12:50]remove file /storage/0180/doc_00018683 [00:12:50]file doc_00018684 [00:12:50]remove file /storage/0180/doc_00018684 [00:12:50]file doc_00018685 [00:12:50]remove file /storage/0180/doc_00018685 [00:12:50]file doc_00018686 [00:12:50]remove file /storage/0180/doc_00018686 [00:12:50]file doc_00018687 [00:12:50]remove file /storage/0180/doc_00018687 [00:12:50]file doc_00018688 [00:12:50]remove file /storage/0180/doc_00018688 [00:12:50]file doc_00018689 [00:12:50]remove file /storage/0180/doc_00018689 [00:12:50]file doc_00018690 [00:12:50]remove file /storage/0180/doc_00018690 [00:12:51]file doc_00018691 [00:12:51]remove file /storage/0180/doc_00018691 [00:12:51]file doc_00018692 [00:12:51]remove file /storage/0180/doc_00018692 [00:12:51]file doc_00018693 [00:12:51]remove file /storage/0180/doc_00018693 [00:12:51]file doc_00018694 [00:12:51]remove file /storage/0180/doc_00018694 [00:12:51]file doc_00018695 [00:12:51]remove file /storage/0180/doc_00018695 [00:12:51]file doc_00018696 [00:12:51]remove file /storage/0180/doc_00018696 [00:12:51]file doc_00018697 [00:12:51]remove file /storage/0180/doc_00018697 [00:12:51]file doc_00018698 [00:12:51]remove file /storage/0180/doc_00018698 [00:12:51]file doc_00018699 [00:12:51]remove file /storage/0180/doc_00018699 [00:12:51]file doc_00018700 [00:12:51]remove file /storage/0180/doc_00018700 [00:12:51]file doc_00018701 [00:12:51]remove file /storage/0180/doc_00018701 [00:12:51]file doc_00018702 [00:12:51]remove file /storage/0180/doc_00018702 [00:12:51]file doc_00018703 [00:12:51]OFD Sender: No OFD packet to send [00:12:51]remove file /storage/0180/doc_00018703 [00:12:51]file doc_00018704 [00:12:51]remove file /storage/0180/doc_00018704 [00:12:51]file doc_00018705 [00:12:51]remove file /storage/0180/doc_00018705 [00:12:51]file doc_00018706 [00:12:51]remove file /storage/0180/doc_00018706 [00:12:51]file doc_00018707 [00:12:51]remove file /storage/0180/doc_00018707 [00:12:51]file doc_00018708 [00:12:51]remove file /storage/0180/doc_00018708 [00:12:51]file doc_00018709 [00:12:51]remove file /storage/0180/doc_00018709 [00:12:51]file doc_00018710 [00:12:51]remove file /storage/0180/doc_00018710 [00:12:51]file doc_00018711 [00:12:51]remove file /storage/0180/doc_00018711 [00:12:51]file doc_00018712 [00:12:51]remove file /storage/0180/doc_00018712 [00:12:51]file doc_00018713 [00:12:51]remove file /storage/0180/doc_00018713 [00:12:51]file doc_00018714 [00:12:51]remove file /storage/0180/doc_00018714 [00:12:51]file doc_00018715 [00:12:51]remove file /storage/0180/doc_00018715 [00:12:51]file doc_00018716 [00:12:51]remove file /storage/0180/doc_00018716 [00:12:51]file doc_00018717 [00:12:51]remove file /storage/0180/doc_00018717 [00:12:51]file doc_00018718 [00:12:51]remove file /storage/0180/doc_00018718 [00:12:51]file doc_00018719 [00:12:51]remove file /storage/0180/doc_00018719 [00:12:51]file doc_00018720 [00:12:51]remove file /storage/0180/doc_00018720 [00:12:51]file doc_00018721 [00:12:51]remove file /storage/0180/doc_00018721 [00:12:51]file doc_00018722 [00:12:51]remove file /storage/0180/doc_00018722 [00:12:51]file doc_00018723 [00:12:51]remove file /storage/0180/doc_00018723 [00:12:51]remove dir /storage/0180 [00:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=255 [00:12:51]tlvbuf is 0024D900 [00:12:51]SAM_PROTO_ClearQueue [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 09 00 00 [00:12:51]Write to MH i2c: E2 08 00 B9 0F 80 09 00 00 00 00 00 00 3A [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]SAM_PROTO_ClearQueue done [00:12:51]KKMCreateOFDPacket [00:12:51]OFDProtocolAddRootSTLVToBuf [00:12:51]FM_MakeSignedData [00:12:51]FM_MakeSignedData [00:12:51]SAM_PROTO_SignData [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 01 02 [00:12:51]Write to MH i2c: E2 08 00 BA 0F 80 0D 01 02 00 00 00 00 42 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=255 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 02 02 FA 02 00 FF 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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 84 B2 F0 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 [00:12:51]Write to MH i2c: E2 02 01 BB 0F 80 0D 02 02 FA 00 02 00 FF 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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 84 B2 F0 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 00 00 BE [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=14 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 02 02 09 04 06 00 B6 59 EF BD A7 EA [00:12:51]Write to MH i2c: E2 11 00 BC 0F 80 0D 02 02 09 00 04 06 00 B6 59 EF BD A7 EA 00 00 AD [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 03 02 [00:12:51]Write to MH i2c: E2 08 00 BD 0F 80 0D 03 02 00 00 00 00 47 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 0B 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 0B 00 BD 0F 00 CF A6 87 AD 7D 4C 80 77 90 00 B1 [00:12:51]RAPDU: CF A6 87 AD 7D 4C 80 77 90 00 [00:12:51]wFMCommunicate OK [00:12:51]SAM_PROTO_SignData done [00:12:51]FM_MakeSignedData done [00:12:51]CreateOFDProtocolMessage [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 11 00 00 [00:12:51]Write to MH i2c: E2 08 00 BE 0F 80 11 00 00 00 00 00 00 47 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 17 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 17 00 BE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A0 [00:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:12:51]wFMCommunicate OK [00:12:51]CreateOFDProtocolMessage done [00:12:51]OFDSenderStorePacket 18724 [00:12:51]StoreOFDPacket docnum=18724 [00:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 13 01 00 00 F5 2E 0B 01 17 10 5A 02 01 00 02 00 FF 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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 84 B2 F0 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 B6 59 EF BD A7 EA CF A6 87 AD 7D 4C 80 77 [00:12:51]CheckFolder [00:12:51]dirname=/storage/ofd_packets [00:12:51]CheckFolder done [00:12:51]ProducePacketName [00:12:51]name=ofd_packets/00018724 [00:12:51]NVStorageSaveData ofd_packets/00018724 [00:12:51]File name is /storage/ofd_packets/00018724 [00:12:51]Write 305 bytes [00:12:51]NVStorageSaveData done [00:12:51]OFDSenderStorePacket done [00:12:51]KKMCreateOFDPacket done [00:12:51]NVStorageSaveData kkm_last_timestamp [00:12:51]File name is /storage/kkm_last_timestamp [00:12:51]Write 4 bytes [00:12:51]NVStorageSaveData done [00:12:51]ExternCall_PrintAddStr [00:12:51]wPrintStart [00:12:51]Write to MH i2c: 01 00 00 BF 0F CE [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 07 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 FF 0F E3 [00:12:51]RasterBufferAndPrint [00:12:51]line Отчет об открытии смены [00:12:51]line ФФД: 1.0 [00:12:51]line ИНН: 02508201610067 [00:12:51]line Кассир: Мамедов Э. [00:12:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:12:51]line Место: АЗС № 176 "Партнер Нефть" [00:12:51]line 23.09.2024 00:12 [00:12:51]line Смена: 181 [00:12:51]line РНМ: 0000000000152968 [00:12:51]line ЗНМ: 0300000010 [00:12:51]line ФД: 18724 [00:12:51]line ФМ: 0000000000959456 [00:12:51]line ФПД: 200497390528490 [00:12:51]written 0, free lines is 4095 [00:12:51]OFD Sender: Processing packet 18724 [packets to send 7, broken 6] [00:12:51]ProducePacketName [00:12:51]name=ofd_packets/00018724 [00:12:51]OFD Sender: To server: pG, [00:12:51]CommunicateWithHost lk.salyk.kg:30040 [00:12:51]ConnectInit lk.salyk.kg [00:12:52]Connected sock=10 [00:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 13 01 00 00 F5 2E 0B 01 17 10 5A 02 01 00 02 00 FF 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 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 84 B2 F0 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 B6 59 EF BD A7 EA CF A6 87 AD 7D 4C 80 77 [00:12:52]Write to MH i2c: 01 00 00 D1 0F E0 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 47 0F 3D [00:12:52]RasterBufferAndPrint [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]written 0, free lines is 3932 [00:12:52]MH_Cut [00:12:52]Write to MH i2c: D1 01 00 D8 0F 01 B9 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 01 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 01 00 D8 0F 00 B8 [00:12:52]Write to MH i2c: 01 00 00 D9 0F E8 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 91 3A 47 00 54 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 39 35 39 34 35 36 10 04 04 00 24 49 00 00 F4 03 04 00 EA 5B F0 66 B6 04 01 00 00 30 DE E4 14 8C 19 4E E1 [00:12:52]CommunicateWithHost err = 0 [00:12:52]CheckOFDResponse [00:12:52]1017 (14) - 77093643461234 [00:12:52]1041 (16) - 0000000000959456 [00:12:52]1040 (4) - 18724 [00:12:52]1012 (4) - 22.09.2024 18:03 [00:12:52]1206 (1) - 0 [00:12:52]OFD Sender: Remove packet 18724 [00:12:52]ProducePacketName [00:12:52]name=ofd_packets/00018724 [00:12:52]NVStorageDeleteData [00:12:52]*** Cut start [00:12:52]*** Partial cut [00:12:52]*** CUTSNS_PIN = 1 [00:12:52]*** CUTSNS_PIN = 0 [00:12:52]*** Brake cut motor [00:12:52]OFD Sender: No OFD packet to send [00:12:53]Read from MH i2c: 01 [00:12:53]MH_I2C_Read... [00:12:53]*** Stop cut motor [00:12:53]*** Cut end [00:12:53]Read from MH i2c: 01 07 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 FF 0F FD [00:12:53]process_action open_shift done [00:12:53]requested_data is exist [00:12:53]produce_requested_data [00:12:53]requested_item fd.num is exist - process it [00:12:53]SAM_PROTO_GetFieldsCounters [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 00 00 [00:12:53]Write to MH i2c: E2 08 00 DA 0F 80 13 00 00 00 00 00 00 65 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 DA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 0E 04 04 00 B5 00 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 B4 [00:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 24 49 00 00 0E 04 04 00 B5 00 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:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetFieldsCounters done [00:12:53]requested_item shift.num is exist - process it [00:12:53]requested_item shift.opened is exist - process it [00:12:53]req_shift_opened [00:12:53]FM_GetShiftState [00:12:53]SAM_PROTO_GetShiftState [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 01 00 [00:12:53]Write to MH i2c: E2 08 00 DB 0F 80 13 01 00 00 00 00 00 67 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 DB 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FF [00:12:53]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetShiftState done [00:12:53]FM_GetShiftState done [00:12:53]req_shift_opened done [00:12:53]requested_item shift.open_date is exist - process it [00:12:53]req_shift_open_date [00:12:53]req_shift_open_date done [00:12:53]produce_requested_data done [00:12:53]produce_requested_data return {"fd.num":18724,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:12:53]process_action_free open_shift [00:12:53]json_value_free [00:12:53]json_value_free done [00:12:53]process_json_proto returns [00:12:53]Send response to host [00:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18724,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:12:53]free response buf [00:12:53]execute_script done [00:12:53]execute_script returns [00:12:53]free content buf [00:12:53]Sock 8.Close socket [00:12:53]Sock 8.Thread stoped [00:12:53]accept exits with 9 [00:12:53]New connection [00:12:53]New thread 3067272548 created [00:12:53]Thread 3067129188 joined [00:12:53]Waiting for new connection... [00:12:53] Sock 9.Parse request [00:12:53]Sock 9.Check first char [00:12:53]Sock 9.First char is OK [00:12:53]request: POST /json_proto HTTP/1.0 [00:12:53]Method: POST [00:12:53]URL: /json_proto [00:12:53]Method is POST - this is cgi request [00:12:53]url: /json_proto [00:12:53]query_string will be loaded in cgi processing [00:12:53]execute_cgi json_proto POST (null) [00:12:53]execute_cgi path=json_proto method=POST [00:12:53]POST find Content-Length [00:12:53]Host: 172.17.62.196:8080 [00:12:53]Content-Length: 331 [00:12:53]Content-Type: application/json [00:12:53] [00:12:53]POST finish read [00:12:53]Found Content-Length = 331 [00:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:53]execute_script... [00:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:53]POST & json_proto [00:12:53]process_json_proto [00:12:53]json parsed OK: [00:12:53]protocol is kg_v1.0 [00:12:53]action value=get_value [00:12:53]process_action get_value [00:12:53]cmd_get_value [00:12:53]process_action get_value done [00:12:53]requested_data is exist [00:12:53]produce_requested_data [00:12:53]requested_item fm.sale.total is exist - process it [00:12:53]SAM_PROTO_GetFMData [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 03 00 [00:12:53]Write to MH i2c: E2 08 00 DC 0F 80 13 03 00 00 00 00 00 6A [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 FD 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 FD 00 DC 0F 00 BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 FF [00:12:53]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 BA 47 00 00 69 04 A0 00 6F 04 04 00 AB 47 00 00 B1 04 04 00 02 0B 69 31 70 04 04 00 78 FE 0A 1F 72 04 04 00 8A 0C 5E 12 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 5C 63 3F 05 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 3C EC 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 72 04 00 00 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 17 00 00 [00:12:53]Write to MH i2c: E2 08 00 DD 0F 80 17 00 00 00 00 00 00 6C [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 DD 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:12:54]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 DE 0F 80 17 00 00 00 00 00 00 6D [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 DE 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9F [00:12:54]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 DF 0F 80 17 00 00 00 00 00 00 6E [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 DF 0F 00 04 F7 03 00 00 EF 03 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 90 00 E9 [00:12:54]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:12:55]wFMCommunicate OK [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 17 00 00 [00:12:55]Write to MH i2c: E2 08 00 E0 0F 80 17 00 00 00 00 00 00 6F [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 DB 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 DB 00 E0 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [00:12:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:55]wFMCommunicate OK [00:12:55]SAM_PROTO_GetFMData done [00:12:55]requested_item fm.sale_refund.total is exist - process it [00:12:55]requested_item fm.buy.total is exist - process it [00:12:55]requested_item shift.sale.total is exist - process it [00:12:55]SAM_PROTO_GetShiftData [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 13 02 00 [00:12:55]Write to MH i2c: E2 08 00 E1 0F 80 13 02 00 00 00 00 00 6E [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 E1 0F 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 E1 [00:12:55]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 E2 0F 80 17 00 00 00 00 00 00 71 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 E2 0F 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 79 [00:12:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 E3 0F 80 17 00 00 00 00 00 00 72 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 E3 0F 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 44 [00:12:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 E4 0F 80 17 00 00 00 00 00 00 73 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 E4 0F 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 E5 [00:12:57]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:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 E5 0F 80 17 00 00 00 00 00 00 74 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 BD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 BD 00 E5 0F 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 5A [00:12:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:57]wFMCommunicate OK [00:12:57]SAM_PROTO_GetShiftData done [00:12:57]requested_item shift.sale.total_cash is exist - process it [00:12:57]requested_item shift.sale_refund.total is exist - process it [00:12:57]requested_item shift.sale_refund.total_cash is exist - process it [00:12:57]requested_item shift.buy.total is exist - process it [00:12:57]requested_item shift.buy.total_cash is exist - process it [00:12:57]produce_requested_data done [00:12:57]produce_requested_data return {"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.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:57]process_action_free get_value [00:12:57]json_value_free [00:12:57]json_value_free done [00:12:57]process_json_proto returns [00:12:57]Send response to host [00:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8289676.82,"fm.sale_refund.total":56064.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:57]free response buf [00:12:57]execute_script done [00:12:57]execute_script returns [00:12:57]free content buf [00:12:57]Sock 9.Close socket [00:12:57]Sock 9.Thread stoped [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [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:29]accept exits with 8 [00:30:29]New connection [00:30:29]New thread 3067129188 created [00:30:29]Thread 3067272548 joined [00:30:29]Waiting for new connection... [00:30:29] Sock 8.Parse request [00:30:29]Sock 8.Check first char [00:30:29]Sock 8.First char is OK [00:30:29]request: POST /json_proto HTTP/1.0 [00:30:29]Method: POST [00:30:29]URL: /json_proto [00:30:29]Method is POST - this is cgi request [00:30:29]url: /json_proto [00:30:29]query_string will be loaded in cgi processing [00:30:29]execute_cgi json_proto POST (null) [00:30:29]execute_cgi path=json_proto method=POST [00:30:29]POST find Content-Length [00:30:29]Host: 172.17.62.196:8080 [00:30:29]Content-Length: 655 [00:30:29]Content-Type: application/json [00:30:29] [00:30:29]POST finish read [00:30:29]Found Content-Length = 655 [00:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16648", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [00:30:29]execute_script... [00:30: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)16648", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "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" ] } } [00:30:29]POST & json_proto [00:30:29]process_json_proto [00:30:29]json parsed OK: [00:30:29]protocol is kg_v1.0 [00:30:29]action value=close_receipt [00:30:29]process_action close_receipt [00:30:29]cmd_close_receipt [00:30:29]MH_GetDate [00:30:29]Write to MH i2c: F0 00 00 E6 0F E4 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 09 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 09 00 E6 0F 00 A8 B6 F0 66 CE CC 0E 66 AF [00:30:29]GetLastDocTimeStamp 1727050372 [00:30:29]current date 1727051432 [00:30:29]FM_GetShiftState [00:30:29]SAM_PROTO_GetShiftState [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 13 01 00 [00:30:29]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0E 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 0B [00:30:29]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:30:29]wFMCommunicate OK [00:30:29]SAM_PROTO_GetShiftState done [00:30:29]FM_GetShiftState done [00:30:29]opened in 1727050372 [00:30:29]opened+sec_in_day 1727136772 [00:30:29]quantity*price = 12000 [00:30:29]sum+1 = 12001 [00:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 1 23.09.2024 00:30 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18725 ФПД: 186223115706030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003032&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18725&fm=186223115706030&tin=02508201610067®Number=0000000000152968&sum=12000 0 [00:30:30]StoreToDocumentArchive [00:30:30]shift 181 fd 18725 [00:30:30]save to /storage/0181/doc_00018725 [00:30:30]save last doc name /storage/0181/doc_00018725 to /storage/kkm_last_doc_name [00:30:30]save OK [00:30:30]Clear old archive folders... [00:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=284 [00:30:30]tlvbuf is 001F6F90 [00:30:30]SAM_PROTO_ClearQueue [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 09 00 00 [00:30:30]Write to MH i2c: E2 08 00 F4 0F 80 09 00 00 00 00 00 00 75 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]SAM_PROTO_ClearQueue done [00:30:30]KKMCreateOFDPacket [00:30:30]OFDProtocolAddRootSTLVToBuf [00:30:30]FM_MakeSignedData [00:30:30]FM_MakeSignedData [00:30:30]SAM_PROTO_SignData [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 0D 01 02 [00:30:30]Write to MH i2c: E2 08 00 F5 0F 80 0D 01 02 00 00 00 00 7D [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [00:30:30]RAPDU: 90 00 [00:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=255 [00:30:30]MH_SAM_APDU [00:30:30]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 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 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 01 00 00 00 F4 03 04 00 A8 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [00:30:30]Write to MH i2c: E2 02 01 F6 0F 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 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 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 01 00 00 00 F4 03 04 00 A8 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 C4 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 03 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [00:30:31]RAPDU: 90 00 [00:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=43 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 25 49 00 00 35 04 06 00 A9 5E 72 A9 1E AE [00:30:31]Write to MH i2c: E2 2E 00 F7 0F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 25 49 00 00 35 04 06 00 A9 5E 72 A9 1E AE 00 00 CA [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 03 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [00:30:31]RAPDU: 90 00 [00:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 0D 03 02 [00:30:31]Write to MH i2c: E2 08 00 F8 0F 80 0D 03 02 00 00 00 00 82 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 0B 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 0B 00 F8 0F 00 18 14 80 DB 85 48 0B 06 90 00 E8 [00:30:31]RAPDU: 18 14 80 DB 85 48 0B 06 90 00 [00:30:31]wFMCommunicate OK [00:30:31]SAM_PROTO_SignData done [00:30:31]FM_MakeSignedData done [00:30:31]CreateOFDProtocolMessage [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 11 00 00 [00:30:31]Write to MH i2c: E2 08 00 F9 0F 80 11 00 00 00 00 00 00 82 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 17 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 17 00 F9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DB [00:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:30:31]wFMCommunicate OK [00:30:31]CreateOFDProtocolMessage done [00:30:31]OFDSenderStorePacket 18725 [00:30:31]StoreOFDPacket docnum=18725 [00:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 32 18 28 01 B8 C6 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 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 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 01 00 00 00 F4 03 04 00 A8 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 25 49 00 00 35 04 06 00 A9 5E 72 A9 1E AE 18 14 80 DB 85 48 0B 06 [00:30:31]CheckFolder [00:30:31]dirname=/storage/ofd_packets [00:30:31]CheckFolder done [00:30:31]ProducePacketName [00:30:31]name=ofd_packets/00018725 [00:30:31]NVStorageSaveData ofd_packets/00018725 [00:30:31]File name is /storage/ofd_packets/00018725 [00:30:31]Write 334 bytes [00:30:31]NVStorageSaveData done [00:30:31]OFDSenderStorePacket done [00:30:31]KKMCreateOFDPacket done [00:30:31]NVStorageSaveData kkm_last_timestamp [00:30:31]File name is /storage/kkm_last_timestamp [00:30:31]Write 4 bytes [00:30:31]NVStorageSaveData done [00:30:31]ExternCall_PrintAddStr [00:30:31]wPrintStart [00:30:31]Write to MH i2c: 01 00 00 FA 0F 09 [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: 01 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: 01 07 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 FF 0F 1E [00:30:31]RasterBufferAndPrint [00:30:31]line Счет N : (3)16648 [00:30:31]line ИНН: 02508201610067 [00:30:31]line Контрольно-Кассовый Чек [00:30:31]line ПРОДАЖА [00:30:31]line Товар: 2000034250011 [00:30:31]line Горячий шоколад (GABB trade) [00:30:31]line 1.000 * 120.00 [00:30:31]line = 120.00 [00:30:31]line НДС 12% НСП 1% [00:30:31]line > о реализуемом товаре [00:30:31]line ИТОГО: 120.00 [00:30:31]line НСП 1% : 1.06 [00:30:31]line НДС 12% : 12.74 [00:30:31]line Наличными: 120.00 [00:30:31]line Безнал.: 0.00 [00:30:31]line Место: АЗС № 176 "Партнер Нефть" [00:30:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:30:31]line СНО: Общий режим [00:30:31]line Чек 1 23.09.2024 00:30 [00:30:31]line Смена: 181 ФФД: 1.0 [00:30:31]line ЗНМ: 0300000010 [00:30:31]line РНМ: 0000000000152968 [00:30:31]line Версия ККМ: v1.0 [00:30:31]line ФМ: 0000000000959456 [00:30:31]line ФД: 18725 [00:30:31]line ФПД: 186223115706030 [00:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003032&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18725&fm=186223115706030&tin=02508201610067®Number=0000000000152968&sum=12000 [00:30:31]line 0 [00:30:31]OFD Sender: Processing packet 18725 [packets to send 7, broken 6] [00:30:31]ProducePacketName [00:30:31]name=ofd_packets/00018725 [00:30:31]OFD Sender: To server: pG, [00:30:31]CommunicateWithHost lk.salyk.kg:30040 [00:30:31]ConnectInit lk.salyk.kg [00:30:31]written 0, free lines is 4095 [00:30:31]Connected sock=10 [00:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 32 18 28 01 B8 C6 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 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 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 01 00 00 00 F4 03 04 00 A8 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 25 49 00 00 35 04 06 00 A9 5E 72 A9 1E AE 18 14 80 DB 85 48 0B 06 [00:30:32]Write to MH i2c: 01 00 00 23 10 33 [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FD 0C 43 [00:30:32]RasterBufferAndPrint [00:30:32]line [00:30:32]line [00:30:32]line [00:30:32]line [00:30:32]line [00:30:32]written 0, free lines is 3334 [00:30:32]MH_Cut [00:30:32]Write to MH i2c: D1 01 00 2A 10 01 0C [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D1 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D1 01 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: D1 01 00 2A 10 00 0B [00:30:32]Write to MH i2c: 01 00 00 2B 10 3B [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9A 89 47 00 56 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 25 49 00 00 F4 03 04 00 0E 60 F0 66 B6 04 01 00 00 B9 A7 23 56 B2 79 5F 48 [00:30:32]CommunicateWithHost err = 0 [00:30:32]CheckOFDResponse [00:30:32]1017 (14) - 77093643461234 [00:30:32]1041 (16) - 0000000000959456 [00:30:32]1040 (4) - 18725 [00:30:32]1012 (4) - 22.09.2024 18:21 [00:30:32]1206 (1) - 0 [00:30:32]OFD Sender: Remove packet 18725 [00:30:32]ProducePacketName [00:30:32]name=ofd_packets/00018725 [00:30:32]NVStorageDeleteData [00:30:32]OFD Sender: No OFD packet to send [00:30:32]*** Cut start [00:30:32]*** Partial cut [00:30:32]*** CUTSNS_PIN = 1 [00:30:32]*** CUTSNS_PIN = 0 [00:30:32]*** Brake cut motor [00:30:33]Read from MH i2c: 01 [00:30:33]MH_I2C_Read... [00:30:33]*** Stop cut motor [00:30:33]*** Cut end [00:30:33]Read from MH i2c: 01 07 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [00:30:33]process_action close_receipt done [00:30:33]requested_data is exist [00:30:33]produce_requested_data [00:30:33]requested_item fm.sn is exist - process it [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 11 00 00 [00:30:33]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 17 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0F [00:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:30:33]wFMCommunicate OK [00:30:33]requested_item fd.num is exist - process it [00:30:33]SAM_PROTO_GetFieldsCounters [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 00 00 [00:30:33]Write to MH i2c: E2 08 00 2D 10 80 13 00 00 00 00 00 00 B9 [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 62 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 62 00 2D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 25 49 00 00 0E 04 04 00 B5 00 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 0C [00:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 25 49 00 00 0E 04 04 00 B5 00 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:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetFieldsCounters done [00:30:33]requested_item shift.num is exist - process it [00:30:33]requested_item shift.opened is exist - process it [00:30:33]req_shift_opened [00:30:33]FM_GetShiftState [00:30:33]SAM_PROTO_GetShiftState [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 13 01 00 [00:30:33]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 53 [00:30:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]SAM_PROTO_GetShiftState done [00:30:33]FM_GetShiftState done [00:30:33]req_shift_opened done [00:30:33]requested_item shift.open_date is exist - process it [00:30:33]req_shift_open_date [00:30:33]req_shift_open_date done [00:30:33]produce_requested_data done [00:30:33]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18725,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:30:33]process_action_free close_receipt [00:30:33]json_value_free [00:30:33]json_value_free done [00:30:33]process_json_proto returns [00:30:33]Send response to host [00:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18725,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:30:33]free response buf [00:30:33]execute_script done [00:30:33]execute_script returns [00:30:33]free content buf [00:30:33]Sock 8.Close socket [00:30:33]Sock 8.Thread stoped [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:43]accept exits with 9 [00:30:43]New connection [00:30:43]New thread 3067272548 created [00:30:43]Thread 3067129188 joined [00:30:43]Waiting for new connection... [00:30:43] Sock 9.Parse request [00:30:43]Sock 9.Check first char [00:30:43]Sock 9.First char is OK [00:30:43]request: POST /json_proto HTTP/1.0 [00:30:43]Method: POST [00:30:43]URL: /json_proto [00:30:43]Method is POST - this is cgi request [00:30:43]url: /json_proto [00:30:43]query_string will be loaded in cgi processing [00:30:43]execute_cgi json_proto POST (null) [00:30:43]execute_cgi path=json_proto method=POST [00:30:43]POST find Content-Length [00:30:43]Host: 172.17.62.196:8080 [00:30:43]Content-Length: 613 [00:30:43]Content-Type: application/json [00:30:43] [00:30:43]POST finish read [00:30:43]Found Content-Length = 613 [00:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16649", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:43]execute_script... [00:30:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16649", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:43]POST & json_proto [00:30:43]process_json_proto [00:30:43]json parsed OK: [00:30:43]protocol is kg_v1.0 [00:30:43]action value=close_receipt [00:30:43]process_action close_receipt [00:30:43]cmd_close_receipt [00:30:43]MH_GetDate [00:30:43]Write to MH i2c: F0 00 00 2F 10 2E [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: F0 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: F0 09 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: F0 09 00 2F 10 00 B6 B6 F0 66 CE CC 0E 66 07 [00:30:43]GetLastDocTimeStamp 1727051432 [00:30:43]current date 1727051446 [00:30:43]FM_GetShiftState [00:30:43]SAM_PROTO_GetShiftState [00:30:43]wFMCommunicate request_size=4 [00:30:43]MH_SAM_APDU [00:30:43]CAPDU: 80 13 01 00 [00:30:43]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:43]Read from MH i2c: E2 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 0E 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 55 [00:30:43]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:30:43]wFMCommunicate OK [00:30:43]SAM_PROTO_GetShiftState done [00:30:43]FM_GetShiftState done [00:30:43]opened in 1727050372 [00:30:43]opened+sec_in_day 1727136772 [00:30:43]quantity*price = 11000 [00:30:43]sum+1 = 11001 [00:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 2 23.09.2024 00:30 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18726 ФПД: 108687560082590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003046&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18726&fm=108687560082590&tin=02508201610067®Number=0000000000152968&sum=11000 0 [00:30:44]StoreToDocumentArchive [00:30:44]shift 181 fd 18726 [00:30:44]save to /storage/0181/doc_00018726 [00:30:44]save last doc name /storage/0181/doc_00018726 to /storage/kkm_last_doc_name [00:30:44]save OK [00:30:44]Clear old archive folders... [00:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:30:44]tlvbuf is 001ED9F0 [00:30:44]SAM_PROTO_ClearQueue [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 09 00 00 [00:30:44]Write to MH i2c: E2 08 00 3D 10 80 09 00 00 00 00 00 00 BF [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]SAM_PROTO_ClearQueue done [00:30:44]KKMCreateOFDPacket [00:30:44]OFDProtocolAddRootSTLVToBuf [00:30:44]FM_MakeSignedData [00:30:44]FM_MakeSignedData [00:30:44]SAM_PROTO_SignData [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 01 02 [00:30:44]Write to MH i2c: E2 08 00 3E 10 80 0D 01 02 00 00 00 00 C7 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=255 [00:30:44]MH_SAM_APDU [00:30:44]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B6 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [00:30:44]Write to MH i2c: E2 02 01 3F 10 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B6 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 C0 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=25 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 26 49 00 00 35 04 06 00 62 D9 CB 69 04 9E [00:30:44]Write to MH i2c: E2 1C 00 40 10 80 0D 02 02 14 00 35 36 10 04 04 00 26 49 00 00 35 04 06 00 62 D9 CB 69 04 9E 00 00 34 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [00:30:44]RAPDU: 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 0D 03 02 [00:30:44]Write to MH i2c: E2 08 00 41 10 80 0D 03 02 00 00 00 00 CC [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0B 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 0B 00 41 10 00 86 AC 12 63 E8 C1 4F FE 90 00 6A [00:30:45]RAPDU: 86 AC 12 63 E8 C1 4F FE 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_SignData done [00:30:45]FM_MakeSignedData done [00:30:45]CreateOFDProtocolMessage [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 11 00 00 [00:30:45]Write to MH i2c: E2 08 00 42 10 80 11 00 00 00 00 00 00 CC [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 17 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 17 00 42 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 25 [00:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:30:45]wFMCommunicate OK [00:30:45]CreateOFDProtocolMessage done [00:30:45]OFDSenderStorePacket 18726 [00:30:45]StoreOFDPacket docnum=18726 [00:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 54 B4 16 01 82 06 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B6 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 26 49 00 00 35 04 06 00 62 D9 CB 69 04 9E 86 AC 12 63 E8 C1 4F FE [00:30:45]CheckFolder [00:30:45]dirname=/storage/ofd_packets [00:30:45]CheckFolder done [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00018726 [00:30:45]NVStorageSaveData ofd_packets/00018726 [00:30:45]File name is /storage/ofd_packets/00018726 [00:30:45]Write 316 bytes [00:30:45]NVStorageSaveData done [00:30:45]OFDSenderStorePacket done [00:30:45]KKMCreateOFDPacket done [00:30:45]NVStorageSaveData kkm_last_timestamp [00:30:45]File name is /storage/kkm_last_timestamp [00:30:45]Write 4 bytes [00:30:45]NVStorageSaveData done [00:30:45]ExternCall_PrintAddStr [00:30:45]wPrintStart [00:30:45]Write to MH i2c: 01 00 00 43 10 53 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 FF 0F 68 [00:30:45]RasterBufferAndPrint [00:30:45]line Счет N : (3)16649 [00:30:45]line ИНН: 02508201610067 [00:30:45]line Контрольно-Кассовый Чек [00:30:45]line ПРОДАЖА [00:30:45]line Товар: 4870001570071 [00:30:45]line Напиток Pepsi 1л [00:30:45]line 1.000 * 110.00 [00:30:45]line = 110.00 [00:30:45]line НДС 12% НСП 1% [00:30:45]line > о реализуемом товаре [00:30:45]line ИТОГО: 110.00 [00:30:45]line НСП 1% : 0.97 [00:30:45]line НДС 12% : 11.68 [00:30:45]line Наличными: 110.00 [00:30:45]line Безнал.: 0.00 [00:30:45]line Место: АЗС № 176 "Партнер Нефть" [00:30:45]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:30:45]line СНО: Общий режим [00:30:45]line Чек 2 23.09.2024 00:30 [00:30:45]line Смена: 181 ФФД: 1.0 [00:30:45]line ЗНМ: 0300000010 [00:30:45]line РНМ: 0000000000152968 [00:30:45]line Версия ККМ: v1.0 [00:30:45]line ФМ: 0000000000959456 [00:30:45]line ФД: 18726 [00:30:45]line ФПД: 108687560082590 [00:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T003046&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18726&fm=108687560082590&tin=02508201610067®Number=0000000000152968&sum=11000 [00:30:45]line 0 [00:30:45]written 0, free lines is 4095 [00:30:45]OFD Sender: Processing packet 18726 [packets to send 7, broken 6] [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00018726 [00:30:45]OFD Sender: To server: pG, [00:30:45]CommunicateWithHost lk.salyk.kg:30040 [00:30:45]ConnectInit lk.salyk.kg [00:30:45]Connected sock=10 [00:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 54 B4 16 01 82 06 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B6 B6 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 26 49 00 00 35 04 06 00 62 D9 CB 69 04 9E 86 AC 12 63 E8 C1 4F FE [00:30:45]Write to MH i2c: 01 00 00 6B 10 7B [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 11 0D A0 [00:30:45]RasterBufferAndPrint [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]line [00:30:45]written 0, free lines is 3351 [00:30:45]MH_Cut [00:30:45]Write to MH i2c: D1 01 00 72 10 01 54 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: D1 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: D1 01 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: D1 01 00 72 10 00 53 [00:30:45]Write to MH i2c: 01 00 00 73 10 83 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 0F 02 47 00 A2 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 39 35 39 34 35 36 10 04 04 00 26 49 00 00 F4 03 04 00 1C 60 F0 66 B6 04 01 00 00 FE BA C3 B6 F4 3C 99 CA [00:30:45]CommunicateWithHost err = 0 [00:30:45]CheckOFDResponse [00:30:45]1017 (14) - 77093643461234 [00:30:45]1041 (16) - 0000000000959456 [00:30:45]1040 (4) - 18726 [00:30:45]1012 (4) - 22.09.2024 18:21 [00:30:45]1206 (1) - 0 [00:30:45]OFD Sender: Remove packet 18726 [00:30:45]ProducePacketName [00:30:45]name=ofd_packets/00018726 [00:30:45]NVStorageDeleteData [00:30:46]OFD Sender: No OFD packet to send [00:30:46]*** Cut start [00:30:46]*** Partial cut [00:30:46]*** CUTSNS_PIN = 1 [00:30:46]*** CUTSNS_PIN = 0 [00:30:46]*** Brake cut motor [00:30:46]Read from MH i2c: 01 [00:30:46]MH_I2C_Read... [00:30:46]*** Stop cut motor [00:30:46]*** Cut end [00:30:46]Read from MH i2c: 01 07 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FF 0F 98 [00:30:46]process_action close_receipt done [00:30:46]requested_data is exist [00:30:46]produce_requested_data [00:30:46]requested_item fm.sn is exist - process it [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 11 00 00 [00:30:46]Write to MH i2c: E2 08 00 74 10 80 11 00 00 00 00 00 00 FE [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 17 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 17 00 74 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 57 [00:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:30:46]wFMCommunicate OK [00:30:46]requested_item fd.num is exist - process it [00:30:46]SAM_PROTO_GetFieldsCounters [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 13 00 00 [00:30:46]Write to MH i2c: E2 08 00 75 10 80 13 00 00 00 00 00 00 01 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 62 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 62 00 75 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 26 49 00 00 0E 04 04 00 B5 00 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 58 [00:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 26 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:46]wFMCommunicate OK [00:30:46]SAM_PROTO_GetFieldsCounters done [00:30:46]requested_item shift.num is exist - process it [00:30:46]requested_item shift.opened is exist - process it [00:30:46]req_shift_opened [00:30:46]FM_GetShiftState [00:30:46]SAM_PROTO_GetShiftState [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 13 01 00 [00:30:46]Write to MH i2c: E2 08 00 76 10 80 13 01 00 00 00 00 00 03 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 0E 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 0E 00 76 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9B [00:30:47]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:30:47]wFMCommunicate OK [00:30:47]SAM_PROTO_GetShiftState done [00:30:47]FM_GetShiftState done [00:30:47]req_shift_opened done [00:30:47]requested_item shift.open_date is exist - process it [00:30:47]req_shift_open_date [00:30:47]req_shift_open_date done [00:30:47]produce_requested_data done [00:30:47]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18726,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:30:47]process_action_free close_receipt [00:30:47]json_value_free [00:30:47]json_value_free done [00:30:47]process_json_proto returns [00:30:47]Send response to host [00:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18726,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:30:47]free response buf [00:30:47]execute_script done [00:30:47]execute_script returns [00:30:47]free content buf [00:30:47]Sock 9.Close socket [00:30:47]Sock 9.Thread stoped [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:04]accept exits with 8 [00:40:04]New connection [00:40:04]New thread 3067129188 created [00:40:04]Thread 3067272548 joined [00:40:04]Waiting for new connection... [00:40:04] Sock 8.Parse request [00:40:04]Sock 8.Check first char [00:40:04]Sock 8.First char is OK [00:40:04]request: POST /json_proto HTTP/1.0 [00:40:04]Method: POST [00:40:04]URL: /json_proto [00:40:04]Method is POST - this is cgi request [00:40:04]url: /json_proto [00:40:04]query_string will be loaded in cgi processing [00:40:04]execute_cgi json_proto POST (null) [00:40:04]execute_cgi path=json_proto method=POST [00:40:04]POST find Content-Length [00:40:04]Host: 172.17.62.196:8080 [00:40:04]Content-Length: 631 [00:40:04]Content-Type: application/json [00:40:04] [00:40:04]POST finish read [00:40:04]Found Content-Length = 631 [00:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16650", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:04]execute_script... [00:40:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16650", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:04]POST & json_proto [00:40:04]process_json_proto [00:40:04]json parsed OK: [00:40:04]protocol is kg_v1.0 [00:40:04]action value=close_receipt [00:40:04]process_action close_receipt [00:40:04]cmd_close_receipt [00:40:04]MH_GetDate [00:40:04]Write to MH i2c: F0 00 00 77 10 76 [00:40:04]Write i2c OK [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: F0 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: F0 09 00 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: F0 09 00 77 10 00 E7 B8 F0 66 CE CC 0E 66 82 [00:40:04]GetLastDocTimeStamp 1727051446 [00:40:04]current date 1727052007 [00:40:04]FM_GetShiftState [00:40:04]SAM_PROTO_GetShiftState [00:40:04]wFMCommunicate request_size=4 [00:40:04]MH_SAM_APDU [00:40:04]CAPDU: 80 13 01 00 [00:40:04]Write to MH i2c: E2 08 00 78 10 80 13 01 00 00 00 00 00 05 [00:40:04]Write i2c OK [00:40:04]MH_I2C_Read... [00:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:04]Read from MH i2c: E2 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: E2 0E 00 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: E2 0E 00 78 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9D [00:40:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:40:04]wFMCommunicate OK [00:40:04]SAM_PROTO_GetShiftState done [00:40:04]FM_GetShiftState done [00:40:04]opened in 1727050372 [00:40:04]opened+sec_in_day 1727136772 [00:40:04]quantity*price = 16000 [00:40:04]sum+1 = 16001 [00:40:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 3 23.09.2024 00:40 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18727 ФПД: 1322771870718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004007&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18727&fm=1322771870718&tin=02508201610067®Number=0000000000152968&sum=16000 0 [00:40:05]StoreToDocumentArchive [00:40:05]shift 181 fd 18727 [00:40:05]save to /storage/0181/doc_00018727 [00:40:05]save last doc name /storage/0181/doc_00018727 to /storage/kkm_last_doc_name [00:40:05]save OK [00:40:05]Clear old archive folders... [00:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:40:05]tlvbuf is 0020AC60 [00:40:05]SAM_PROTO_ClearQueue [00:40:05]wFMCommunicate request_size=4 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 09 00 00 [00:40:05]Write to MH i2c: E2 08 00 85 10 80 09 00 00 00 00 00 00 07 [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:05]Read from MH i2c: E2 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 03 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [00:40:05]RAPDU: 90 00 [00:40:05]wFMCommunicate OK [00:40:05]SAM_PROTO_ClearQueue done [00:40:05]KKMCreateOFDPacket [00:40:05]OFDProtocolAddRootSTLVToBuf [00:40:05]FM_MakeSignedData [00:40:05]FM_MakeSignedData [00:40:05]SAM_PROTO_SignData [00:40:05]wFMCommunicate request_size=4 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 0D 01 02 [00:40:05]Write to MH i2c: E2 08 00 86 10 80 0D 01 02 00 00 00 00 0F [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:05]Read from MH i2c: E2 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 03 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [00:40:05]RAPDU: 90 00 [00:40:05]wFMCommunicate OK [00:40:05]wFMCommunicate request_size=255 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 E7 B8 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [00:40:05]Write to MH i2c: E2 02 01 87 10 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 E7 B8 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 E8 [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:06]Read from MH i2c: E2 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 03 00 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [00:40:06]RAPDU: 90 00 [00:40:06]wFMCommunicate OK [00:40:06]wFMCommunicate request_size=35 [00:40:06]MH_SAM_APDU [00:40:06]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 27 49 00 00 35 04 06 00 01 33 FB 58 F3 FE [00:40:06]Write to MH i2c: E2 26 00 88 10 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 27 49 00 00 35 04 06 00 01 33 FB 58 F3 FE 00 00 F3 [00:40:06]Write i2c OK [00:40:06]MH_I2C_Read... [00:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:06]Read from MH i2c: E2 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 03 00 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [00:40:06]RAPDU: 90 00 [00:40:06]wFMCommunicate OK [00:40:06]wFMCommunicate request_size=4 [00:40:06]MH_SAM_APDU [00:40:06]CAPDU: 80 0D 03 02 [00:40:06]Write to MH i2c: E2 08 00 89 10 80 0D 03 02 00 00 00 00 14 [00:40:06]Write i2c OK [00:40:06]MH_I2C_Read... [00:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:06]Read from MH i2c: E2 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 0B 00 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 0B 00 89 10 00 97 72 3C AB 00 CE FE B9 90 00 8A [00:40:06]RAPDU: 97 72 3C AB 00 CE FE B9 90 00 [00:40:06]wFMCommunicate OK [00:40:06]SAM_PROTO_SignData done [00:40:06]FM_MakeSignedData done [00:40:06]CreateOFDProtocolMessage [00:40:06]wFMCommunicate request_size=4 [00:40:06]MH_SAM_APDU [00:40:06]CAPDU: 80 11 00 00 [00:40:06]Write to MH i2c: E2 08 00 8A 10 80 11 00 00 00 00 00 00 14 [00:40:06]Write i2c OK [00:40:06]MH_I2C_Read... [00:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:06]Read from MH i2c: E2 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 17 00 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: E2 17 00 8A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6D [00:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:40:06]wFMCommunicate OK [00:40:06]CreateOFDProtocolMessage done [00:40:06]OFDSenderStorePacket 18727 [00:40:06]StoreOFDPacket docnum=18727 [00:40:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 94 55 20 01 EB 99 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 E7 B8 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 27 49 00 00 35 04 06 00 01 33 FB 58 F3 FE 97 72 3C AB 00 CE FE B9 [00:40:06]CheckFolder [00:40:06]dirname=/storage/ofd_packets [00:40:06]CheckFolder done [00:40:06]ProducePacketName [00:40:06]name=ofd_packets/00018727 [00:40:06]NVStorageSaveData ofd_packets/00018727 [00:40:06]File name is /storage/ofd_packets/00018727 [00:40:06]Write 326 bytes [00:40:06]NVStorageSaveData done [00:40:06]OFDSenderStorePacket done [00:40:06]KKMCreateOFDPacket done [00:40:06]NVStorageSaveData kkm_last_timestamp [00:40:06]File name is /storage/kkm_last_timestamp [00:40:06]Write 4 bytes [00:40:06]NVStorageSaveData done [00:40:06]ExternCall_PrintAddStr [00:40:06]wPrintStart [00:40:06]Write to MH i2c: 01 00 00 8B 10 9B [00:40:06]Write i2c OK [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: 01 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: 01 07 00 [00:40:06]MH_I2C_Read... [00:40:06]Read from MH i2c: 01 07 00 8B 10 00 00 00 00 00 FF 0F B0 [00:40:06]RasterBufferAndPrint [00:40:06]line Счет N : (3)16650 [00:40:06]line ИНН: 02508201610067 [00:40:06]line Контрольно-Кассовый Чек [00:40:06]line ПРОДАЖА [00:40:06]line Товар: 4780022460452 [00:40:06]line Антифриз Yumiko gold 1кг [00:40:06]line 1.000 * 160.00 [00:40:06]line = 160.00 [00:40:06]line НДС 12% НСП 1% [00:40:06]line > о реализуемом товаре [00:40:06]line ИТОГО: 160.00 [00:40:06]line НСП 1% : 1.42 [00:40:06]line НДС 12% : 16.99 [00:40:06]line Наличными: 160.00 [00:40:06]line Безнал.: 0.00 [00:40:06]line Место: АЗС № 176 "Партнер Нефть" [00:40:06]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:40:06]line СНО: Общий режим [00:40:06]line Чек 3 23.09.2024 00:40 [00:40:06]line Смена: 181 ФФД: 1.0 [00:40:06]line ЗНМ: 0300000010 [00:40:06]line РНМ: 0000000000152968 [00:40:06]line Версия ККМ: v1.0 [00:40:06]line ФМ: 0000000000959456 [00:40:06]line ФД: 18727 [00:40:06]line ФПД: 1322771870718 [00:40:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004007&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18727&fm=1322771870718&tin=02508201610067®Number=0000000000152968&sum=16000 [00:40:06]line 0 [00:40:06]OFD Sender: Processing packet 18727 [packets to send 7, broken 6] [00:40:06]ProducePacketName [00:40:06]name=ofd_packets/00018727 [00:40:06]OFD Sender: To server: pG, [00:40:06]CommunicateWithHost lk.salyk.kg:30040 [00:40:06]ConnectInit lk.salyk.kg [00:40:06]written 0, free lines is 4095 [00:40:06]Connected sock=10 [00:40:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 94 55 20 01 EB 99 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 E7 B8 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 27 49 00 00 35 04 06 00 01 33 FB 58 F3 FE 97 72 3C AB 00 CE FE B9 [00:40:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D1 73 47 00 B2 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 39 35 39 34 35 36 10 04 04 00 27 49 00 00 F4 03 04 00 4D 62 F0 66 B6 04 01 00 00 41 16 95 75 78 97 36 0F [00:40:07]CommunicateWithHost err = 0 [00:40:07]CheckOFDResponse [00:40:07]1017 (14) - 77093643461234 [00:40:07]1041 (16) - 0000000000959456 [00:40:07]1040 (4) - 18727 [00:40:07]1012 (4) - 22.09.2024 18:30 [00:40:07]1206 (1) - 0 [00:40:07]OFD Sender: Remove packet 18727 [00:40:07]ProducePacketName [00:40:07]name=ofd_packets/00018727 [00:40:07]NVStorageDeleteData [00:40:07]Write to MH i2c: 01 00 00 B3 10 C3 [00:40:07]Write i2c OK [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: 01 [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: 01 07 00 [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 2C 0D 03 [00:40:07]RasterBufferAndPrint [00:40:07]line [00:40:07]line [00:40:07]line [00:40:07]line [00:40:07]line [00:40:07]written 0, free lines is 3379 [00:40:07]MH_Cut [00:40:07]Write to MH i2c: D1 01 00 BA 10 01 9C [00:40:07]Write i2c OK [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: D1 [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: D1 01 00 [00:40:07]MH_I2C_Read... [00:40:07]Read from MH i2c: D1 01 00 BA 10 00 9B [00:40:07]Write to MH i2c: 01 00 00 BB 10 CB [00:40:07]Write i2c OK [00:40:07]MH_I2C_Read... [00:40:07]OFD Sender: No OFD packet to send [00:40:07]*** Cut start [00:40:07]*** Partial cut [00:40:07]*** CUTSNS_PIN = 1 [00:40:07]*** CUTSNS_PIN = 0 [00:40:07]*** Brake cut motor [00:40:08]Read from MH i2c: 01 [00:40:08]MH_I2C_Read... [00:40:08]*** Stop cut motor [00:40:08]*** Cut end [00:40:08]Read from MH i2c: 01 07 00 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 FF 0F E0 [00:40:08]process_action close_receipt done [00:40:08]requested_data is exist [00:40:08]produce_requested_data [00:40:08]requested_item fm.sn is exist - process it [00:40:08]wFMCommunicate request_size=4 [00:40:08]MH_SAM_APDU [00:40:08]CAPDU: 80 11 00 00 [00:40:08]Write to MH i2c: E2 08 00 BC 10 80 11 00 00 00 00 00 00 46 [00:40:08]Write i2c OK [00:40:08]MH_I2C_Read... [00:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:08]Read from MH i2c: E2 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 17 00 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 17 00 BC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9F [00:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:40:08]wFMCommunicate OK [00:40:08]requested_item fd.num is exist - process it [00:40:08]SAM_PROTO_GetFieldsCounters [00:40:08]wFMCommunicate request_size=4 [00:40:08]MH_SAM_APDU [00:40:08]CAPDU: 80 13 00 00 [00:40:08]Write to MH i2c: E2 08 00 BD 10 80 13 00 00 00 00 00 00 49 [00:40:08]Write i2c OK [00:40:08]MH_I2C_Read... [00:40:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:08]Read from MH i2c: E2 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 62 00 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 62 00 BD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 27 49 00 00 0E 04 04 00 B5 00 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 A4 [00:40:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 27 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:08]wFMCommunicate OK [00:40:08]SAM_PROTO_GetFieldsCounters done [00:40:08]requested_item shift.num is exist - process it [00:40:08]requested_item shift.opened is exist - process it [00:40:08]req_shift_opened [00:40:08]FM_GetShiftState [00:40:08]SAM_PROTO_GetShiftState [00:40:08]wFMCommunicate request_size=4 [00:40:08]MH_SAM_APDU [00:40:08]CAPDU: 80 13 01 00 [00:40:08]Write to MH i2c: E2 08 00 BE 10 80 13 01 00 00 00 00 00 4B [00:40:08]Write i2c OK [00:40:08]MH_I2C_Read... [00:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:08]Read from MH i2c: E2 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 0E 00 [00:40:08]MH_I2C_Read... [00:40:08]Read from MH i2c: E2 0E 00 BE 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E3 [00:40:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:40:08]wFMCommunicate OK [00:40:08]SAM_PROTO_GetShiftState done [00:40:08]FM_GetShiftState done [00:40:08]req_shift_opened done [00:40:08]requested_item shift.open_date is exist - process it [00:40:08]req_shift_open_date [00:40:08]req_shift_open_date done [00:40:08]produce_requested_data done [00:40:08]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18727,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:40:08]process_action_free close_receipt [00:40:08]json_value_free [00:40:08]json_value_free done [00:40:08]process_json_proto returns [00:40:08]Send response to host [00:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18727,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:40:08]free response buf [00:40:08]execute_script done [00:40:08]execute_script returns [00:40:08]free content buf [00:40:08]Sock 8.Close socket [00:40:08]Sock 8.Thread stoped [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:01]accept exits with 9 [00:41:01]New connection [00:41:01]New thread 3067272548 created [00:41:01]Thread 3067129188 joined [00:41:01]Waiting for new connection... [00:41:01] Sock 9.Parse request [00:41:01]Sock 9.Check first char [00:41:01]Sock 9.First char is OK [00:41:01]request: POST /json_proto HTTP/1.0 [00:41:01]Method: POST [00:41:01]URL: /json_proto [00:41:01]Method is POST - this is cgi request [00:41:01]url: /json_proto [00:41:01]query_string will be loaded in cgi processing [00:41:01]execute_cgi json_proto POST (null) [00:41:01]execute_cgi path=json_proto method=POST [00:41:01]POST find Content-Length [00:41:01]Host: 172.17.62.196:8080 [00:41:01]Content-Length: 625 [00:41:01]Content-Type: application/json [00:41:01] [00:41:01]POST finish read [00:41:01]Found Content-Length = 625 [00:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16651", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]execute_script... [00:41: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)16651", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]POST & json_proto [00:41:01]process_json_proto [00:41:01]json parsed OK: [00:41:01]protocol is kg_v1.0 [00:41:01]action value=close_receipt [00:41:01]process_action close_receipt [00:41:01]cmd_close_receipt [00:41:01]MH_GetDate [00:41:01]Write to MH i2c: F0 00 00 BF 10 BE [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 BF 10 00 20 B9 F0 66 CE CC 0E 66 04 [00:41:01]GetLastDocTimeStamp 1727052007 [00:41:01]current date 1727052064 [00:41:01]FM_GetShiftState [00:41:01]SAM_PROTO_GetShiftState [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 13 01 00 [00:41:01]Write to MH i2c: E2 08 00 C0 10 80 13 01 00 00 00 00 00 4D [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 C0 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E5 [00:41:01]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:41:01]wFMCommunicate OK [00:41:01]SAM_PROTO_GetShiftState done [00:41:01]FM_GetShiftState done [00:41:01]opened in 1727050372 [00:41:01]opened+sec_in_day 1727136772 [00:41:01]quantity*price = 13900 [00:41:01]sum+1 = 13901 [00:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 4 23.09.2024 00:41 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18728 ФПД: 260514531598061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004104&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18728&fm=260514531598061&tin=02508201610067®Number=0000000000152968&sum=13900 0 [00:41:02]StoreToDocumentArchive [00:41:02]shift 181 fd 18728 [00:41:02]save to /storage/0181/doc_00018728 [00:41:02]save last doc name /storage/0181/doc_00018728 to /storage/kkm_last_doc_name [00:41:02]save OK [00:41:02]Clear old archive folders... [00:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:41:02]tlvbuf is 002350D0 [00:41:02]SAM_PROTO_ClearQueue [00:41:02]wFMCommunicate request_size=4 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 09 00 00 [00:41:02]Write to MH i2c: E2 08 00 CD 10 80 09 00 00 00 00 00 00 4F [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:02]Read from MH i2c: E2 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 CD 10 00 90 00 51 [00:41:02]RAPDU: 90 00 [00:41:02]wFMCommunicate OK [00:41:02]SAM_PROTO_ClearQueue done [00:41:02]KKMCreateOFDPacket [00:41:02]OFDProtocolAddRootSTLVToBuf [00:41:02]FM_MakeSignedData [00:41:02]FM_MakeSignedData [00:41:02]SAM_PROTO_SignData [00:41:02]wFMCommunicate request_size=4 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 0D 01 02 [00:41:02]Write to MH i2c: E2 08 00 CE 10 80 0D 01 02 00 00 00 00 57 [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:02]Read from MH i2c: E2 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 [00:41:02]MH_I2C_Read... [00:41:02]Read from MH i2c: E2 03 00 CE 10 00 90 00 52 [00:41:02]RAPDU: 90 00 [00:41:02]wFMCommunicate OK [00:41:02]wFMCommunicate request_size=255 [00:41:02]MH_SAM_APDU [00:41:02]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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 20 B9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [00:41:02]Write to MH i2c: E2 02 01 CF 10 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 20 B9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 85 [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 CF 10 00 90 00 53 [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=37 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 28 49 00 00 35 04 06 00 EC EF C4 1D 5E ED [00:41:03]Write to MH i2c: E2 28 00 D0 10 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 28 49 00 00 35 04 06 00 EC EF C4 1D 5E ED 00 00 2F [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 03 02 [00:41:03]Write to MH i2c: E2 08 00 D1 10 80 0D 03 02 00 00 00 00 5C [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 D1 10 00 EA 60 9E CC 48 2B 5B 10 90 00 EF [00:41:03]RAPDU: EA 60 9E CC 48 2B 5B 10 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_SignData done [00:41:03]FM_MakeSignedData done [00:41:03]CreateOFDProtocolMessage [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 11 00 00 [00:41:03]Write to MH i2c: E2 08 00 D2 10 80 11 00 00 00 00 00 00 5C [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 D2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B5 [00:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:41:03]wFMCommunicate OK [00:41:03]CreateOFDProtocolMessage done [00:41:03]OFDSenderStorePacket 18728 [00:41:03]StoreOFDPacket docnum=18728 [00:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 46 EC 22 01 52 A3 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 20 B9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 28 49 00 00 35 04 06 00 EC EF C4 1D 5E ED EA 60 9E CC 48 2B 5B 10 [00:41:03]CheckFolder [00:41:03]dirname=/storage/ofd_packets [00:41:03]CheckFolder done [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00018728 [00:41:03]NVStorageSaveData ofd_packets/00018728 [00:41:03]File name is /storage/ofd_packets/00018728 [00:41:03]Write 328 bytes [00:41:03]NVStorageSaveData done [00:41:03]OFDSenderStorePacket done [00:41:03]KKMCreateOFDPacket done [00:41:03]NVStorageSaveData kkm_last_timestamp [00:41:03]File name is /storage/kkm_last_timestamp [00:41:03]Write 4 bytes [00:41:03]NVStorageSaveData done [00:41:03]ExternCall_PrintAddStr [00:41:03]wPrintStart [00:41:03]Write to MH i2c: 01 00 00 D3 10 E3 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 D3 10 00 00 00 00 00 FF 0F F8 [00:41:03]RasterBufferAndPrint [00:41:03]line Счет N : (3)16651 [00:41:03]line ИНН: 02508201610067 [00:41:03]line Контрольно-Кассовый Чек [00:41:03]line ПРОДАЖА [00:41:03]line Товар: 48741224 [00:41:03]line Сигареты Winston Super Slims Blue [00:41:03]line 1.000 * 139.00 [00:41:03]line = 139.00 [00:41:03]line НДС 12% НСП 1% [00:41:03]line > о реализуемом товаре [00:41:03]line ИТОГО: 139.00 [00:41:03]line НСП 1% : 1.23 [00:41:03]line НДС 12% : 14.76 [00:41:03]line Наличными: 139.00 [00:41:03]line Безнал.: 0.00 [00:41:03]line Место: АЗС № 176 "Партнер Нефть" [00:41:03]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:41:03]line СНО: Общий режим [00:41:03]line Чек 4 23.09.2024 00:41 [00:41:03]line Смена: 181 ФФД: 1.0 [00:41:03]line ЗНМ: 0300000010 [00:41:03]line РНМ: 0000000000152968 [00:41:03]line Версия ККМ: v1.0 [00:41:03]line ФМ: 0000000000959456 [00:41:03]line ФД: 18728 [00:41:03]line ФПД: 260514531598061 [00:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004104&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18728&fm=260514531598061&tin=02508201610067®Number=0000000000152968&sum=13900 [00:41:03]line 0 [00:41:03]OFD Sender: Processing packet 18728 [packets to send 7, broken 6] [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00018728 [00:41:03]OFD Sender: To server: pG, [00:41:03]CommunicateWithHost lk.salyk.kg:30040 [00:41:03]ConnectInit lk.salyk.kg [00:41:03]written 0, free lines is 4095 [00:41:03]Connected sock=10 [00:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 46 EC 22 01 52 A3 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 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 20 B9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 28 49 00 00 35 04 06 00 EC EF C4 1D 5E ED EA 60 9E CC 48 2B 5B 10 [00:41:03]Write to MH i2c: 01 00 00 FC 10 0C [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 FC 10 00 00 00 00 00 F8 0C 17 [00:41:03]RasterBufferAndPrint [00:41:03]line [00:41:03]line [00:41:03]line [00:41:03]line [00:41:03]line [00:41:03]written 0, free lines is 3326 [00:41:03]MH_Cut [00:41:03]Write to MH i2c: D1 01 00 03 11 01 E6 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: D1 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: D1 01 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: D1 01 00 03 11 00 E5 [00:41:03]Write to MH i2c: 01 00 00 04 11 15 [00:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 72 FB 47 00 A4 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 39 35 39 34 35 36 10 04 04 00 28 49 00 00 F4 03 04 00 86 62 F0 66 B6 04 01 00 00 DA F1 65 A1 FD 50 CE 7C [00:41:03]CommunicateWithHost err = 0 [00:41:03]CheckOFDResponse [00:41:03]1017 (14) - 77093643461234 [00:41:03]1041 (16) - 0000000000959456 [00:41:03]1040 (4) - 18728 [00:41:03]1012 (4) - 22.09.2024 18:31 [00:41:03]1206 (1) - 0 [00:41:03]OFD Sender: Remove packet 18728 [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00018728 [00:41:03]NVStorageDeleteData [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]OFD Sender: No OFD packet to send [00:41:04]*** Cut start [00:41:04]*** Partial cut [00:41:04]*** CUTSNS_PIN = 1 [00:41:04]*** CUTSNS_PIN = 0 [00:41:04]*** Brake cut motor [00:41:05]Read from MH i2c: 01 [00:41:05]MH_I2C_Read... [00:41:05]*** Stop cut motor [00:41:05]*** Cut end [00:41:05]Read from MH i2c: 01 07 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: 01 07 00 04 11 00 00 00 00 00 FF 0F 2A [00:41:05]process_action close_receipt done [00:41:05]requested_data is exist [00:41:05]produce_requested_data [00:41:05]requested_item fm.sn is exist - process it [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 11 00 00 [00:41:05]Write to MH i2c: E2 08 00 05 11 80 11 00 00 00 00 00 00 90 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 17 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 17 00 05 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E9 [00:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:41:05]wFMCommunicate OK [00:41:05]requested_item fd.num is exist - process it [00:41:05]SAM_PROTO_GetFieldsCounters [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 00 00 [00:41:05]Write to MH i2c: E2 08 00 06 11 80 13 00 00 00 00 00 00 93 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 62 00 06 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 28 49 00 00 0E 04 04 00 B5 00 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 F2 [00:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 28 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetFieldsCounters done [00:41:05]requested_item shift.num is exist - process it [00:41:05]requested_item shift.opened is exist - process it [00:41:05]req_shift_opened [00:41:05]FM_GetShiftState [00:41:05]SAM_PROTO_GetShiftState [00:41:05]wFMCommunicate request_size=4 [00:41:05]MH_SAM_APDU [00:41:05]CAPDU: 80 13 01 00 [00:41:05]Write to MH i2c: E2 08 00 07 11 80 13 01 00 00 00 00 00 95 [00:41:05]Write i2c OK [00:41:05]MH_I2C_Read... [00:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:05]Read from MH i2c: E2 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 [00:41:05]MH_I2C_Read... [00:41:05]Read from MH i2c: E2 0E 00 07 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2D [00:41:05]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:41:05]wFMCommunicate OK [00:41:05]SAM_PROTO_GetShiftState done [00:41:05]FM_GetShiftState done [00:41:05]req_shift_opened done [00:41:05]requested_item shift.open_date is exist - process it [00:41:05]req_shift_open_date [00:41:05]req_shift_open_date done [00:41:05]produce_requested_data done [00:41:05]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18728,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:41:05]process_action_free close_receipt [00:41:05]json_value_free [00:41:05]json_value_free done [00:41:05]process_json_proto returns [00:41:05]Send response to host [00:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18728,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:41:05]free response buf [00:41:05]execute_script done [00:41:05]execute_script returns [00:41:05]free content buf [00:41:05]Sock 9.Close socket [00:41:05]Sock 9.Thread stoped [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47: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:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]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:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [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: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:14]ConnectInit Can't connect to host [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:25:01]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]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:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:03]accept exits with 8 [02:41:03]New connection [02:41:03]New thread 3067129188 created [02:41:03]Thread 3067272548 joined [02:41:03]Waiting for new connection... [02:41:03] Sock 8.Parse request [02:41:03]Sock 8.Check first char [02:41:03]Sock 8.First char is OK [02:41:03]request: POST /json_proto HTTP/1.0 [02:41:03]Method: POST [02:41:03]URL: /json_proto [02:41:03]Method is POST - this is cgi request [02:41:03]url: /json_proto [02:41:03]query_string will be loaded in cgi processing [02:41:03]execute_cgi json_proto POST (null) [02:41:03]execute_cgi path=json_proto method=POST [02:41:03]POST find Content-Length [02:41:03]Host: 172.17.62.196:8080 [02:41:03]Content-Length: 621 [02:41:03]Content-Type: application/json [02:41:03] [02:41:03]POST finish read [02:41:03]Found Content-Length = 621 [02:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16652", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:03]execute_script... [02: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)16652", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:03]POST & json_proto [02:41:03]process_json_proto [02:41:03]json parsed OK: [02:41:03]protocol is kg_v1.0 [02:41:03]action value=close_receipt [02:41:03]process_action close_receipt [02:41:03]cmd_close_receipt [02:41:03]MH_GetDate [02:41:03]Write to MH i2c: F0 00 00 08 11 08 [02:41:03]Write i2c OK [02:41:03]MH_I2C_Read... [02:41:03]Read from MH i2c: F0 [02:41:03]MH_I2C_Read... [02:41:03]Read from MH i2c: F0 09 00 [02:41:03]MH_I2C_Read... [02:41:03]Read from MH i2c: F0 09 00 08 11 00 43 D5 F0 66 CE CC 0E 66 8D [02:41:03]GetLastDocTimeStamp 1727052064 [02:41:03]current date 1727059267 [02:41:03]FM_GetShiftState [02:41:03]SAM_PROTO_GetShiftState [02:41:03]wFMCommunicate request_size=4 [02:41:03]MH_SAM_APDU [02:41:03]CAPDU: 80 13 01 00 [02:41:03]Write to MH i2c: E2 08 00 09 11 80 13 01 00 00 00 00 00 97 [02:41:03]Write i2c OK [02:41:03]MH_I2C_Read... [02:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:03]Read from MH i2c: E2 [02:41:03]MH_I2C_Read... [02:41:03]Read from MH i2c: E2 0E 00 [02:41:03]MH_I2C_Read... [02:41:03]Read from MH i2c: E2 0E 00 09 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2F [02:41:03]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [02:41:03]wFMCommunicate OK [02:41:03]SAM_PROTO_GetShiftState done [02:41:03]FM_GetShiftState done [02:41:03]opened in 1727050372 [02:41:03]opened+sec_in_day 1727136772 [02:41:03]quantity*price = 15600 [02:41:03]sum+1 = 15601 [02:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 5 23.09.2024 02:41 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18729 ФПД: 276170028601230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024107&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18729&fm=276170028601230&tin=02508201610067®Number=0000000000152968&sum=15600 0 [02:41:04]StoreToDocumentArchive [02:41:04]shift 181 fd 18729 [02:41:04]save to /storage/0181/doc_00018729 [02:41:04]save last doc name /storage/0181/doc_00018729 to /storage/kkm_last_doc_name [02:41:04]save OK [02:41:04]Clear old archive folders... [02:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=274 [02:41:04]tlvbuf is 001CE320 [02:41:04]SAM_PROTO_ClearQueue [02:41:04]wFMCommunicate request_size=4 [02:41:04]MH_SAM_APDU [02:41:04]CAPDU: 80 09 00 00 [02:41:04]Write to MH i2c: E2 08 00 16 11 80 09 00 00 00 00 00 00 99 [02:41:04]Write i2c OK [02:41:04]MH_I2C_Read... [02:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:04]Read from MH i2c: E2 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 03 00 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [02:41:04]RAPDU: 90 00 [02:41:04]wFMCommunicate OK [02:41:04]SAM_PROTO_ClearQueue done [02:41:04]KKMCreateOFDPacket [02:41:04]OFDProtocolAddRootSTLVToBuf [02:41:04]FM_MakeSignedData [02:41:04]FM_MakeSignedData [02:41:04]SAM_PROTO_SignData [02:41:04]wFMCommunicate request_size=4 [02:41:04]MH_SAM_APDU [02:41:04]CAPDU: 80 0D 01 02 [02:41:04]Write to MH i2c: E2 08 00 17 11 80 0D 01 02 00 00 00 00 A1 [02:41:04]Write i2c OK [02:41:04]MH_I2C_Read... [02:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:04]Read from MH i2c: E2 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 03 00 [02:41:04]MH_I2C_Read... [02:41:04]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [02:41:04]RAPDU: 90 00 [02:41:04]wFMCommunicate OK [02:41:04]wFMCommunicate request_size=255 [02:41:04]MH_SAM_APDU [02:41:04]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 F0 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 05 00 00 00 F4 03 04 00 43 D5 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [02:41:04]Write to MH i2c: E2 02 01 18 11 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 F0 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 05 00 00 00 F4 03 04 00 43 D5 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 AA [02:41:04]Write i2c OK [02:41:04]MH_I2C_Read... [02:41:05]OFD Sender: No OFD packet to send [02:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [02:41:05]RAPDU: 90 00 [02:41:05]wFMCommunicate OK [02:41:05]wFMCommunicate request_size=33 [02:41:05]MH_SAM_APDU [02:41:05]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 29 49 00 00 35 04 06 00 FB 2C D8 73 CF 8E [02:41:05]Write to MH i2c: E2 24 00 19 11 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 29 49 00 00 35 04 06 00 FB 2C D8 73 CF 8E 00 00 7A [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 03 00 19 11 00 90 00 9E [02:41:05]RAPDU: 90 00 [02:41:05]wFMCommunicate OK [02:41:05]wFMCommunicate request_size=4 [02:41:05]MH_SAM_APDU [02:41:05]CAPDU: 80 0D 03 02 [02:41:05]Write to MH i2c: E2 08 00 1A 11 80 0D 03 02 00 00 00 00 A6 [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 0B 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 0B 00 1A 11 00 F6 F8 70 B2 A5 2B 75 58 90 00 54 [02:41:05]RAPDU: F6 F8 70 B2 A5 2B 75 58 90 00 [02:41:05]wFMCommunicate OK [02:41:05]SAM_PROTO_SignData done [02:41:05]FM_MakeSignedData done [02:41:05]CreateOFDProtocolMessage [02:41:05]wFMCommunicate request_size=4 [02:41:05]MH_SAM_APDU [02:41:05]CAPDU: 80 11 00 00 [02:41:05]Write to MH i2c: E2 08 00 1B 11 80 11 00 00 00 00 00 00 A6 [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:05]Read from MH i2c: E2 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 17 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: E2 17 00 1B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FF [02:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:41:05]wFMCommunicate OK [02:41:05]CreateOFDProtocolMessage done [02:41:05]OFDSenderStorePacket 18729 [02:41:05]StoreOFDPacket docnum=18729 [02:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 0E 7A 1E 01 DF 78 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 F0 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 05 00 00 00 F4 03 04 00 43 D5 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 29 49 00 00 35 04 06 00 FB 2C D8 73 CF 8E F6 F8 70 B2 A5 2B 75 58 [02:41:05]CheckFolder [02:41:05]dirname=/storage/ofd_packets [02:41:05]CheckFolder done [02:41:05]ProducePacketName [02:41:05]name=ofd_packets/00018729 [02:41:05]NVStorageSaveData ofd_packets/00018729 [02:41:05]File name is /storage/ofd_packets/00018729 [02:41:05]Write 324 bytes [02:41:05]NVStorageSaveData done [02:41:05]OFDSenderStorePacket done [02:41:05]KKMCreateOFDPacket done [02:41:05]NVStorageSaveData kkm_last_timestamp [02:41:05]File name is /storage/kkm_last_timestamp [02:41:05]Write 4 bytes [02:41:05]NVStorageSaveData done [02:41:05]ExternCall_PrintAddStr [02:41:05]wPrintStart [02:41:05]Write to MH i2c: 01 00 00 1C 11 2D [02:41:05]Write i2c OK [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: 01 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: 01 07 00 [02:41:05]MH_I2C_Read... [02:41:05]Read from MH i2c: 01 07 00 1C 11 00 00 00 00 00 FF 0F 42 [02:41:05]RasterBufferAndPrint [02:41:05]line Счет N : (3)16652 [02:41:05]line ИНН: 02508201610067 [02:41:05]line Контрольно-Кассовый Чек [02:41:05]line ПРОДАЖА [02:41:05]line Товар: 48741958 [02:41:05]line Сигареты Parliament Aqua Blue [02:41:05]line 1.000 * 156.00 [02:41:05]line = 156.00 [02:41:05]line НДС 12% НСП 1% [02:41:05]line > о реализуемом товаре [02:41:05]line ИТОГО: 156.00 [02:41:05]line НСП 1% : 1.38 [02:41:05]line НДС 12% : 16.57 [02:41:05]line Наличными: 156.00 [02:41:05]line Безнал.: 0.00 [02:41:05]line Место: АЗС № 176 "Партнер Нефть" [02:41:05]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [02:41:05]line СНО: Общий режим [02:41:05]line Чек 5 23.09.2024 02:41 [02:41:05]line Смена: 181 ФФД: 1.0 [02:41:05]line ЗНМ: 0300000010 [02:41:05]line РНМ: 0000000000152968 [02:41:05]line Версия ККМ: v1.0 [02:41:05]line ФМ: 0000000000959456 [02:41:05]line ФД: 18729 [02:41:05]line ФПД: 276170028601230 [02:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T024107&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18729&fm=276170028601230&tin=02508201610067®Number=0000000000152968&sum=15600 [02:41:05]line 0 [02:41:05]OFD Sender: Processing packet 18729 [packets to send 7, broken 6] [02:41:05]ProducePacketName [02:41:05]name=ofd_packets/00018729 [02:41:05]OFD Sender: To server: pG, [02:41:05]CommunicateWithHost lk.salyk.kg:30040 [02:41:05]ConnectInit lk.salyk.kg [02:41:05]written 0, free lines is 4095 [02:41:05]Connected sock=10 [02:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 0E 7A 1E 01 DF 78 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 F0 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 05 00 00 00 F4 03 04 00 43 D5 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 29 49 00 00 35 04 06 00 FB 2C D8 73 CF 8E F6 F8 70 B2 A5 2B 75 58 [02:41:06]Write to MH i2c: 01 00 00 45 11 56 [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 07 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 01 0D 6B [02:41:06]RasterBufferAndPrint [02:41:06]line [02:41:06]line [02:41:06]line [02:41:06]line [02:41:06]line [02:41:06]written 0, free lines is 3335 [02:41:06]MH_Cut [02:41:06]Write to MH i2c: D1 01 00 4C 11 01 2F [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: D1 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: D1 01 00 [02:41:06]MH_I2C_Read... [02:41:06]Read from MH i2c: D1 01 00 4C 11 00 2E [02:41:06]Write to MH i2c: 01 00 00 4D 11 5E [02:41:06]Write i2c OK [02:41:06]MH_I2C_Read... [02:41:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 27 57 47 00 D8 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 29 49 00 00 F4 03 04 00 A8 7E F0 66 B6 04 01 00 00 72 37 43 C4 26 67 D1 72 [02:41:06]CommunicateWithHost err = 0 [02:41:06]CheckOFDResponse [02:41:06]1017 (14) - 77093643461234 [02:41:06]1041 (16) - 0000000000959456 [02:41:06]1040 (4) - 18729 [02:41:06]1012 (4) - 22.09.2024 20:31 [02:41:06]1206 (1) - 0 [02:41:06]OFD Sender: Remove packet 18729 [02:41:06]ProducePacketName [02:41:06]name=ofd_packets/00018729 [02:41:06]NVStorageDeleteData [02:41:06]OFD Sender: No OFD packet to send [02:41:06]*** Cut start [02:41:06]*** Partial cut [02:41:06]*** CUTSNS_PIN = 1 [02:41:06]*** CUTSNS_PIN = 0 [02:41:07]*** Brake cut motor [02:41:07]Read from MH i2c: 01 [02:41:07]MH_I2C_Read... [02:41:07]*** Stop cut motor [02:41:07]*** Cut end [02:41:07]Read from MH i2c: 01 07 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: 01 07 00 4D 11 00 00 00 00 00 FF 0F 73 [02:41:07]process_action close_receipt done [02:41:07]requested_data is exist [02:41:07]produce_requested_data [02:41:07]requested_item fm.sn is exist - process it [02:41:07]wFMCommunicate request_size=4 [02:41:07]MH_SAM_APDU [02:41:07]CAPDU: 80 11 00 00 [02:41:07]Write to MH i2c: E2 08 00 4E 11 80 11 00 00 00 00 00 00 D9 [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:07]Read from MH i2c: E2 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 17 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 17 00 4E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 32 [02:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:41:07]wFMCommunicate OK [02:41:07]requested_item fd.num is exist - process it [02:41:07]SAM_PROTO_GetFieldsCounters [02:41:07]wFMCommunicate request_size=4 [02:41:07]MH_SAM_APDU [02:41:07]CAPDU: 80 13 00 00 [02:41:07]Write to MH i2c: E2 08 00 4F 11 80 13 00 00 00 00 00 00 DC [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:07]Read from MH i2c: E2 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 62 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 62 00 4F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 29 49 00 00 0E 04 04 00 B5 00 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 3F [02:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 29 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:07]wFMCommunicate OK [02:41:07]SAM_PROTO_GetFieldsCounters done [02:41:07]requested_item shift.num is exist - process it [02:41:07]requested_item shift.opened is exist - process it [02:41:07]req_shift_opened [02:41:07]FM_GetShiftState [02:41:07]SAM_PROTO_GetShiftState [02:41:07]wFMCommunicate request_size=4 [02:41:07]MH_SAM_APDU [02:41:07]CAPDU: 80 13 01 00 [02:41:07]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [02:41:07]Write i2c OK [02:41:07]MH_I2C_Read... [02:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:07]Read from MH i2c: E2 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 0E 00 [02:41:07]MH_I2C_Read... [02:41:07]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 76 [02:41:07]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [02:41:07]wFMCommunicate OK [02:41:07]SAM_PROTO_GetShiftState done [02:41:07]FM_GetShiftState done [02:41:07]req_shift_opened done [02:41:07]requested_item shift.open_date is exist - process it [02:41:07]req_shift_open_date [02:41:07]req_shift_open_date done [02:41:07]produce_requested_data done [02:41:07]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18729,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [02:41:07]process_action_free close_receipt [02:41:07]json_value_free [02:41:07]json_value_free done [02:41:07]process_json_proto returns [02:41:07]Send response to host [02:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18729,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [02:41:07]free response buf [02:41:07]execute_script done [02:41:07]execute_script returns [02:41:07]free content buf [02:41:07]Sock 8.Close socket [02:41:07]Sock 8.Thread stoped [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:35]accept exits with 9 [03:00:35]New connection [03:00:35]New thread 3067272548 created [03:00:35]Thread 3067129188 joined [03:00:35]Waiting for new connection... [03:00:35] Sock 9.Parse request [03:00:35]Sock 9.Check first char [03:00:35]Sock 9.First char is OK [03:00:35]request: POST /json_proto HTTP/1.0 [03:00:35]Method: POST [03:00:35]URL: /json_proto [03:00:35]Method is POST - this is cgi request [03:00:35]url: /json_proto [03:00:35]query_string will be loaded in cgi processing [03:00:35]execute_cgi json_proto POST (null) [03:00:35]execute_cgi path=json_proto method=POST [03:00:35]POST find Content-Length [03:00:35]Host: 172.17.62.196:8080 [03:00:35]Content-Length: 631 [03:00:35]Content-Type: application/json [03:00:35] [03:00:35]POST finish read [03:00:35]Found Content-Length = 631 [03:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16653", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:35]execute_script... [03:00: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)16653", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:35]POST & json_proto [03:00:35]process_json_proto [03:00:35]json parsed OK: [03:00:35]protocol is kg_v1.0 [03:00:35]action value=close_receipt [03:00:35]process_action close_receipt [03:00:35]cmd_close_receipt [03:00:35]MH_GetDate [03:00:35]Write to MH i2c: F0 00 00 51 11 51 [03:00:35]Write i2c OK [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 09 00 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 09 00 51 11 00 D7 D9 F0 66 CE CC 0E 66 6E [03:00:35]GetLastDocTimeStamp 1727059267 [03:00:35]current date 1727060439 [03:00:35]FM_GetShiftState [03:00:35]SAM_PROTO_GetShiftState [03:00:35]wFMCommunicate request_size=4 [03:00:35]MH_SAM_APDU [03:00:35]CAPDU: 80 13 01 00 [03:00:35]Write to MH i2c: E2 08 00 52 11 80 13 01 00 00 00 00 00 E0 [03:00:35]Write i2c OK [03:00:35]MH_I2C_Read... [03:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:35]Read from MH i2c: E2 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: E2 0E 00 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: E2 0E 00 52 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 78 [03:00:35]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [03:00:35]wFMCommunicate OK [03:00:35]SAM_PROTO_GetShiftState done [03:00:35]FM_GetShiftState done [03:00:35]opened in 1727050372 [03:00:35]opened+sec_in_day 1727136772 [03:00:35]quantity*price = 14400 [03:00:35]sum+1 = 14401 [03:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 6 23.09.2024 03:00 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18730 ФПД: 102319410621465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030039&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18730&fm=102319410621465&tin=02508201610067®Number=0000000000152968&sum=14400 0 [03:00:36]StoreToDocumentArchive [03:00:36]shift 181 fd 18730 [03:00:36]save to /storage/0181/doc_00018730 [03:00:36]save last doc name /storage/0181/doc_00018730 to /storage/kkm_last_doc_name [03:00:36]save OK [03:00:36]Clear old archive folders... [03:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=284 [03:00:36]tlvbuf is 0022ADA0 [03:00:36]SAM_PROTO_ClearQueue [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 09 00 00 [03:00:36]Write to MH i2c: E2 08 00 5F 11 80 09 00 00 00 00 00 00 E2 [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]SAM_PROTO_ClearQueue done [03:00:36]KKMCreateOFDPacket [03:00:36]OFDProtocolAddRootSTLVToBuf [03:00:36]FM_MakeSignedData [03:00:36]FM_MakeSignedData [03:00:36]SAM_PROTO_SignData [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 01 02 [03:00:36]Write to MH i2c: E2 08 00 60 11 80 0D 01 02 00 00 00 00 EA [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]wFMCommunicate request_size=255 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D7 D9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [03:00:36]Write to MH i2c: E2 02 01 61 11 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D7 D9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 0F [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:37]Read from MH i2c: E2 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 03 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [03:00:37]RAPDU: 90 00 [03:00:37]wFMCommunicate OK [03:00:37]wFMCommunicate request_size=43 [03:00:37]MH_SAM_APDU [03:00:37]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2A 49 00 00 35 04 06 00 5D 0F 18 1F AC 19 [03:00:37]Write to MH i2c: E2 2E 00 62 11 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2A 49 00 00 35 04 06 00 5D 0F 18 1F AC 19 00 00 B6 [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:37]Read from MH i2c: E2 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 03 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [03:00:37]RAPDU: 90 00 [03:00:37]wFMCommunicate OK [03:00:37]wFMCommunicate request_size=4 [03:00:37]MH_SAM_APDU [03:00:37]CAPDU: 80 0D 03 02 [03:00:37]Write to MH i2c: E2 08 00 63 11 80 0D 03 02 00 00 00 00 EF [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:00:37]Read from MH i2c: E2 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 0B 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 0B 00 63 11 00 6B FD 57 69 75 D3 9D 29 90 00 26 [03:00:37]RAPDU: 6B FD 57 69 75 D3 9D 29 90 00 [03:00:37]wFMCommunicate OK [03:00:37]SAM_PROTO_SignData done [03:00:37]FM_MakeSignedData done [03:00:37]CreateOFDProtocolMessage [03:00:37]wFMCommunicate request_size=4 [03:00:37]MH_SAM_APDU [03:00:37]CAPDU: 80 11 00 00 [03:00:37]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:37]Read from MH i2c: E2 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 17 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 48 [03:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [03:00:37]wFMCommunicate OK [03:00:37]CreateOFDProtocolMessage done [03:00:37]OFDSenderStorePacket 18730 [03:00:37]StoreOFDPacket docnum=18730 [03:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 76 F5 28 01 C2 39 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D7 D9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2A 49 00 00 35 04 06 00 5D 0F 18 1F AC 19 6B FD 57 69 75 D3 9D 29 [03:00:37]CheckFolder [03:00:37]dirname=/storage/ofd_packets [03:00:37]CheckFolder done [03:00:37]ProducePacketName [03:00:37]name=ofd_packets/00018730 [03:00:37]NVStorageSaveData ofd_packets/00018730 [03:00:37]File name is /storage/ofd_packets/00018730 [03:00:37]Write 334 bytes [03:00:37]NVStorageSaveData done [03:00:37]OFDSenderStorePacket done [03:00:37]KKMCreateOFDPacket done [03:00:37]NVStorageSaveData kkm_last_timestamp [03:00:37]File name is /storage/kkm_last_timestamp [03:00:37]Write 4 bytes [03:00:37]NVStorageSaveData done [03:00:37]ExternCall_PrintAddStr [03:00:37]wPrintStart [03:00:37]Write to MH i2c: 01 00 00 65 11 76 [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 FF 0F 8B [03:00:37]RasterBufferAndPrint [03:00:37]line Счет N : (3)16653 [03:00:37]line ИНН: 02508201610067 [03:00:37]line Контрольно-Кассовый Чек [03:00:37]line ПРОДАЖА [03:00:37]line Товар: 48745031 [03:00:37]line Сигареты Winston Superslims Expand Blue [03:00:37]line 1.000 * 144.00 [03:00:37]line = 144.00 [03:00:37]line НДС 12% НСП 1% [03:00:37]line > о реализуемом товаре [03:00:37]line ИТОГО: 144.00 [03:00:37]line НСП 1% : 1.27 [03:00:37]line НДС 12% : 15.29 [03:00:37]line Наличными: 144.00 [03:00:37]line Безнал.: 0.00 [03:00:37]line Место: АЗС № 176 "Партнер Нефть" [03:00:37]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [03:00:37]line СНО: Общий режим [03:00:37]line Чек 6 23.09.2024 03:00 [03:00:37]line Смена: 181 ФФД: 1.0 [03:00:37]line ЗНМ: 0300000010 [03:00:37]line РНМ: 0000000000152968 [03:00:37]line Версия ККМ: v1.0 [03:00:37]line ФМ: 0000000000959456 [03:00:37]line ФД: 18730 [03:00:37]line ФПД: 102319410621465 [03:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T030039&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18730&fm=102319410621465&tin=02508201610067®Number=0000000000152968&sum=14400 [03:00:37]line 0 [03:00:37]OFD Sender: Processing packet 18730 [packets to send 7, broken 6] [03:00:37]ProducePacketName [03:00:37]name=ofd_packets/00018730 [03:00:37]OFD Sender: To server: pG, [03:00:37]CommunicateWithHost lk.salyk.kg:30040 [03:00:37]ConnectInit lk.salyk.kg [03:00:37]written 0, free lines is 4095 [03:00:37]Connected sock=10 [03:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 76 F5 28 01 C2 39 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D7 D9 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2A 49 00 00 35 04 06 00 5D 0F 18 1F AC 19 6B FD 57 69 75 D3 9D 29 [03:00:38]Write to MH i2c: 01 00 00 8E 11 9F [03:00:38]Write i2c OK [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: 01 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: 01 07 00 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 01 0D B4 [03:00:38]RasterBufferAndPrint [03:00:38]line [03:00:38]line [03:00:38]line [03:00:38]line [03:00:38]line [03:00:38]written 0, free lines is 3338 [03:00:38]MH_Cut [03:00:38]Write to MH i2c: D1 01 00 95 11 01 78 [03:00:38]Write i2c OK [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: D1 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: D1 01 00 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: D1 01 00 95 11 00 77 [03:00:38]Write to MH i2c: 01 00 00 96 11 A7 [03:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 3E 7D 47 00 E9 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 39 35 39 34 35 36 10 04 04 00 2A 49 00 00 F4 03 04 00 3C 83 F0 66 B6 04 01 00 00 79 56 2B CE 87 AF 52 B9 [03:00:38]CommunicateWithHost err = 0 [03:00:38]CheckOFDResponse [03:00:38]1017 (14) - 77093643461234 [03:00:38]1041 (16) - 0000000000959456 [03:00:38]1040 (4) - 18730 [03:00:38]1012 (4) - 22.09.2024 20:51 [03:00:38]1206 (1) - 0 [03:00:38]OFD Sender: Remove packet 18730 [03:00:38]ProducePacketName [03:00:38]name=ofd_packets/00018730 [03:00:38]NVStorageDeleteData [03:00:38]Write i2c OK [03:00:38]MH_I2C_Read... [03:00:38]OFD Sender: No OFD packet to send [03:00:38]*** Cut start [03:00:38]*** Partial cut [03:00:38]*** CUTSNS_PIN = 1 [03:00:38]*** CUTSNS_PIN = 0 [03:00:38]*** Brake cut motor [03:00:39]Read from MH i2c: 01 [03:00:39]MH_I2C_Read... [03:00:39]*** Stop cut motor [03:00:39]*** Cut end [03:00:39]Read from MH i2c: 01 07 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [03:00:39]process_action close_receipt done [03:00:39]requested_data is exist [03:00:39]produce_requested_data [03:00:39]requested_item fm.sn is exist - process it [03:00:39]wFMCommunicate request_size=4 [03:00:39]MH_SAM_APDU [03:00:39]CAPDU: 80 11 00 00 [03:00:39]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [03:00:39]Write i2c OK [03:00:39]MH_I2C_Read... [03:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:39]Read from MH i2c: E2 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 17 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7B [03:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [03:00:39]wFMCommunicate OK [03:00:39]requested_item fd.num is exist - process it [03:00:39]SAM_PROTO_GetFieldsCounters [03:00:39]wFMCommunicate request_size=4 [03:00:39]MH_SAM_APDU [03:00:39]CAPDU: 80 13 00 00 [03:00:39]Write to MH i2c: E2 08 00 98 11 80 13 00 00 00 00 00 00 25 [03:00:39]Write i2c OK [03:00:39]MH_I2C_Read... [03:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:00:39]Read from MH i2c: E2 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 62 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 62 00 98 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2A 49 00 00 0E 04 04 00 B5 00 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 8C [03:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2A 49 00 00 0E 04 04 00 B5 00 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 [03:00:39]wFMCommunicate OK [03:00:39]SAM_PROTO_GetFieldsCounters done [03:00:39]requested_item shift.num is exist - process it [03:00:39]requested_item shift.opened is exist - process it [03:00:39]req_shift_opened [03:00:39]FM_GetShiftState [03:00:39]SAM_PROTO_GetShiftState [03:00:39]wFMCommunicate request_size=4 [03:00:39]MH_SAM_APDU [03:00:39]CAPDU: 80 13 01 00 [03:00:39]Write to MH i2c: E2 08 00 99 11 80 13 01 00 00 00 00 00 27 [03:00:39]Write i2c OK [03:00:39]MH_I2C_Read... [03:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:39]Read from MH i2c: E2 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 0E 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 0E 00 99 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 BF [03:00:39]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [03:00:39]wFMCommunicate OK [03:00:39]SAM_PROTO_GetShiftState done [03:00:39]FM_GetShiftState done [03:00:39]req_shift_opened done [03:00:39]requested_item shift.open_date is exist - process it [03:00:39]req_shift_open_date [03:00:39]req_shift_open_date done [03:00:39]produce_requested_data done [03:00:39]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18730,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [03:00:39]process_action_free close_receipt [03:00:39]json_value_free [03:00:39]json_value_free done [03:00:39]process_json_proto returns [03:00:39]Send response to host [03:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18730,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [03:00:39]free response buf [03:00:39]execute_script done [03:00:39]execute_script returns [03:00:39]free content buf [03:00:39]Sock 9.Close socket [03:00:39]Sock 9.Thread stoped [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send